CalendarBlock.xaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <UserControl x:Class="PRSDesktop.CalendarBlock"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="300">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*" />
  12. </Grid.ColumnDefinitions>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="20" />
  15. <RowDefinition Height="*" />
  16. </Grid.RowDefinitions>
  17. <DockPanel Grid.Row="0" Grid.Column="0">
  18. <Image
  19. Source="{Binding Image}"
  20. DockPanel.Dock="Right"
  21. VerticalAlignment="Center"
  22. />
  23. <TextBlock
  24. Text="{Binding Subject}"
  25. Foreground="{Binding Foreground}"
  26. DockPanel.Dock="Left"
  27. VerticalAlignment="Center"
  28. FontWeight="DemiBold" />
  29. </DockPanel>
  30. <TextBlock
  31. Grid.Row="1"
  32. Grid.Column="0"
  33. HorizontalAlignment="Left"
  34. Text="{Binding Notes}"
  35. TextWrapping="Wrap"
  36. Foreground="{Binding Foreground}" />
  37. </Grid>
  38. </UserControl>