CloudDriveContent.xaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="129.367"/>
  15. <RowDefinition Height="67.633"/>
  16. </Grid.RowDefinitions>
  17. <Grid>
  18. <TextBlock Text="Cloud Drive" HorizontalAlignment="Left"/>
  19. <ComboBox x:Name="combCloudDrive" Width="115" Height="32" Background="Wheat" HorizontalAlignment="Right" SelectionChanged="combCloudDrive_SelectionChanged">
  20. <ComboBox.ItemTemplate>
  21. <DataTemplate>
  22. <Border Background="#DBDBDB">
  23. <TextBlock Text="{Binding DriveName}"/>
  24. </Border>
  25. </DataTemplate>
  26. </ComboBox.ItemTemplate>
  27. </ComboBox>
  28. </Grid>
  29. <ListBox x:Name="ListCloudDrive" Grid.Row="1" Grid.RowSpan="2">
  30.  
  31. <ListBox.ItemsPanel>
  32. <ItemsPanelTemplate>
  33. <UniformGrid Columns="4"/>
  34. </ItemsPanelTemplate>
  35. </ListBox.ItemsPanel>
  36. <ListBox.ItemTemplate>
  37. <DataTemplate>
  38. <Border Background="#DBDBDB" Width="218" Height="172">
  39. <TextBlock Text="{Binding DriveName}"/>
  40. </Border>
  41. </DataTemplate>
  42. </ListBox.ItemTemplate>
  43. <ListBox.ItemContainerStyle>
  44. <Style TargetType="{x:Type ListBoxItem}">
  45. <EventSetter Event="PreviewMouseLeftButtonUp"
  46. Handler="SelectCloudDrive_Click"
  47. />
  48. </Style>
  49. </ListBox.ItemContainerStyle>
  50. </ListBox>
  51. </Grid>
  52. </UserControl>