Binding topic styles to data [8 to WP7 learning notes]

Source: Internet
Author: User

This section is the eighth part of WP7 learning notes, because the previous WPF/Silverlight concepts are not described in detail.

Windows Phone topic: You can select your own topic based on your preferences. The Silverlight control can automatically detect the topic.

Windows Phone style:

<Textblock X: Name = "pagetitle" text = "Homepage" margin = "9,-7,0, 0" style = "{staticresource phonetexttitle1style}"/>

The resource Dictionary of Silverlight for Windows Phone contains standard styles.

The themetesources. XAML file contains the following content styles:

<Style x:Key="PhoneTextGroupHeaderStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeLarge}"/>
<Setter Property="Foreground" Value="{StaticResource PhoneSubtleBrush}"/>
</Style>

System. Windows. XAML contains the following content styles:

<ControlTemplate x:Key="PhoneSimpleRepeatButton" TargetType="RepeatButton">
<Rectangle Fill="Transparent" />
</ControlTemplate>

OK. Please note that the introduction is complete. Below is data binding, because of the WPF/Silverlight basics, not to mention ~

OK. The topic style and data binding are complete ~ Hope to help you ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.