123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <UserControl
- x:Class="PDF_Master.CustomControl.CompositeControl.CustomComboControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:convert="clr-namespace:PDF_Master.DataConvert"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.CustomControl.CompositeControl"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- x:Name="usercontrol"
- d:DesignHeight="450"
- d:DesignWidth="800"
- Loaded="UserControl_Loaded"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../Styles/SliderStyle.xaml" />
- <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <convert:BoolToVisible x:Key="BoolToVisible" />
- <DataTemplate x:Key="numberData">
- <StackPanel Orientation="Horizontal">
- <!--<TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="*"
- Visibility="{Binding NeedFrontTag, Converter={StaticResource BoolToVisible}}" />-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontFamily="{Binding FontFamily}"
- Text="{Binding Content}" />
- </StackPanel>
- </DataTemplate>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
- <Border
- Height="32"
- HorizontalAlignment="Stretch"
- BorderBrush="#E2E3E6"
- BorderThickness="0">
- <Grid>
- <ComboBox
- Name="comBox"
- Padding="10"
- BorderBrush="#FFE2E3E6"
- BorderThickness="1"
- ItemTemplate="{StaticResource numberData}"
- MaxDropDownHeight="200"
- VirtualizingStackPanel.IsVirtualizing="True"
- VirtualizingStackPanel.VirtualizationMode="Standard">
- <ComboBox.ItemsPanel>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel IsVirtualizing="True" VirtualizationMode="Recycling" />
- </ItemsPanelTemplate>
- </ComboBox.ItemsPanel>
- </ComboBox>
- <TextBox
- x:Name="title"
- Height="20"
- Margin="10,0,30,0"
- VerticalAlignment="Center"
- Background="White"
- BorderThickness="0"
- FontFamily="Segoe UI"
- FontSize="14"
- IsReadOnly="True"
- TextAlignment="Left" />
- </Grid>
- </Border>
- </Grid>
- </Grid>
- </UserControl>
|