|
2 | 2 | x:Class="Files.Views.LayoutModes.GenericFileBrowser"
|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 |
| - xmlns:Core="using:Microsoft.Xaml.Interactions.Core" |
6 |
| - xmlns:Interactivity="using:Microsoft.Xaml.Interactivity" |
7 |
| - xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Behaviors" |
8 | 5 | xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
9 | 6 | xmlns:controlsprimitives="using:Microsoft.Toolkit.Uwp.UI.Controls.Primitives"
|
10 | 7 | xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
|
18 | 15 | xmlns:i="using:Microsoft.Xaml.Interactivity"
|
19 | 16 | xmlns:icore="using:Microsoft.Xaml.Interactions.Core"
|
20 | 17 | xmlns:xh="using:Files.Helpers.XamlHelpers"
|
21 |
| - xmlns:usercontrols="using:Files.UserControls" |
22 | 18 | NavigationCacheMode="Enabled"
|
23 | 19 | mc:Ignorable="d">
|
24 | 20 | <i:Interaction.Behaviors>
|
|
44 | 40 | x:Name="BaseLayoutContextFlyout"
|
45 | 41 | AreOpenCloseAnimationsEnabled="{x:Bind AppSettings.AreRightClickContentMenuAnimationsEnabled, Mode=OneWay}"
|
46 | 42 | Opening="RightClickContextMenu_Opening">
|
47 |
| - <i:Interaction.Behaviors> |
48 |
| - <icore:EventTriggerBehavior EventName="Opening"> |
49 |
| - <icore:InvokeCommandAction Command="{x:Bind CommandsViewModel.GridViewSizeIncreaseCommand}"/> |
50 |
| - </icore:EventTriggerBehavior> |
51 |
| - </i:Interaction.Behaviors> |
52 | 43 | <MenuFlyoutSubItem
|
53 | 44 | x:Name="SortByEmptySpace"
|
54 | 45 | x:Uid="BaseLayoutContextFlyoutSortBy"
|
|
823 | 814 | </i:Interaction.Behaviors>
|
824 | 815 | </KeyboardAccelerator>
|
825 | 816 | </Grid.KeyboardAccelerators>
|
826 |
| - <Interactivity:Interaction.Behaviors> |
827 |
| - <Core:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="True"> |
828 |
| - <Core:ChangePropertyAction |
| 817 | + <i:Interaction.Behaviors> |
| 818 | + <icore:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="True"> |
| 819 | + <icore:ChangePropertyAction |
829 | 820 | PropertyName="ContextFlyout"
|
830 | 821 | TargetObject="{Binding ElementName=RootGrid}"
|
831 | 822 | Value="{StaticResource BaseLayoutRecycleBinContextFlyout}" />
|
832 |
| - </Core:DataTriggerBehavior> |
833 |
| - <Core:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="False"> |
834 |
| - <Core:ChangePropertyAction |
| 823 | + </icore:DataTriggerBehavior> |
| 824 | + <icore:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="False"> |
| 825 | + <icore:ChangePropertyAction |
835 | 826 | PropertyName="ContextFlyout"
|
836 | 827 | TargetObject="{Binding ElementName=RootGrid}"
|
837 | 828 | Value="{StaticResource BaseLayoutContextFlyout}" />
|
838 |
| - </Core:DataTriggerBehavior> |
839 |
| - <Core:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeSearchResults, Mode=OneWay}" Value="True"> |
840 |
| - <Core:ChangePropertyAction |
| 829 | + </icore:DataTriggerBehavior> |
| 830 | + <icore:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeSearchResults, Mode=OneWay}" Value="True"> |
| 831 | + <icore:ChangePropertyAction |
841 | 832 | PropertyName="ContextFlyout"
|
842 | 833 | TargetObject="{Binding ElementName=RootGrid}"
|
843 | 834 | Value="{x:Null}" />
|
844 |
| - </Core:DataTriggerBehavior> |
845 |
| - </Interactivity:Interaction.Behaviors> |
| 835 | + </icore:DataTriggerBehavior> |
| 836 | + </i:Interaction.Behaviors> |
846 | 837 | <muxc:ProgressBar
|
847 | 838 | x:Name="progBar"
|
848 | 839 | VerticalAlignment="Top"
|
|
954 | 945 | <Setter Property="Background" Value="{ThemeResource DataGridColumnHeaderBackgroundColor}" />
|
955 | 946 | </Style>
|
956 | 947 | </controls:DataGrid.ColumnHeaderStyle>
|
957 |
| - <Interactivity:Interaction.Behaviors> |
| 948 | + <i:Interaction.Behaviors> |
958 | 949 | <icore:EventTriggerBehavior EventName="Drop">
|
959 | 950 | <icore:InvokeCommandAction Command="{x:Bind CommandsViewModel.DropCommand}"/>
|
960 | 951 | </icore:EventTriggerBehavior>
|
|
964 | 955 | <icore:EventTriggerBehavior EventName="PointerPressed">
|
965 | 956 | <icore:InvokeCommandAction Command="{x:Bind CommandsViewModel.ItemPointerPressedCommand}"/>
|
966 | 957 | </icore:EventTriggerBehavior>
|
967 |
| - <Core:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="True"> |
968 |
| - <Core:ChangePropertyAction |
| 958 | + <icore:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="True"> |
| 959 | + <icore:ChangePropertyAction |
969 | 960 | PropertyName="RowStyle"
|
970 | 961 | TargetObject="{Binding ElementName=AllView}"
|
971 | 962 | Value="{StaticResource DataGridRowRecycleBinContextFlyout}" />
|
972 |
| - <Core:ChangePropertyAction |
| 963 | + <icore:ChangePropertyAction |
973 | 964 | PropertyName="DisplayIndex"
|
974 | 965 | TargetObject="{Binding ElementName=dateColumn}"
|
975 | 966 | Value="7" />
|
976 |
| - </Core:DataTriggerBehavior> |
977 |
| - <Core:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="False"> |
978 |
| - <Core:ChangePropertyAction |
| 967 | + </icore:DataTriggerBehavior> |
| 968 | + <icore:DataTriggerBehavior Binding="{x:Bind InstanceViewModel.IsPageTypeRecycleBin, Mode=OneWay}" Value="False"> |
| 969 | + <icore:ChangePropertyAction |
979 | 970 | PropertyName="RowStyle"
|
980 | 971 | TargetObject="{Binding ElementName=AllView}"
|
981 | 972 | Value="{StaticResource DataGridRowStandardContextFlyout}" />
|
982 |
| - <Core:ChangePropertyAction |
| 973 | + <icore:ChangePropertyAction |
983 | 974 | PropertyName="DisplayIndex"
|
984 | 975 | TargetObject="{Binding ElementName=dateColumn}"
|
985 | 976 | Value="5" />
|
986 |
| - </Core:DataTriggerBehavior> |
987 |
| - </Interactivity:Interaction.Behaviors> |
| 977 | + </icore:DataTriggerBehavior> |
| 978 | + </i:Interaction.Behaviors> |
988 | 979 | <controls:DataGrid.Columns>
|
989 | 980 | <controls:DataGridTemplateColumn
|
990 | 981 | x:Name="iconColumn"
|
|
0 commit comments