CloudDriveContent.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl x:Class="PDF_Office.Views.HomePanel.CloudDrive.CloudDriveContent"
  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:PDF_Office.Views.HomePanel.CloudDrive"
  7. xmlns:prism ="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <Grid Margin="44,38,0,0">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="auto"/>
  14. <RowDefinition Height="auto"/>
  15. </Grid.RowDefinitions>
  16. <Grid HorizontalAlignment="Stretch">
  17. <TextBlock Text="Cloud disk" HorizontalAlignment="Left"/>
  18. <ComboBox x:Name="combCloudDisk" Width="115" Height="32" Background="Wheat" HorizontalAlignment="Right">
  19. <ComboBox.ItemTemplate>
  20. <DataTemplate>
  21. <Border Background="#DBDBDB">
  22. <TextBlock Text="{Binding DriveName}"/>
  23. </Border>
  24. </DataTemplate>
  25. </ComboBox.ItemTemplate>
  26. </ComboBox>
  27. </Grid>
  28. <ListBox x:Name="ListCloudDisk" Grid.Row="1">
  29.  
  30. <ListBox.ItemsPanel>
  31. <ItemsPanelTemplate>
  32. <UniformGrid Columns="4"/>
  33. </ItemsPanelTemplate>
  34. </ListBox.ItemsPanel>
  35. <ListBox.ItemTemplate>
  36. <DataTemplate>
  37. <Border Background="#DBDBDB" Width="218" Height="172">
  38. <TextBlock Text="{Binding DriveName}"/>
  39. </Border>
  40. </DataTemplate>
  41. </ListBox.ItemTemplate>
  42. <ListBox.ItemContainerStyle>
  43. <Style TargetType="{x:Type ListBoxItem}">
  44. <EventSetter Event="PreviewMouseLeftButtonUp"
  45. Handler="SelectCloudDrive_Click"
  46. />
  47. </Style>
  48. </ListBox.ItemContainerStyle>
  49. </ListBox>
  50. </Grid>
  51. </UserControl>