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"
|
2022-04-20 04:00:28 +08:00
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.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">
|
2022-03-26 04:16:11 +08:00
|
|
|
<muxc:InfoBar Severity="Warning"
|
|
|
|
x:Uid="FileExplorerPreview_PreviewHandlerOutlookIncompatibility"
|
|
|
|
IsOpen="True"
|
|
|
|
IsTabStop="True"
|
|
|
|
IsClosable="False"
|
|
|
|
/>
|
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
|
|
|
|
2022-05-06 20:58:41 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_GCODE" Icon="">
|
2021-12-10 19:53:01 +08:00
|
|
|
<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"
|
|
|
|
/>
|
2022-03-26 04:16:11 +08:00
|
|
|
<muxc:InfoBar Severity="Warning"
|
|
|
|
x:Uid="FileExplorerPreview_ThumbnailsMightNotAppearOnRemoteFolders"
|
|
|
|
IsOpen="True"
|
|
|
|
IsTabStop="True"
|
|
|
|
IsClosable="False"
|
|
|
|
/>
|
2022-05-06 20:58:41 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_SVG" Icon="">
|
2021-08-24 01:48:52 +08:00
|
|
|
<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
|
|
|
|
2022-05-06 20:58:41 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_PDF" Icon="">
|
2021-09-15 00:01:45 +08:00
|
|
|
<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
|
|
|
|
2022-05-06 20:58:41 +08:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_GCODE" Icon="">
|
2021-12-10 19:53:01 +08:00
|
|
|
<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
|
|
|
|
2022-08-24 04:45:27 +08:00
|
|
|
<controls:SettingExpander IsExpanded="False">
|
|
|
|
<controls:SettingExpander.Header>
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_STL" Icon="">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.STLThumbnailIsEnabled}"
|
|
|
|
x:Uid="ToggleSwitch"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</controls:SettingExpander.Header>
|
|
|
|
|
|
|
|
<controls:SettingExpander.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_Color_Thumbnail_STL" Style="{StaticResource ExpanderContentSettingStyle}">
|
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
<controls:ColorPickerButton SelectedColor="{x:Bind Path=ViewModel.STLThumbnailColor, Mode=TwoWay}"
|
|
|
|
IsEnabled="{x:Bind ViewModel.STLThumbnailIsEnabled, Mode=OneWay}"/>
|
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
</controls:Setting>
|
|
|
|
</StackPanel>
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
</controls:SettingExpander>
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsGroup>
|
2022-08-24 04:45:27 +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>
|