Windows Phone
1. You can select your own theme. There are two backgrounds (black or white), and there are 10 accent colors );
2. The Silverlight control can automatically monitor the topic and select different styles based on the user's topic.
Windows Phone Style
A style is basically a set of attributes allocated for a specific element type. In addition to keys, it also has a targettype attribute to set the type of the control to be applied.
<phone:PhoneApplicationPage.Resources>
<Style x:Key="BtnStyle" TargetType="Button">
<Setter Property="BorderBrush" Value="Red" />
<Setter Property="Foreground" Value="Yellow" />
</Style>
</phone:PhoneApplicationPage.Resources>
2. bind to button
<Button Content="Button" Height="72" HorizontalAlignment="Left" Margin="134,137,0,0" Name="button1" VerticalAlignment="Top" Width="160" Style="{StaticResource BtnStyle}" />
The resource Dictionary of Silverlight for Windows Phone contains standard styles that allow programs to adapt to screens with different resolutions. File Location of the Style File: System Disk: \ Program Files \ microsoft sdks \ Windows Phone \ v7.1 \ design \ themeresources. xml.
Windows Phone control Template
Another resource Dictionary defines templates for SL for WP standard controls. You can use these templates to define the UI of the new controls. Template File Location: System Disk: \ Program Files \ microsoft sdks \ Windows Phone \ v7.1 \ design \ System. Windows. XAML.
PS: in the article.