Wpf 选定选项卡项中的图像不清晰
我有一个TabControl。每个选项卡项的标题都包含一个带有图标和标签的StackPanelWpf 选定选项卡项中的图像不清晰,wpf,icons,tabcontrol,tabitem,ico,Wpf,Icons,Tabcontrol,Tabitem,Ico,我有一个TabControl。每个选项卡项的标题都包含一个带有图标和标签的StackPanel <TabControl> <TabItem> <TabItem.Header> <StackPanel Orientation="Horizontal"> <Image Source="/LoginPanel;component/Icons/icoLogin.ico"</Image>
<TabControl>
<TabItem>
<TabItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="/LoginPanel;component/Icons/icoLogin.ico"</Image>
<Label VerticalContentAlignment="Center">Login</Label>
</StackPanel>
</TabItem.Header>
</TabItem.Header>
<!--some further code here-->
<TabItem>
<!--some further code here-->
<TabControl>
但什么也没发生
或
或
防止结垢。
所有这些都没有任何效果。能给我一个提示吗?提前感谢这对我很有用:
<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"</Image>
考虑将“RenderOptions.EdgeMode”也设置为“别名”
<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"
RenderOptions.EdgeMode="Aliased"/>
看看这里吧
Stretch="None"
<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"</Image>
<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"
RenderOptions.EdgeMode="Aliased"/>