Vývoj pre Windows 8.1 (Listing 1)

 

<Pa­ge

    x:Class="Pri­sa­dy­Pot­ra­vi­ny.Hub­Pa­ge"

    xmlns="http://sche­mas.mic­ro­soft.com/winfx/2006/xaml/pre­sen­ta­tion"

    xmlns:x="http://sche­mas.mic­ro­soft.com/winfx/2006/xaml"

    xmlns:lo­cal="using:Pri­sa­dy­Pot­ra­vi­ny"

    xmlns:d="http://sche­mas.mic­ro­soft.com/expres­sion/blend/2008"

    xmlns:mc="http://sche­mas.openxml­for­mats.org/mar­kup-com­pa­ti­bi­li­ty/2006"

    Da­ta­Con­text="{Bin­ding De­faultViewMo­del, Re­la­ti­ve­Sour­ce={Re­la­ti­ve­Sour­ce Self}}"

    d:Da­ta­Con­text="{Bin­ding Sour­ce={d:De­sig­nDa­ta

    Sour­ce=../Pri­sa­dy­Pot­ra­vi­ny.Sha­red/Da­ta­Mo­del/Sam­ple­Da­ta.json,

    Ty­pe=da­ta:Sam­ple­Da­ta­Sour­ce}}"

    xmlns:da­ta="using:Pri­sa­dy­Pot­ra­vi­ny.Da­ta"

    mc:Ig­no­rab­le="d">

 

    <Pa­ge.Re­sour­ces>

        <Re­sour­ce­Dic­tio­na­ry>

            <Re­sour­ce­Dic­tio­na­ry.The­me­Dic­tio­na­ries>

                <Re­sour­ce­Dic­tio­na­ry x:Key="De­fault">

                    <Ima­geB­rush x:Key="Hub­Backgroun­dI­ma­geB­rush"

                      Ima­ge­Sour­ce="As­sets/Hub­Background.png"/>

                </Re­sour­ce­Dic­tio­na­ry>

                <Re­sour­ce­Dic­tio­na­ry x:Key="Hig­hCon­trast">

                    <Ima­geB­rush x:Key="Hub­Backgroun­dI­ma­geB­rush" Ima­ge­Sour­ce="{x:Null}"/>

                </Re­sour­ce­Dic­tio­na­ry>

            </Re­sour­ce­Dic­tio­na­ry.The­me­Dic­tio­na­ries>

 

            <!-- Sab­lo­na-->

            <Da­ta­Tem­pla­te x:Key="Mo­ja60x30Ti­leI­tem­Tem­pla­te">

                <Grid Mar­gin="0,0,9.5,9.5" Background="{Bin­ding Far­ba}"

                      Width="60" Height="30" >

                    <TextBlock Text="{Bin­ding UniqueId}" Ver­ti­ca­lA­lig­nment="Bot­tom"

                               Mar­gin="9.5,0,0,6.5" Sty­le="{The­me­Re­sour­ce

                               Ba­se­TextBloc­kSty­le}"/>

                </Grid>

            </Da­ta­Tem­pla­te>

        </Re­sour­ce­Dic­tio­na­ry>

    </Pa­ge.Re­sour­ces>

 

    <Grid x:Na­me="Layout­Root">

        <Hub x:Na­me="Hub" x:Uid="Hub" Hea­der="ap­pli­ca­tion na­me"

             Background="{The­me­Re­sour­ce Hub­Backgroun­dI­ma­geB­rush}">

            <Hub­Sec­tion  Width="Auto" Da­ta­Con­text="{Bin­ding Groups[0]}" >

                <Da­ta­Tem­pla­te>

                    <Grid­View

                        Mar­gin="0,-20,0,0"

                        Item­sSour­ce="{Bin­ding Items}"

                        Auto­ma­tion­Pro­per­ties.Auto­ma­tio­nId="Item­Grid­View"

                        Auto­ma­tion­Pro­per­ties.Na­me="Items In Group"

                        Item­Tem­pla­te="{Sta­tic­Re­sour­ce Mo­ja60x30Ti­leI­tem­Tem­pla­te}"

                        Se­lec­tion­Mo­de="None"

                        IsI­tem­Clic­kE­nab­led="True"

                        Item­Click="Item­View_Item­Click"

                        Con­ti­nuum­Na­vi­ga­tion­Tran­si­tio­nIn­fo.ExitE­le­men­tCon­tai­ner="True">

                        <Grid­View.Item­sPa­nel>

                            <Item­sPa­nel­Tem­pla­te>

                                <ItemsWrap­Grid />

                            </Item­sPa­nel­Tem­pla­te>

                        </Grid­View.Item­sPa­nel>

                    </Grid­View>

                </Da­ta­Tem­pla­te>

            </Hub­Sec­tion>

        </Hub>

    </Grid>

</Pa­ge>



Ohodnoťte článok:
   
 

24 hodín

týždeň

mesiac

 
 
  Zdieľaj cez Facebook Zdieľaj cez Google+ Zdieľaj cez Twitter Zdieľaj cez LinkedIn Správy z RSS Správy na smartfóne Správy cez newsletter