I want to use 2 different images : 1 on title bar, second on taskbar .
If using ShowIconOnTitleBar property then it will use same "ICON" property to both .
I want to use 2 different images : 1 on title bar, second on taskbar .
If using ShowIconOnTitleBar property then it will use same "ICON" property to both .
You can use the IconTemplate
to set a different icon for the window title bar.
e.g.
<Controls:MetroWindow.IconTemplate>
<DataTemplate>
<Grid Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Margin="4"
Background="{DynamicResource IdealForegroundColorBrush}"
RenderOptions.BitmapScalingMode="HighQuality"
RenderOptions.EdgeMode="Aliased">
<Grid.OpacityMask>
<VisualBrush Stretch="Uniform" Visual="{DynamicResource appbar_box}" />
</Grid.OpacityMask>
</Grid>
</DataTemplate>
</Controls:MetroWindow.IconTemplate>