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-11-30 21:42:13 +08:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane">
|
2021-08-24 01:48:52 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_SVG" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGRenderIsEnabled}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</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}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-08-27 05:43:26 +08:00
|
|
|
|
2022-03-26 01:29:33 +08:00
|
|
|
<controls:SettingExpander IsExpanded="False">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_Monaco" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MonacoRenderIsEnabled}"
|
2022-01-26 04:02:10 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2022-03-26 01:29:33 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<CheckBox x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Wrap_Text"
|
|
|
|
IsChecked="{x:Bind ViewModel.MonacoWrapText, Mode=TwoWay}"
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}" />
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
2022-01-26 04:02:10 +08:00
|
|
|
|
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}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-27 05:43:26 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-12-10 19:53:01 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_GCODE" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODERenderIsEnabled}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-12-10 19:53:01 +08:00
|
|
|
</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}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-24 01:48:52 +08:00
|
|
|
</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}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-09-15 00:01:45 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2021-12-10 19:53:01 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_GCODE_Thumbnail" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODEThumbnailIsEnabled}"
|
2021-12-20 20:15:08 +08:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-12-10 19:53:01 +08:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
2022-01-25 19:51:37 +08:00
|
|
|
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_STL_Thumbnail" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.STLThumbnailIsEnabled}"
|
|
|
|
x:Uid="ToggleSwitch"/>
|
|
|
|
</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>
|
2022-02-08 07:36:11 +08:00
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
<controls:PageLink Text="Aaron Junker's work on developer file preview" Link="https://blog.aaron-junker.ch" />
|
|
|
|
<controls:PageLink Text="Pedro Lamas's work on G-Code and STL" Link="https://www.pedrolamas.com" />
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2022-01-06 02:28:09 +08:00
|
|
|
</Page>
|