12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <UserControl x:Class="PDF_Master.Views.HomePanel.CloudDrive.CloudDriveContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.HomePanel.CloudDrive"
-
- xmlns:prism ="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid Margin="44,38,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <TextBlock Text="Cloud Drive" HorizontalAlignment="Left"/>
- <ComboBox x:Name="combCloudDrive" Width="115" Height="32" Background="Wheat" HorizontalAlignment="Right" SelectionChanged="combCloudDrive_SelectionChanged">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <Border Background="#DBDBDB">
- <TextBlock Text="{Binding DriveName}"/>
- </Border>
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </Grid>
- <ListBox x:Name="ListCloudDrive" Background="Transparent" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Left" VerticalAlignment='Top' BorderThickness="0">
-
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid Columns="4"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel Width="218" Height="192">
- <Rectangle Fill="#DBDBDB" Width="218" Height="172"/>
- <TextBlock Grid.Row="1" Text="{Binding DriveName}" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="Margin" Value="0,0,8,0"/>
- <Setter Property="Width" Value="218"/>
- <Setter Property="Height" Value="192"/>
- <Setter Property="Padding" Value="0"/>
- <EventSetter Event="PreviewMouseLeftButtonUp"
- Handler="SelectCloudDrive_Click"
- />
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- </Grid>
- </UserControl>
|