SHARE
TWEET

Untitled

a guest Feb 22nd, 2011 288 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Window x:Class="Calendar.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        xmlns:w="clr-namespace:Calendar"
  5.        Title="Mon Calendrier" Height="130" Width="300">
  6.     <Window.Background>
  7.         <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  8.             <GradientStop Color="White"  Offset="0" />
  9.             <GradientStop Color="LightSkyBlue"  Offset="1" />
  10.         </LinearGradientBrush>
  11.     </Window.Background>
  12.    
  13.     <Window.CommandBindings>
  14.         <CommandBinding Command="MediaCommands.Play" x:Name="play"
  15.                        Executed="play_Executed"
  16.                        CanExecute="CanExecute" />
  17.         <CommandBinding Command="MediaCommands.Stop" x:Name="stop"
  18.                        Executed="stop_Executed"
  19.                        CanExecute="CanExecute" />
  20.         <CommandBinding Command="MediaCommands.Pause" x:Name="pause"
  21.                        Executed="pause_Executed"
  22.                        CanExecute="CanExecute" />
  23.     </Window.CommandBindings>
  24.     <Grid>
  25.        
  26.         <Grid.RowDefinitions>
  27.             <RowDefinition />
  28.             <RowDefinition Height="20"/>
  29.         </Grid.RowDefinitions>
  30.         <Grid.ColumnDefinitions>
  31.             <ColumnDefinition />
  32.             <ColumnDefinition />
  33.             <ColumnDefinition />
  34.         </Grid.ColumnDefinitions>
  35.  
  36.         <Label Name="DateLabel" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" FontSize="20"/>
  37.        
  38.         <Button Name="StartButton" Grid.Row="1" Grid.Column="0" Content="Start" Command="MediaCommands.Play"/>
  39.         <Button Name="StopButton" Grid.Row="1" Grid.Column="1" Content="Stop" Command="MediaCommands.Stop" />
  40.         <Button Name="ResetButton" Grid.Row="1" Grid.Column="2" Content="Reset"  Command="MediaCommands.Pause" />
  41.        
  42.     </Grid>
  43. </Window>
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