|
875 | 875 | </Setter.Value>
|
876 | 876 | </Setter>
|
877 | 877 | </Style>
|
| 878 | + <Style x:Key="ListViewItemContainerStyle_NoRevealBorder" TargetType="ListViewItem"> |
| 879 | + <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> |
| 880 | + <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> |
| 881 | + <Setter Property="Background" Value="{ThemeResource ListViewItemBackground}"/> |
| 882 | + <Setter Property="Foreground" Value="{ThemeResource ListViewItemForeground}"/> |
| 883 | + <Setter Property="TabNavigation" Value="Local"/> |
| 884 | + <Setter Property="IsHoldingEnabled" Value="True"/> |
| 885 | + <Setter Property="Padding" Value="5,0,0,0"/> |
| 886 | + <Setter Property="HorizontalContentAlignment" Value="Left"/> |
| 887 | + <Setter Property="VerticalContentAlignment" Value="Center"/> |
| 888 | + <Setter Property="MinWidth" Value="8"/> |
| 889 | + <Setter Property="MinHeight" Value="20"/> |
| 890 | + <Setter Property="AllowDrop" Value="False"/> |
| 891 | + <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}"/> |
| 892 | + <Setter Property="FocusVisualMargin" Value="0"/> |
| 893 | + <Setter Property="Template"> |
| 894 | + <Setter.Value> |
| 895 | + <ControlTemplate TargetType="ListViewItem"> |
| 896 | + <ListViewItemPresenter x:Name="Root" CheckBrush="{ThemeResource ListViewItemCheckBrush}" ContentMargin="{TemplateBinding Padding}" CheckBoxBrush="{ThemeResource ListViewItemCheckBoxBrush}" ContentTransitions="{TemplateBinding ContentTransitions}" CheckMode="{ThemeResource ListViewItemCheckMode}" DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}" DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}" DragBackground="{ThemeResource ListViewItemDragBackground}" DragForeground="{ThemeResource ListViewItemDragForeground}" FocusBorderBrush="{ThemeResource ListViewItemFocusBorderBrush}" FocusVisualMargin="{TemplateBinding FocusVisualMargin}" FocusSecondaryBorderBrush="{ThemeResource ListViewItemFocusSecondaryBorderBrush}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Control.IsTemplateFocusTarget="True" PressedBackground="{ThemeResource ListViewItemBackgroundPressed}" PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackground}" PointerOverForeground="{ThemeResource ListViewItemForegroundPointerOver}" PointerOverBackground="{ThemeResource ListViewItemBackgroundPointerOver}" RevealBorderThickness="{ThemeResource ListViewItemRevealBorderThemeThickness}" ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" RevealBorderBrush="{ThemeResource ListViewItemRevealBorderBrush}" RevealBackground="{ThemeResource ListViewItemRevealBackground}" SelectedForeground="{ThemeResource ListViewItemForegroundSelected}" SelectionCheckMarkVisualEnabled="{ThemeResource ListViewItemSelectionCheckMarkVisualEnabled}" SelectedBackground="{ThemeResource ListViewItemBackgroundSelected}" SelectedPressedBackground="{ThemeResource ListViewItemBackgroundSelectedPressed}" SelectedPointerOverBackground="{ThemeResource ListViewItemBackgroundSelectedPointerOver}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"> |
| 897 | + <VisualStateManager.VisualStateGroups> |
| 898 | + <VisualStateGroup x:Name="CommonStates"> |
| 899 | + <VisualState x:Name="Normal"/> |
| 900 | + <VisualState x:Name="Selected"/> |
| 901 | + </VisualStateGroup> |
| 902 | + <VisualStateGroup x:Name="DisabledStates"> |
| 903 | + <VisualState x:Name="Enabled"/> |
| 904 | + <VisualState x:Name="Disabled"> |
| 905 | + <VisualState.Setters> |
| 906 | + <Setter Target="Root.RevealBorderThickness" Value="0"/> |
| 907 | + </VisualState.Setters> |
| 908 | + </VisualState> |
| 909 | + </VisualStateGroup> |
| 910 | + </VisualStateManager.VisualStateGroups> |
| 911 | + </ListViewItemPresenter> |
| 912 | + </ControlTemplate> |
| 913 | + </Setter.Value> |
| 914 | + </Setter> |
| 915 | + </Style> |
| 916 | + <SolidColorBrush x:Key="SystemControlSplitterPointerOver" Color="{ThemeResource SystemBaseLowColor}"/> |
| 917 | + <SolidColorBrush x:Key="SystemControlSplitterPressed" Color="{ThemeResource SystemBaseHighColor}"/> |
| 918 | + <Style x:Key="GridSplitterStyle_Invisible" TargetType="Custom:GridSplitter"> |
| 919 | + <Setter Property="IsTabStop" Value="True"/> |
| 920 | + <Setter Property="UseSystemFocusVisuals" Value="True"/> |
| 921 | + <Setter Property="HorizontalAlignment" Value="Stretch"/> |
| 922 | + <Setter Property="VerticalAlignment" Value="Stretch"/> |
| 923 | + <Setter Property="IsFocusEngagementEnabled" Value="True"/> |
| 924 | + <Setter Property="MinWidth" Value="2"/> |
| 925 | + <Setter Property="MinHeight" Value="16"/> |
| 926 | + <Setter Property="Background" Value="{ThemeResource SystemControlHighlightChromeHighBrush}"/> |
| 927 | + <Setter Property="GripperForeground" Value="{ThemeResource SystemControlForegroundAltHighBrush}"/> |
| 928 | + <Setter Property="Template"> |
| 929 | + <Setter.Value> |
| 930 | + <ControlTemplate TargetType="Custom:GridSplitter"> |
| 931 | + <Grid x:Name="RootGrid" Background="{TemplateBinding Background}"> |
| 932 | + <VisualStateManager.VisualStateGroups> |
| 933 | + <VisualStateGroup x:Name="GridSplitterStates"> |
| 934 | + <VisualState x:Name="Normal"/> |
| 935 | + </VisualStateGroup> |
| 936 | + </VisualStateManager.VisualStateGroups> |
| 937 | + <ContentPresenter Content="{TemplateBinding Element}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/> |
| 938 | + </Grid> |
| 939 | + </ControlTemplate> |
| 940 | + </Setter.Value> |
| 941 | + </Setter> |
| 942 | + </Style> |
878 | 943 |
|
879 | 944 | </UserControl.Resources>
|
880 | 945 |
|
|
1164 | 1229 | <MenuFlyoutItem x:Name="ManualPathEntryItem" Text="Edit address" Icon="Edit" Click="ManualPathEntryItem_Click"/>
|
1165 | 1230 | </MenuFlyout>
|
1166 | 1231 | </Grid.ContextFlyout>
|
1167 |
| - <ListView Background="{ThemeResource TextControlBackground}" Margin="0" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" |
| 1232 | + <ListView ItemContainerStyle="{StaticResource ListViewItemContainerStyle_NoRevealBorder}" Background="{ThemeResource TextControlBackground}" Margin="0" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" |
1168 | 1233 | ScrollViewer.HorizontalScrollMode="Enabled" ScrollViewer.VerticalScrollMode="Disabled"
|
1169 | 1234 | ItemClick="PathViewInteract_ItemClick" ItemsSource="{x:Bind parentPage.pathBoxItems}" HorizontalContentAlignment="Stretch" x:Name="PathViewInteract" SelectionMode="None" IsItemClickEnabled="True" SelectionChanged="ClickablePathView_SelectionChanged" VerticalContentAlignment="Stretch" CanReorderItems="False" VerticalAlignment="Stretch">
|
1170 | 1235 | <ListView.ItemTemplate>
|
1171 | 1236 | <DataTemplate>
|
1172 | 1237 | <Grid x:Name="ListViewItemContentGrid" Tag="{Binding Path}" Background="Transparent">
|
1173 | 1238 | <StackPanel Spacing="5" Orientation="Horizontal">
|
1174 |
| - <TextBlock Text="{Binding Title}" FontWeight="SemiBold" FontSize="14" Margin="0,0,0,4"/> |
| 1239 | + <TextBlock Text="{Binding Title}" FontWeight="Medium" FontSize="14" Margin="0,0,0,4"/> |
1175 | 1240 | <FontIcon FontSize="8" Glyph=""/>
|
1176 | 1241 | </StackPanel>
|
1177 | 1242 | </Grid>
|
|
1182 | 1247 | <StackPanel Background="Transparent" Orientation="Horizontal" />
|
1183 | 1248 | </ItemsPanelTemplate>
|
1184 | 1249 | </ListView.ItemsPanel>
|
1185 |
| - <ListView.ItemContainerStyle> |
| 1250 | + <!--<ListView.ItemContainerStyle> |
1186 | 1251 | <Style TargetType="ListViewItem">
|
1187 | 1252 | <Setter Property="Padding" Value="5,0,0,0"/>
|
1188 | 1253 | <Setter Property="MinHeight" Value="20"/>
|
1189 | 1254 | <Setter Property="MinWidth" Value="8"/>
|
1190 | 1255 | <Setter Property="BorderThickness" Value="0"/>
|
1191 | 1256 | </Style>
|
1192 |
| - </ListView.ItemContainerStyle> |
| 1257 | + </ListView.ItemContainerStyle>--> |
1193 | 1258 | </ListView>
|
1194 | 1259 | </Grid>
|
1195 | 1260 | </Grid>
|
1196 |
| - <Custom:GridSplitter x:Name="SearchBoxResizer" Foreground="Transparent" Background="Transparent" GripperCursor="SizeWestEast" HorizontalAlignment="Right" Width="Auto" Grid.Column="1" ResizeBehavior="CurrentAndNext" ResizeDirection="Columns"/> |
| 1261 | + <Custom:GridSplitter Style="{StaticResource GridSplitterStyle_Invisible}" Element="{x:Null}" x:Name="SearchBoxResizer" GripperForeground="Transparent" Background="Transparent" GripperCursor="SizeWestEast" HorizontalAlignment="Right" MinWidth="4" Width="4" Grid.Column="1" ResizeBehavior="CurrentAndNext" ResizeDirection="Columns"/> |
1197 | 1262 | <AutoSuggestBox MaxWidth="485" QueryIcon="Find" PlaceholderText="Search" x:Name="SearchReigon" Grid.Column="2" Margin="0,0,4,0" VerticalAlignment="Center">
|
1198 | 1263 | <AutoSuggestBox.Resources>
|
1199 | 1264 | <StaticResource x:Key="TextControlBorderBrush" ResourceKey="CustomInputFieldBorderBrush"/>
|
|
0 commit comments