Skip to content

Commit 34dc6e9

Browse files
committed
timepicker focus visual
1 parent ab4fca5 commit 34dc6e9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/iNKORE.UI.WPF.Modern.Controls/Controls/Windows/TimePicker/TimePicker.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@
8080
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
8181
<Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}" />
8282
<Setter Property="UseSystemFocusVisuals" Value="{DynamicResource UseSystemFocusVisuals}" />
83-
<Setter Property="ui:FocusVisualHelper.FocusVisualMargin" Value="0,0,0,5" />
8483
<Setter Property="ui:ControlHelper.CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
8584
<Setter Property="VerticalAlignment" Value="Stretch" />
85+
<Setter Property="MaxHeight" Value="{DynamicResource LoopingSelectorMaxHeight}"/>
8686
<Setter Property="ItemsPanel">
8787
<Setter.Value>
8888
<ItemsPanelTemplate>
@@ -99,7 +99,7 @@
9999
Focusable="false"
100100
HorizontalScrollBarVisibility="Disabled"
101101
VerticalScrollBarVisibility="Hidden">
102-
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
102+
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0,-3,0,0"/>
103103
</ScrollViewer>
104104
<RepeatButton
105105
x:Name="UpButton"
@@ -394,7 +394,7 @@
394394
Grid.ColumnSpan="7"
395395
Height="{DynamicResource TimePickerFlyoutPresenterHighlightHeight}"
396396
IsHitTestVisible="False"
397-
Margin="4,6,4,0"
397+
Margin="4,2,4,2"
398398
VerticalAlignment="Center"
399399
BorderThickness="0"
400400
CornerRadius="{TemplateBinding CornerRadius}"

source/iNKORE.UI.WPF.Modern/Themes/ThemeResources.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@
549549
<!-- Resources for LoopingSelector -->
550550
<sys:Double x:Key="LoopingSelectorUpDownButtonHeight">34</sys:Double>
551551
<sys:Double x:Key="LoopingSelectorUpDownButtonScalePressed">0.875</sys:Double>
552+
<sys:Double x:Key="LoopingSelectorMaxHeight">354</sys:Double>
552553

553554
<Thickness x:Key="LoopingSelectorItemMargin">4,2,4,2</Thickness>
554555
<Thickness x:Key="LoopingSelectorUpDownButtonMargin">0</Thickness>

0 commit comments

Comments
 (0)