123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <UserControl
- x:Class="PDF_Office.Views.HomePanel.PDFTools.QuickToolsContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Office.Views.HomePanel"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:customControl="clr-namespace:PDF_Office.CustomControl"
- xmlns:converter="clr-namespace:PDF_Office.DataConvert"
- xmlns:pDFTools="clr-namespace:PDF_Office.Views.HomePanel.PDFTools"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../Styles/CustomListItemStyle.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <converter:BoolToVisible x:Key="BoolToVisibilityConverter" />
- <Style x:Key="LabelSty"
- TargetType="{x:Type Label}">
- <Setter Property="Padding"
- Value="10,5" />
- <Setter Property="Background"
- Value="CadetBlue" />
- <Setter Property="Foreground"
- Value="White" />
- </Style>
- <DataTemplate x:Key="DataTemplate">
- <pDFTools:PDFToolItem x:Name="data"/>
- </DataTemplate>
-
- <ItemsPanelTemplate x:Key="ListItemsPanelTemplate">
- <WrapPanel AllowDrop="True"
- Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ResourceDictionary>
-
- </UserControl.Resources>
- <Grid Grid.ColumnSpan="2" Margin="0,0,20,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBlock
- x:Name="TxbQuickToolsTitle"
- Margin="0,0,0,16"
- FontSize="24"
- FontWeight="SemiBold"
- Text="Quick Tools" />
- <StackPanel
- x:Name="PnlToolsUIBtns" Grid.ColumnSpan="2"
- Grid.Column="0"
- Margin="0,0,12,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Orientation="Horizontal"
- Visibility="Visible">
- <Button
- x:Name="BtnTools"
- Width="68"
- Height="28"
- Margin="0,0,0,0"
- Background="#FFFFFF"
- Content="Tools"
- Click="BtnTools_Click"
- >
- </Button>
- <Button
- x:Name="BtnMore"
- Width="28"
- Height="28"
- Margin="12,0,0,0"
- Background="#FFFFFF" BorderThickness="0" Content="..."
- Click="BtnMore_Click"
- >
- </Button>
- </StackPanel>
- <Grid
- x:Name="GridAllTools"
- Grid.Row="1" Height="270"
- SizeChanged="GridAllTools_SizeChanged">
- <customControl:ListBoxEx x:Name="ListBoxToolBars" HorizontalAlignment="Stretch" MinWidth="540"
- Grid.Row="3"
- AllowDrop="True"
- BorderThickness="0"
- SizeChanged="ListBoxShortCuts_SizeChanged"
- ItemContainerStyle="{StaticResource MoreListBoxItemStyle}"
- ItemTemplate="{StaticResource DataTemplate}"
- ItemsPanel="{StaticResource ListItemsPanelTemplate}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- SelectionMode="Single" />
- </Grid>
- </Grid>
- </UserControl>
|