CloudDriveContent.xaml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <UserControl
  2. x:Class="PDF_Master.Views.HomePanel.CloudDrive.CloudDriveContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Master.Views.HomePanel.CloudDrive"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:prism="http://prismlibrary.com/"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. mc:Ignorable="d">
  13. <Grid Margin="44,38,0,0">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="auto" />
  16. <RowDefinition />
  17. </Grid.RowDefinitions>
  18. <Grid>
  19. <TextBlock HorizontalAlignment="Left" Text="Cloud Drive" />
  20. <ComboBox
  21. x:Name="combCloudDrive"
  22. Width="115"
  23. Height="32"
  24. HorizontalAlignment="Right"
  25. Background="Wheat"
  26. SelectionChanged="combCloudDrive_SelectionChanged">
  27. <ComboBox.ItemTemplate>
  28. <DataTemplate>
  29. <Border Background="#DBDBDB">
  30. <TextBlock Text="{Binding DriveName}" />
  31. </Border>
  32. </DataTemplate>
  33. </ComboBox.ItemTemplate>
  34. </ComboBox>
  35. </Grid>
  36. <ListBox
  37. x:Name="ListCloudDrive"
  38. Grid.Row="1"
  39. Grid.RowSpan="2"
  40. HorizontalAlignment="Left"
  41. VerticalAlignment="Top"
  42. Background="Transparent"
  43. BorderThickness="0">
  44. <ListBox.ItemsPanel>
  45. <ItemsPanelTemplate>
  46. <UniformGrid Columns="4" />
  47. </ItemsPanelTemplate>
  48. </ListBox.ItemsPanel>
  49. <ListBox.ItemTemplate>
  50. <DataTemplate>
  51. <StackPanel Width="218" Height="192">
  52. <Rectangle
  53. Width="218"
  54. Height="172"
  55. Fill="#DBDBDB" />
  56. <TextBlock
  57. Grid.Row="1"
  58. HorizontalAlignment="Center"
  59. VerticalAlignment="Bottom"
  60. Text="{Binding DriveName}" />
  61. </StackPanel>
  62. </DataTemplate>
  63. </ListBox.ItemTemplate>
  64. <ListBox.ItemContainerStyle>
  65. <Style TargetType="{x:Type ListBoxItem}">
  66. <Setter Property="Margin" Value="0,0,8,0" />
  67. <Setter Property="Width" Value="218" />
  68. <Setter Property="Height" Value="192" />
  69. <Setter Property="Padding" Value="0" />
  70. <EventSetter Event="PreviewMouseLeftButtonUp" Handler="SelectCloudDrive_Click" />
  71. </Style>
  72. </ListBox.ItemContainerStyle>
  73. </ListBox>
  74. </Grid>
  75. </UserControl>