|
749 | 749 | <Setter Property="Foreground" Value="{DynamicResource WD.RegularTextSolidColorBrush}" />
|
750 | 750 | <Setter Property="Background" Value="{DynamicResource WD.BackgroundSolidColorBrush}" />
|
751 | 751 | <Setter Property="BorderBrush" Value="{DynamicResource WD.PrimaryNormalSolidColorBrush}" />
|
| 752 | + <Setter Property="TitleBackground" Value="{DynamicResource WD.PrimaryNormalSolidColorBrush}" /> |
752 | 753 | <Setter Property="IsTabStop" Value="False" />
|
753 | 754 | <Setter Property="BorderThickness" Value="1" />
|
754 | 755 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
|
1814 | 1815 | </ControlTemplate.Resources>
|
1815 | 1816 | <Border x:Name="PART_Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" SnapsToDevicePixels="True">
|
1816 | 1817 | <controls:SmallPanel>
|
1817 |
| - <ToggleButton x:Name="PART_ToggleButton" Background="{TemplateBinding Background}" ClickMode="Press" Focusable="False" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{x:Null}" Template="{StaticResource WD.ComboBoxToggleButton}" /> |
1818 | 1818 | <ContentPresenter x:Name="ContentSite" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" IsHitTestVisible="False" />
|
1819 | 1819 | <TextBox x:Name="PART_EditableTextBox" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="{TemplateBinding Background}" Focusable="True" Foreground="{DynamicResource WD.PrimaryTextSolidColorBrush}" IsReadOnly="{TemplateBinding IsReadOnly}" SelectionBrush="{DynamicResource WD.WindowBorderBrushSolidColorBrush}" Style="{x:Null}" Template="{StaticResource WD.ComboBoxTextBox}" Visibility="Hidden" />
|
1820 | 1820 | <TextBlock x:Name="PART_Watermark" Margin="{TemplateBinding Padding}" Padding="1,0" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Background="Transparent" FontSize="{StaticResource WD.NormalFontSize}" Foreground="{DynamicResource WD.RegularTextSolidColorBrush}" Text="{Binding Path=(helpers:ElementHelper.Watermark), RelativeSource={RelativeSource TemplatedParent}}" TextTrimming="CharacterEllipsis" Visibility="Collapsed" />
|
| 1821 | + <ToggleButton x:Name="PART_ToggleButton" Background="{TemplateBinding Background}" ClickMode="Press" Focusable="False" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{x:Null}" Template="{StaticResource WD.ComboBoxToggleButton}" /> |
1821 | 1822 | <Popup x:Name="PART_Popup" MinWidth="{TemplateBinding FrameworkElement.ActualWidth}" MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}" AllowsTransparency="True" Focusable="False" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" StaysOpen="False">
|
1822 | 1823 | <controls:SmallPanel x:Name="PART_DropDown" MinWidth="{TemplateBinding FrameworkElement.ActualWidth}" MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}" Margin="24,2,24,24" RenderTransformOrigin=".5,0" SnapsToDevicePixels="True">
|
1823 | 1824 | <controls:SmallPanel.RenderTransform>
|
|
6176 | 6177 | <RepeatButton x:Name="PART_NumericUp" Grid.Row="0" Margin="0,1,1,0" Padding="0" Command="{x:Static controls:NumericBox.IncreaseCommand}" Delay="{TemplateBinding Delay}" IsTabStop="False" Style="{StaticResource WD.DefaultRepeatButton}">
|
6177 | 6178 | <controls:PathIcon Kind="ChevronUp" Style="{StaticResource WD.MiniPathIcon}" />
|
6178 | 6179 | </RepeatButton>
|
6179 |
| - <RepeatButton x:Name="PART_NumericDown" Grid.Row="2" Margin="0,0,1,1" Padding="0" Command="{x:Static controls:NumericBox.DecreaseCommand}" Delay="{TemplateBinding Delay}" IsTabStop="False"> |
| 6180 | + <RepeatButton x:Name="PART_NumericDown" Grid.Row="2" Margin="0,0,1,1" Padding="0" Command="{x:Static controls:NumericBox.DecreaseCommand}" Delay="{TemplateBinding Delay}" IsTabStop="False" Style="{StaticResource WD.DefaultRepeatButton}"> |
6180 | 6181 | <controls:PathIcon Kind="ChevronDown" Style="{StaticResource WD.MiniPathIcon}" />
|
6181 | 6182 | </RepeatButton>
|
6182 | 6183 | </Grid>
|
|
6354 | 6355 | </UniformGrid>
|
6355 | 6356 | <UniformGrid Grid.Column="1" Rows="1" Visibility="{Binding ColorType, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.ColorTypeToVisibilityConverter}, ConverterParameter={x:Static controls:ColorTypeEnum.HSL}}">
|
6356 | 6357 | <StackPanel>
|
6357 |
| - <TextBox helpers:TextBoxHelper.AllowOnlyNumericInput="True" helpers:TextBoxHelper.IsEnterUpdateEnabled="True" helpers:TextBoxHelper.SelectAllOnClick="True" Style="{StaticResource WD.TextBoxColorPicker}" Text="{Binding SelectedColor, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.HToColorConverter}}" /> |
| 6358 | + <TextBox helpers:TextBoxHelper.AllowOnlyNumericInput="True" helpers:TextBoxHelper.IsEnterUpdateEnabled="True" helpers:TextBoxHelper.MaxValue="360" helpers:TextBoxHelper.MinValue="0" helpers:TextBoxHelper.SelectAllOnClick="True" Style="{StaticResource WD.TextBoxColorPicker}" Text="{Binding SelectedColor, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource WD.HToColorConverter}}" /> |
6358 | 6359 | <TextBlock Text="H" />
|
6359 | 6360 | </StackPanel>
|
6360 | 6361 | <StackPanel Grid.Column="1">
|
|
6378 | 6379 | </Setter>
|
6379 | 6380 | </Style>
|
6380 | 6381 | <Style BasedOn="{StaticResource WD.ColorPicker}" TargetType="{x:Type controls:ColorPicker}" />
|
| 6382 | + <Style x:Key="WD.IPEditBox" BasedOn="{StaticResource WD.ControlBasicStyle}" TargetType="{x:Type controls:IPEditBox}"> |
| 6383 | + <Setter Property="BorderThickness" Value="1" /> |
| 6384 | + <Setter Property="BorderBrush" Value="{DynamicResource WD.BaseSolidColorBrush}" /> |
| 6385 | + <Setter Property="Background" Value="{DynamicResource WD.BackgroundSolidColorBrush}" /> |
| 6386 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 6387 | + <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
| 6388 | + <Setter Property="Padding" Value="{StaticResource WD.DefaultPadding}" /> |
| 6389 | + <Setter Property="Template"> |
| 6390 | + <Setter.Value> |
| 6391 | + <ControlTemplate TargetType="{x:Type controls:IPEditBox}"> |
| 6392 | + <ControlTemplate.Resources> |
| 6393 | + <Style BasedOn="{StaticResource WD.DefaultTextBox}" TargetType="{x:Type TextBox}"> |
| 6394 | + <Setter Property="BorderThickness" Value="0" /> |
| 6395 | + <Setter Property="helpers:TextBoxHelper.AllowOnlyNumericInput" Value="True" /> |
| 6396 | + <Setter Property="helpers:TextBoxHelper.MaxValue" Value="255" /> |
| 6397 | + <Setter Property="helpers:TextBoxHelper.MinValue" Value="0" /> |
| 6398 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 6399 | + <Setter Property="HorizontalContentAlignment" Value="Center" /> |
| 6400 | + </Style> |
| 6401 | + <Style TargetType="TextBlock"> |
| 6402 | + <Setter Property="Text" Value="." /> |
| 6403 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 6404 | + </Style> |
| 6405 | + </ControlTemplate.Resources> |
| 6406 | + <Border x:Name="PART_Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{Binding Path=(helpers:ElementHelper.CornerRadius), RelativeSource={RelativeSource TemplatedParent}}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" UseLayoutRounding="{TemplateBinding UseLayoutRounding}"> |
| 6407 | + <ScrollViewer HorizontalScrollBarVisibility="Auto"> |
| 6408 | + <Grid> |
| 6409 | + <Grid.ColumnDefinitions> |
| 6410 | + <ColumnDefinition /> |
| 6411 | + <ColumnDefinition Width="Auto" /> |
| 6412 | + <ColumnDefinition /> |
| 6413 | + <ColumnDefinition Width="Auto" /> |
| 6414 | + <ColumnDefinition /> |
| 6415 | + <ColumnDefinition Width="Auto" /> |
| 6416 | + <ColumnDefinition /> |
| 6417 | + </Grid.ColumnDefinitions> |
| 6418 | + <TextBox x:Name="PART_TextBox1" /> |
| 6419 | + <TextBlock Grid.Column="1" /> |
| 6420 | + <TextBox x:Name="PART_TextBox2" Grid.Column="2" /> |
| 6421 | + <TextBlock Grid.Column="3" /> |
| 6422 | + <TextBox x:Name="PART_TextBox3" Grid.Column="4" /> |
| 6423 | + <TextBlock Grid.Column="5" /> |
| 6424 | + <TextBox x:Name="PART_TextBox4" Grid.Column="6" /> |
| 6425 | + </Grid> |
| 6426 | + </ScrollViewer> |
| 6427 | + </Border> |
| 6428 | + <ControlTemplate.Triggers> |
| 6429 | + <Trigger Property="IsKeyboardFocused" Value="True"> |
| 6430 | + <Setter Property="BorderBrush" Value="{DynamicResource WD.PrimaryNormalSolidColorBrush}" /> |
| 6431 | + </Trigger> |
| 6432 | + <Trigger Property="IsMouseOver" Value="True"> |
| 6433 | + <Setter Property="BorderBrush" Value="{DynamicResource WD.PrimaryNormalSolidColorBrush}" /> |
| 6434 | + </Trigger> |
| 6435 | + <MultiTrigger> |
| 6436 | + <MultiTrigger.Conditions> |
| 6437 | + <Condition Property="IsKeyboardFocused" Value="True" /> |
| 6438 | + <Condition Property="IsMouseOver" Value="False" /> |
| 6439 | + </MultiTrigger.Conditions> |
| 6440 | + <Setter Property="BorderBrush" Value="{DynamicResource WD.PrimaryNormalSolidColorBrush}" /> |
| 6441 | + </MultiTrigger> |
| 6442 | + </ControlTemplate.Triggers> |
| 6443 | + </ControlTemplate> |
| 6444 | + </Setter.Value> |
| 6445 | + </Setter> |
| 6446 | + </Style> |
| 6447 | + <Style BasedOn="{StaticResource WD.IPEditBox}" TargetType="{x:Type controls:IPEditBox}" /> |
6381 | 6448 | <Style x:Key="WD.DatePickerCalendarStyle" BasedOn="{StaticResource {x:Type Calendar}}" TargetType="{x:Type Calendar}" />
|
6382 | 6449 | <Style x:Key="WD.DefaultDatePicker" BasedOn="{StaticResource WD.ControlBasicStyle}" TargetType="{x:Type DatePicker}">
|
6383 | 6450 | <Setter Property="IsTodayHighlighted" Value="True" />
|
|
0 commit comments