首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 10操作系统问题与解决方案

Windows 10操作系统问题与解决方案
EN

Stack Overflow用户
提问于 2016-11-30 18:02:50
回答 1查看 67关注 0票数 0

根据操作系统的不同,放置UI控件会导致不同的结果。

以Windows7为例,我对它没有任何问题。

按钮和选项卡控件的Xaml代码(重叠):

代码语言:javascript
复制
     <Button  Grid.Column="1" Background="Transparent" Margin="0,0,18,0" HorizontalAlignment="Right" Height="30" Width="30"  VerticalAlignment="Center" BorderBrush="Transparent" Click="Settings_Click" Style="{DynamicResource ButtonStyle1}" >
                        <Button.ToolTip >
                            <TextBlock Margin="-7,-5" Padding="7,5" Foreground="White" Text="{Binding Configuration}" TextWrapping="Wrap"></TextBlock>
                        </Button.ToolTip>
                        <Image   Source="/Resources/017.png" ></Image>
                    </Button>
 <ContentControl Content="{Binding Mode=OneWay}" DataContext="{Binding ActiveVM}" Margin="-1,49,1,1" Grid.RowSpan="2"/>
EN

回答 1

Stack Overflow用户

发布于 2016-11-30 19:16:43

代码语言:javascript
复制
    private static extern bool SetProcessDPIAware(); 

是什么让我的应用看起来又“正常”了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40885346

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档