O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Consuming the Control

Figure 15.2 shows instances of PlayingCard in action, using the following content of MainPage.xaml:

<Page x:Class="Chapter15.MainPage" xmlns:local="using:Chapter15"      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">  <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">    <Viewbox>      <StackPanel Orientation="Horizontal">        <local:PlayingCard Face="HA"/>        <local:PlayingCard Face="D2"/>        <local:PlayingCard Face="C3"/>        <local:PlayingCard Face="S4"/>      </StackPanel>    </Viewbox>  </Grid></Page>

FIGURE 15.2 Four PlayingCard instances, after the two of diamonds is clicked ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required