
Images work in MainPage, but I'm trying to integrate it into the Templete navigation bar and the images are not displayed. Can someone tell me what problems might be.
The Templete uses FRAMES, but this should not be a problem.
XAML Code
<Button Grid.Column="0" Style="{StaticResource NavigationButtonStyle}"> <StackPanel Orientation="Horizontal"> <Image Source="Assets/donut-icon.png" Style="{StaticResource IconImageStyle}" /> <TextBlock Text="Donut" Foreground="White" /> </StackPanel> </Button>
Style Resources
<Style TargetType="Image" x:Key="IconImageStyle"> <Setter Property="Height" Value="20" /> <Setter Property="Width" Value="20" /> <Setter Property="Margin" Value="0,0,10,0" /> </Style>
image windows-phone uwp xaml frame
Hemat-webo
source share