-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fluent icons new codepoints for datepicker, timepicker, flipview,…
… scrollbar, pipspage (#4129) * update flip and scrollbar * update calendarview, pipspager, loopcontrols * pipspager
- Loading branch information
Showing
11 changed files
with
167 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. --> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<x:String x:Key="CalendarViewPreviousButtonCaretUp"></x:String> | ||
<x:String x:Key="CalendarViewNextButtonCaretDown"></x:String> | ||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. --> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="Light"> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="HighContrast"> | ||
</ResourceDictionary> | ||
</ResourceDictionary.ThemeDictionaries> | ||
|
||
<x:String x:Key="ScrollBarCaretLeft"></x:String> | ||
<x:String x:Key="ScrollBarCaretRight"></x:String> | ||
<x:String x:Key="ScrollBarCaretUp"></x:String> | ||
<x:String x:Key="ScrollBarCaretDown"></x:String> | ||
|
||
<x:String x:Key="FlipViewCaretLeft"></x:String> | ||
<x:String x:Key="FlipViewCaretRight"></x:String> | ||
<x:String x:Key="FlipViewCaretUp"></x:String> | ||
<x:String x:Key="FlipViewCaretDown"></x:String> | ||
|
||
<x:String x:Key="LoopingSelectorUpButtonCaretUp"></x:String> | ||
<x:String x:Key="LoopingSelectorDownButtonCaretDown"></x:String> | ||
|
||
<Style TargetType="LoopingSelector"> | ||
<Setter Property="ShouldLoop" Value="True" /> | ||
<Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> | ||
<Setter Property="ItemTemplate"> | ||
<Setter.Value> | ||
<DataTemplate> | ||
<StackPanel VerticalAlignment="Center"> | ||
<TextBlock Text="{Binding PrimaryText}" FontFamily="{ThemeResource ContentControlThemeFontFamily}" /> | ||
</StackPanel> | ||
</DataTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="Control"> | ||
<Grid> | ||
|
||
<VisualStateManager.VisualStateGroups> | ||
<VisualStateGroup x:Name="CommonStates"> | ||
<VisualState x:Name="Normal" /> | ||
|
||
<VisualState x:Name="PointerOver"> | ||
|
||
<Storyboard> | ||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="UpButton" Storyboard.TargetProperty="Visibility"> | ||
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> | ||
</ObjectAnimationUsingKeyFrames> | ||
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DownButton" Storyboard.TargetProperty="Visibility"> | ||
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> | ||
</ObjectAnimationUsingKeyFrames> | ||
</Storyboard> | ||
</VisualState> | ||
|
||
</VisualStateGroup> | ||
|
||
</VisualStateManager.VisualStateGroups> | ||
<ScrollViewer x:Name="ScrollViewer" | ||
VerticalSnapPointsType="Mandatory" | ||
VerticalSnapPointsAlignment="Near" | ||
VerticalScrollBarVisibility="Hidden" | ||
HorizontalScrollMode="Disabled" | ||
ZoomMode="Disabled" | ||
Template="{StaticResource ScrollViewerScrollBarlessTemplate}" /> | ||
<RepeatButton x:Name="UpButton" | ||
Content="{ThemeResource LoopingSelectorUpButtonCaretUp}" | ||
FontFamily="{ThemeResource SymbolThemeFontFamily}" | ||
FontSize="8" | ||
Height="22" | ||
Padding="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Top" | ||
Visibility="Collapsed" | ||
Style="{StaticResource DateTimePickerFlyoutButtonStyle}" | ||
Background="{ThemeResource LoopingSelectorButtonBackground}" | ||
IsTabStop="False" /> | ||
<RepeatButton x:Name="DownButton" | ||
Content="{ThemeResource LoopingSelectorDownButtonCaretDown}" | ||
FontFamily="{ThemeResource SymbolThemeFontFamily}" | ||
FontSize="8" | ||
Height="22" | ||
Padding="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Bottom" | ||
Visibility="Collapsed" | ||
Style="{StaticResource DateTimePickerFlyoutButtonStyle}" | ||
Background="{ThemeResource LoopingSelectorButtonBackground}" | ||
IsTabStop="False" /> | ||
|
||
</Grid> | ||
|
||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. --> | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
|
||
<x:String x:Key="PipsPagerPreviousPageButtonGlyph"></x:String> | ||
<x:String x:Key="PipsPagerNextPageButtonGlyph"></x:String> | ||
|
||
</ResourceDictionary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.