KanbanNotes.xaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <UserControl x:Class="PRSDesktop.KanbanNotes"
  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. mc:Ignorable="d"
  7. d:DesignHeight="450" d:DesignWidth="800">
  8. <Grid ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="10">
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="25" />
  11. <RowDefinition Height="*" />
  12. <RowDefinition Height="40" />
  13. <RowDefinition Height="100" />
  14. </Grid.RowDefinitions>
  15. <Label Grid.Row="0" Content="Previous Notes" HorizontalAlignment="Stretch" VerticalAlignment="Center" />
  16. <ListBox x:Name="NotesList" Grid.Row="1" Background="LightGray" VerticalAlignment="Stretch"
  17. HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  18. <ListBox.ItemTemplate>
  19. <DataTemplate>
  20. <Grid HorizontalAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  21. Margin="2">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="auto" />
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="*" />
  27. </Grid.ColumnDefinitions>
  28. <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding Path=.}" TextWrapping="Wrap"
  29. HorizontalAlignment="Stretch" />
  30. </Grid>
  31. </DataTemplate>
  32. </ListBox.ItemTemplate>
  33. </ListBox>
  34. <Label Grid.Row="2" Content="Add a Note" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" />
  35. <TextBox Grid.Row="3" x:Name="NewNote" Text="" TextWrapping="Wrap" HorizontalAlignment="Stretch"
  36. VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" Background="LightYellow"
  37. AcceptsReturn="True" />
  38. </Grid>
  39. </UserControl>