daily pastebin goal
66%
SHARE
TWEET

MainPage del ejemplo de toast notifications

elGuille Jan 17th, 2013 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Page
  2.    x:Class="Toast_notifications.MainPage"
  3.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.    xmlns:local="using:Toast_notifications"
  6.    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7.    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.    mc:Ignorable="d">
  9.  
  10.     <Page.Resources>
  11.         <Style x:Key="PlayEsAppBarButtonStyle" TargetType="ButtonBase"
  12.               BasedOn="{StaticResource AppBarButtonStyle}">
  13.             <Setter Property="AutomationProperties.AutomationId" Value="PlayAppBarButton"/>
  14.             <Setter Property="AutomationProperties.Name" Value="Inmediato"/>
  15.             <Setter Property="Content" Value="&#xE102;"/>
  16.         </Style>
  17.  
  18.         <Style x:Key="HelpEsAppBarButtonStyle" TargetType="ButtonBase"
  19.               BasedOn="{StaticResource AppBarButtonStyle}">
  20.             <Setter Property="AutomationProperties.AutomationId" Value="HelpAppBarButton"/>
  21.             <Setter Property="AutomationProperties.Name" Value="Ayuda"/>
  22.             <Setter Property="Content" Value="&#xE11B;"/>
  23.         </Style>
  24.         <Style x:Key="ClockEsAppBarButtonStyle" TargetType="ButtonBase"
  25.               BasedOn="{StaticResource AppBarButtonStyle}">
  26.             <Setter Property="AutomationProperties.AutomationId" Value="ClockAppBarButton"/>
  27.             <Setter Property="AutomationProperties.Name" Value="Programado"/>
  28.             <Setter Property="Content" Value="&#xE121;"/>
  29.         </Style>
  30.     </Page.Resources>
  31.    
  32.     <Page.BottomAppBar>
  33.         <AppBar x:Name="bottomAppBar1" Padding="10,0,10,0">
  34.             <Grid>
  35.                 <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  36.                     <Button Style="{StaticResource PlayEsAppBarButtonStyle}"
  37.                            Click="ButtonPlay_Click" />
  38.                     <Button Style="{StaticResource ClockEsAppBarButtonStyle}"
  39.                            Click="ButtonClock_Click" />
  40.                 </StackPanel>
  41.                 <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  42.                     <Button Style="{StaticResource HelpEsAppBarButtonStyle}"
  43.                            Click="ButtonHelp_Click" />
  44.                 </StackPanel>
  45.                
  46.             </Grid>
  47.         </AppBar>
  48.     </Page.BottomAppBar>
  49.     <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
  50.         <Grid.RowDefinitions>
  51.             <RowDefinition Height="80" />
  52.             <RowDefinition />
  53.         </Grid.RowDefinitions>
  54.  
  55.         <!-- El título de la página -->
  56.         <Grid>
  57.             <Grid.ColumnDefinitions>
  58.                 <ColumnDefinition Width="120"/>
  59.                 <ColumnDefinition Width="*" />
  60.                 <ColumnDefinition Width="Auto"/>
  61.             </Grid.ColumnDefinitions>
  62.             <TextBlock x:Name="pageTitle" Grid.Column="1" Text="Prueba de toast notifications"
  63.                       IsHitTestVisible="false"
  64.                       Style="{StaticResource PageHeaderTextStyle}" />
  65.             <Image x:Name="imgLogo" Grid.Column="2" Margin="10"
  66.                   Source="///Assets/SmallLogo.png" Stretch="Uniform" />
  67.         </Grid>
  68.  
  69.     </Grid>
  70. </Page>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top