【发布时间】:2015-11-04 07:58:26
【问题描述】:
图像在 MainPage 中工作,但我正在尝试将其集成到导航面板模板中并且图像不显示。谁能建议我可能是什么问题。
Templete 使用了 FRAMES,但这不应该是问题。
XAML 代码
<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 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 xaml uwp windows-phone frame