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-08-25 15:22:12 +08:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png">
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
<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"
|
2021-10-01 21:11:09 +08:00
|
|
|
IsTabStop="True"
|
2021-08-24 01:48:52 +08:00
|
|
|
IsClosable="False"
|
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsElevated, Converter={StaticResource BoolToVisibilityConverter}}" />
|
|
|
|
|
|
|
|
<muxc:InfoBar Severity="Informational"
|
|
|
|
x:Uid="FileExplorerPreview_AffectsAllUsers"
|
|
|
|
IsOpen="True"
|
2021-10-01 21:11:09 +08:00
|
|
|
IsTabStop="True"
|
2021-08-24 01:48:52 +08:00
|
|
|
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>
|
2021-08-27 05:43:26 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_PDF" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFRenderIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-08-24 01:48:52 +08:00
|
|
|
</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">
|
|
|
|
<muxc:InfoBar Severity="Informational"
|
|
|
|
x:Uid="FileExplorerPreview_RebootRequired"
|
|
|
|
IsOpen="True"
|
2021-10-01 21:11:09 +08:00
|
|
|
IsTabStop="True"
|
2021-08-24 01:48:52 +08:00
|
|
|
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>
|
2021-09-15 00:01:45 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_PDF_Thumbnail" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFThumbnailIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2021-08-27 05:43:26 +08:00
|
|
|
|
2021-08-24 01:48:52 +08:00
|
|
|
</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>
|