值为0.8的ScaleTransform给出了意外行为

问题描述

| 今天我遇到了一个非常奇怪的问题。如果我使用ScaleTransform的值为0.8,则在空文本框中不再看到光标。使用选项卡时,这是一个丑陋的行为。
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height=\"*\" />
        <RowDefinition Height=\"auto\" />
    </Grid.RowDefinitions>

    <Grid Grid.Row=\"0\">
        <Grid.LayoutTransform>
            <ScaleTransform ScaleX=\"{Binding ElementName=zoomer,Path=Value}\" ScaleY=\"{Binding ElementName=zoomer,Path=Value}\"></ScaleTransform>
        </Grid.LayoutTransform>
        <Grid.RowDefinitions>
            <RowDefinition Height=\"auto\" />
            <RowDefinition Height=\"auto\" />
            <RowDefinition Height=\"auto\" />
            <RowDefinition Height=\"auto\" />
        </Grid.RowDefinitions>

        <TextBox Grid.Row=\"0\" />
        <TextBox Grid.Row=\"1\" />
        <TextBox Grid.Row=\"2\" />
        <TextBox Grid.Row=\"3\" />
    </Grid>

    <Slider x:Name=\"zoomer\" Grid.Row=\"1\" Width=\"125\" Value=\"1\" Minimum=\"0.7\" Maximum=\"2.2\" TickFrequency=\"0.1\" IsSnapToTickEnabled=\"True\"/>
</Grid>
编辑: 一些更奇怪的事情: 如果我将缩放值设置为0.9,并在文本框中放置5个空格,光标将消失。 如果我将缩放值设置为0.9并将以下字母之一(q,d,g)放在文本框中,则光标消失。     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...