This file contains hidden or 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
| <ResourceDictionary | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
| <!-- design reference http://osguni/?id=19359&Background=19361 --> | |
| <SolidColorBrush x:Key="SplitViewBackgroundBrush" Color="LightGray" /> <!--Color="{ThemeResource SystemBaseMediumColor}" Opacity="1" />--> | |
| <SolidColorBrush x:Key="SplitViewForegroundBrush" Color="{ThemeResource SystemBaseHighColor}" /> | |
| <SolidColorBrush x:Key="SplitViewSeparatorBrush" Color="DarkGray" /> | |
| <SolidColorBrush x:Key="NavButtonPressedBackgroundBrush" Color="{ThemeResource SystemListMediumColor}" /> |
This file contains hidden or 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
| using Windows.UI.Xaml; | |
| namespace App1.StateTriggers | |
| { | |
| public class BooleanTrigger : StateTriggerBase | |
| { | |
| public bool Not | |
| { | |
| get { return (bool)GetValue(NotProperty); } | |
| set { SetValue(NotProperty, value); } |
This file contains hidden or 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
| <Style x:Key="HorizontalGridViewStyle" TargetType="GridView"> | |
| <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> | |
| <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"/> | |
| <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto" /> | |
| <Setter Property="ScrollViewer.IsHorizontalRailEnabled" Value="False" /> | |
| <Setter Property="ScrollViewer.VerticalScrollMode" Value="Disabled" /> | |
| <Setter Property="ScrollViewer.IsVerticalRailEnabled" Value="False" /> | |
| <Setter Property="ItemContainerTransitions"> | |
| <Setter.Value> | |
| <TransitionCollection> |
This file contains hidden or 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
| using System.Collections.Generic; | |
| using Windows.Foundation; | |
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Media; | |
| namespace App1 | |
| { | |
| public static class UIHelper | |
| { | |
| public static Rect GetElementRect(this FrameworkElement element) |
This file contains hidden or 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
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; | |
| namespace App1.StateTriggers | |
| { | |
| public class ListViewBaseScrollingTrigger : StateTriggerBase | |
| { | |
| private ListViewBase _listViewBase; | |
| public ListViewBaseScrollingTrigger() |
This file contains hidden or 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
| using Windows.UI.Xaml; | |
| namespace App1.StateTriggers | |
| { | |
| public class TargetSizeStateTrigger : StateTriggerBase | |
| { | |
| private FrameworkElement _target; | |
| public FrameworkElement TargetElement | |
| { |
This file contains hidden or 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
| using Windows.UI.Xaml; | |
| namespace App1.StateTriggers | |
| { | |
| public class PortraitOrLandscapeTrigger : StateTriggerBase | |
| { | |
| private readonly Window _window; | |
| private PortraitLandscapeMode _mode; | |
This file contains hidden or 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
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; | |
| namespace App1.StateTriggers | |
| { | |
| public class CurrentPageTrigger : StateTriggerBase | |
| { | |
| private SplitView _splitView; | |
| public FrameworkElement TargetElement |