
I have a menu to allow selection of theme.
For buttons with an 16x16 image, the image is blurry when theme is set to Classic or HighContrast.
Here is an example I created.
Any suggestions on how to define button?
<DockPanel x:Name="buttonPanel">
<StackPanel Orientation="Horizontal" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center">
<Button Width="24" Height="24" Margin="10,0,0,0" x:Name="Button1">
<Image Source="Refresh.png" Width="16" Height="16" />
</Button>
<Button Width="24" Height="24" Margin="10,0,0,0" x:Name="Button2" >
<Image Source="Refresh.png" Width="16" Height="16" />
</Button>
<Button Width="24" Height="24" Margin="10,0,0,0" x:Name="Button3" >
<Image Source="Refresh.png" Width="16" Height="16" />
</Button>
</StackPanel>
</DockPanel>
public MainWindow()
{
InitializeComponent();
ActiproSoftware.Windows.Themes.ThemeManager.SetAreNativeThemesEnabled(this, true);
ActiproSoftware.Windows.Themes.ThemeManager.SetTheme(Button1, "Classic");
ActiproSoftware.Windows.Themes.ThemeManager.SetTheme(Button2, "HighContrast");
ActiproSoftware.Windows.Themes.ThemeManager.SetTheme(Button3, "Office Blue");
}