8,757
社区成员
发帖
与我相关
我的任务
分享
<Viewbox Name="vix" Stretch="UniformToFill">
<Grid Name="grmain" Background="{StaticResource bgMcolor}">
<TextBox Grid.Column="1" Name="tb" RenderOptions.BitmapScalingMode ="NearestNeighbor"
FontStretch="UltraCondensed" Width="350px" KeyDown="UIElement_OnKeyDown" Style="{x:Null}"
Background="{StaticResource bgMcolor}" Padding="5,0" Height="60" MaxLines="1"
BorderThickness="0" VerticalContentAlignment="Center" FontSize="18px"
Text="{Binding PresNo,Mode=TwoWay}" >
</TextBox>
</Grid>
</Viewbox>
grmain.Width = 1920;
grmain.Height = 1080;
当 最大化的时候 设置 Stretch="Fill" 缩小的时候 设置=UniformToFill 实际最大化的时候 窗口尺寸是1920*1040 缩小的时候输入文字有时候看不到光标

