2020-03-30 17:02:25 +08:00
|
|
|
<Page
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerPreviewPage"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2020-10-10 05:45:30 +08:00
|
|
|
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
|
2021-07-05 22:25:23 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2021-08-24 01:48:52 +08:00
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
2020-03-30 17:02:25 +08:00
|
|
|
mc:Ignorable="d"
|
2020-10-29 02:10:08 +08:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2020-03-30 17:02:25 +08:00
|
|
|
|
2020-10-10 05:45:30 +08:00
|
|
|
<Page.Resources>
|
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToVisibilityConverter" TrueValue="Collapsed" FalseValue="Visible"/>
|
|
|
|
</Page.Resources>
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="FileExplorerPreview"
|
2021-07-05 22:25:23 +08:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png"
|
|
|
|
ModuleImageLink="https://aka.ms/PowerToysOverview_FileExplorerAddOns">
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
<StackPanel Orientation="Vertical">
|
2020-10-10 05:45:30 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<muxc:InfoBar Severity="Warning"
|
|
|
|
x:Uid="FileExplorerPreview_RunAsAdminRequired"
|
|
|
|
IsOpen="True"
|
|
|
|
IsClosable="False"
|
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsElevated, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
|
|
|
|
|
|
<muxc:InfoBar Severity="Informational"
|
|
|
|
x:Uid="FileExplorerPreview_AffectsAllUsers"
|
|
|
|
IsOpen="True"
|
|
|
|
IsClosable="False"
|
|
|
|
/>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane_GroupSettings">
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_SVG" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGRenderIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2020-03-30 17:02:25 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_MD" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MDRenderIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingsGroup>
|
2020-07-22 07:27:12 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_IconThumbnail_GroupSettings">
|
2020-10-10 05:45:30 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<muxc:InfoBar Severity="Informational"
|
|
|
|
x:Uid="FileExplorerPreview_RebootRequired"
|
|
|
|
IsOpen="True"
|
|
|
|
IsClosable="False"
|
|
|
|
/>
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_SVG_Thumbnail" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGThumbnailIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
</StackPanel>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
<controls:PageLink x:Uid="LearnMore_PowerPreview" Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns"/>
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2020-03-31 20:32:22 +08:00
|
|
|
</Page>
|