123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <UserControl
- x:Class="PDF_Office.CustomControl.CompositeControl.CustomComboControl"
- 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.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>
- <DataTemplate x:Key="numberData">
- <Grid>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding Content}" />
- </Grid>
- </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" />
- <TextBox
- Name="title"
- Height="20"
- Margin="10,0,35,0"
- VerticalAlignment="Center"
- Background="White"
- BorderThickness="0"
- FontFamily="Segoe UI"
- FontSize="14"
- IsReadOnly="True"
- TextAlignment="Left" />
- </Grid>
- </Border>
- </Grid>
- </Grid>
- </UserControl>
|