Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Calendar.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:w="clr-namespace:Calendar"
- Title="Mon Calendrier" Height="130" Width="300">
- <Window.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="White" Offset="0" />
- <GradientStop Color="LightSkyBlue" Offset="1" />
- </LinearGradientBrush>
- </Window.Background>
- <Window.CommandBindings>
- <CommandBinding Command="MediaCommands.Play" x:Name="play"
- Executed="play_Executed"
- CanExecute="CanExecute" />
- <CommandBinding Command="MediaCommands.Stop" x:Name="stop"
- Executed="stop_Executed"
- CanExecute="CanExecute" />
- <CommandBinding Command="MediaCommands.Pause" x:Name="pause"
- Executed="pause_Executed"
- CanExecute="CanExecute" />
- </Window.CommandBindings>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="20"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Label Name="DateLabel" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" FontSize="20"/>
- <Button Name="StartButton" Grid.Row="1" Grid.Column="0" Content="Start" Command="MediaCommands.Play"/>
- <Button Name="StopButton" Grid.Row="1" Grid.Column="1" Content="Stop" Command="MediaCommands.Stop" />
- <Button Name="ResetButton" Grid.Row="1" Grid.Column="2" Content="Reset" Command="MediaCommands.Pause" />
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement