wp里面的磁贴背景如何与系统主题同步
wp里面的磁贴背景怎么与系统主题同步
<Button
Name="WIFI网络"
HorizontalAlignment="Left"
Margin="230,10,-3,0"
VerticalAlignment="Top"
Height="227" Width="229" Click="openclick" >
<Button.Background>
<ImageBrush ImageSource="无线网.jpg" Stretch="Uniform" />
</Button.Background>
</Button>
我插入了一个按钮 按扭大小我控件在磁贴中间,然后 我想其他地方的颜色都与系统当前一致,请问怎么修改
------解决方案--------------------
这么简单的都没人解答,用这个画刷background = {StaticResource PhoneAccentBrush}
参见:
http://msdn.microsoft.com/zh-cn/library/windowsphone/develop/ff769552
<Button
Name="WIFI网络"
HorizontalAlignment="Left"
Margin="230,10,-3,0"
VerticalAlignment="Top"
Height="227" Width="229" Click="openclick" >
<Button.Background>
<ImageBrush ImageSource="无线网.jpg" Stretch="Uniform" />
</Button.Background>
</Button>
我插入了一个按钮 按扭大小我控件在磁贴中间,然后 我想其他地方的颜色都与系统当前一致,请问怎么修改
------解决方案--------------------
这么简单的都没人解答,用这个画刷background = {StaticResource PhoneAccentBrush}
参见:
http://msdn.microsoft.com/zh-cn/library/windowsphone/develop/ff769552