
strana 45
---------
<Grid x:Name="LayoutRoot" Background="White">
  <Rectangle Fill="#FF1E75F2" Stroke="Black" Height="120" 
    Margin="117,81,293,0" VerticalAlignment="Top" 
    RenderTransformOrigin="0.5,0.5">
    <Rectangle.RenderTransform>
      <TransformGroup>
        <ScaleTransform/>
        <SkewTransform/>
        <RotateTransform Angle="15"/>
        <TranslateTransform/>
      </TransformGroup>
    </Rectangle.RenderTransform>
  </Rectangle>
</Grid>


strana 49
---------
<Grid x:Name="LayoutRoot" Background="FloralWhite" ShowGridLines="True">
  <Grid.RowDefinitions>
    <RowDefinition Height="40"/>
    <RowDefinition Height="220"/>
    <RowDefinition Height="40"/>
  </Grid.RowDefinitions>
  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="75" />
    <ColumnDefinition Width="325"/>
  </Grid.ColumnDefinitions>
  <TextBlock Text="Jméno:" Grid.Row="0" Grid.Column="0"></TextBlock>
  <TextBlock Text="Datum:" Grid.Row="1" Grid.Column="0"></TextBlock>
  <TextBlock x:Name="TX1" Text="Oznam:" Grid.Row="2" Grid.Column="0" 
    Grid.ColumnSpan="2"></TextBlock>
  <TextBox x:Name="TB1" Text="Zadej jméno..." Grid.Row="0" 
    Grid.Column="1" Width="150" HorizontalAlignment="Left">
  </TextBox>
  <controls:Calendar x:Name="CAL1"Grid.Row="1" Grid.Column="1">
  </controls:Calendar>
  <Button Grid.Row="1" Grid.Column="1" Width="50" Height="25" 
    HorizontalAlignment="Right" Content="OK">
  </Button>
</Grid>


strana 51
---------
private void Button_Click(object sender, RoutedEventArgs e)
{
  string dateString;
  if (CAL1.SelectedDate == null)
  {
    dateString = "<datum neni vybrano...>";
  }
  else
  {
    dateString = CAL1.SelectedDate.ToString();
  }
  TX1.Text = "Hello " + TB1.Text + "\n" + "Datum: " + dateString;

}


