NotificationPanel.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <UserControl x:Class="PRSDesktop.NotificationPanel"
  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:syncfusion="http://schemas.syncfusion.com/wpf"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Grid x:Name="Layout">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="Auto" />
  12. <ColumnDefinition Width="*" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height=".4*" />
  16. <RowDefinition Height=".6*" />
  17. </Grid.RowDefinitions>
  18. <ListView Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" x:Name="Folders" HorizontalAlignment="Stretch"
  19. SelectionChanged="Folders_SelectionChanged" Margin="0,0,5,0" Background="White">
  20. <ListView.ItemTemplate>
  21. <DataTemplate>
  22. <Grid HorizontalAlignment="Stretch" Margin="4,2,4,2">
  23. <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
  24. <Border Width="40" Height="40" CornerRadius="20" BorderBrush="Black" BorderThickness="1"
  25. VerticalAlignment="Center" HorizontalAlignment="Center">
  26. <Border.Background>
  27. <ImageBrush ImageSource="{Binding Item2}" Stretch="UniformToFill" />
  28. </Border.Background>
  29. </Border>
  30. <TextBlock Height="Auto" TextWrapping="Wrap" Width="60" Margin="4,0,0,0"
  31. TextAlignment="Left" Text="{Binding Item1}" VerticalAlignment="Center" />
  32. </StackPanel>
  33. </Grid>
  34. </DataTemplate>
  35. </ListView.ItemTemplate>
  36. </ListView>
  37. <syncfusion:SfRichTextBoxAdv Grid.Column="1" Grid.Row="1" Margin="0,5,0,0" x:Name="Editor"
  38. LayoutType="Continuous" EnableMiniToolBar="False"
  39. OverridesDocumentBackground="True" Background="WhiteSmoke" Foreground="Black"
  40. BorderBrush="Gray" BorderThickness="1" IsReadOnly="True" />
  41. </Grid>
  42. </UserControl>