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"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2020-03-30 17:02:25 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
2020-03-30 17:02:25 +08:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-11-24 02:57:09 +08:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
mc:Ignorable="d">
|
2020-03-30 17:02:25 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
x:Uid="FileExplorerPreview"
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png">
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
<StackPanel Orientation="Vertical">
|
2021-11-30 21:42:13 +08:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane">
|
2022-11-24 02:57:09 +08:00
|
|
|
<InfoBar
|
|
|
|
x:Uid="FileExplorerPreview_PreviewHandlerOutlookIncompatibility"
|
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="True"
|
|
|
|
IsTabStop="True"
|
|
|
|
Severity="Warning" />
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_SVG"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGRenderIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
|
|
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_MD"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MDRenderIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
2020-03-30 17:02:25 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
2021-08-27 05:43:26 +08:00
|
|
|
|
2022-03-26 01:29:33 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsExpander
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_Monaco"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.MonacoRenderIsEnabled}" />
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
<labs:SettingsCard
|
|
|
|
ContentAlignment="Left"
|
|
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}">
|
|
|
|
<CheckBox
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Wrap_Text"
|
|
|
|
IsChecked="{x:Bind ViewModel.MonacoWrapText, Mode=TwoWay}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<labs:SettingsCard
|
|
|
|
ContentAlignment="Left"
|
|
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}">
|
|
|
|
<controls:CheckBoxWithDescriptionControl
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Try_Format"
|
|
|
|
IsChecked="{x:Bind ViewModel.MonacoPreviewTryFormat, Mode=TwoWay}"
|
|
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
</labs:SettingsExpander>
|
|
|
|
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
2022-01-26 04:02:10 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_PDF"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFRenderIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Preview_GCODE"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODERenderIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
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">
|
2022-11-24 02:57:09 +08:00
|
|
|
<InfoBar
|
|
|
|
x:Uid="FileExplorerPreview_RebootRequired"
|
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="True"
|
|
|
|
IsTabStop="True"
|
|
|
|
Severity="Informational" />
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="FileExplorerPreview_ThumbnailsMightNotAppearOnRemoteFolders"
|
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="True"
|
|
|
|
IsTabStop="True"
|
|
|
|
Severity="Warning" />
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_SVG"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGThumbnailIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_PDF"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFThumbnailIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
|
|
|
<labs:SettingsCard
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_GCODE"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODEThumbnailIsEnabled}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
2022-01-25 19:51:37 +08:00
|
|
|
|
2022-08-24 04:45:27 +08:00
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
<labs:SettingsExpander
|
|
|
|
x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_STL"
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}"
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
<ToggleSwitch
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.STLThumbnailIsEnabled}" />
|
|
|
|
<labs:SettingsExpander.Items>
|
|
|
|
<labs:SettingsCard x:Uid="FileExplorerPreview_Color_Thumbnail_STL">
|
|
|
|
<controls:ColorPickerButton
|
|
|
|
IsEnabled="{x:Bind ViewModel.STLThumbnailIsEnabled, Mode=OneWay}"
|
|
|
|
SelectedColor="{x:Bind Path=ViewModel.STLThumbnailColor, Mode=TwoWay}" />
|
|
|
|
</labs:SettingsCard>
|
|
|
|
</labs:SettingsExpander.Items>
|
|
|
|
</labs:SettingsExpander>
|
|
|
|
<InfoBar
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 21:02:31 +08:00
|
|
|
IsClosable="False"
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
2022-11-24 02:57:09 +08:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
|
|
|
Severity="Informational" />
|
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>
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:PageLink
|
|
|
|
x:Uid="LearnMore_PowerPreview"
|
|
|
|
Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns" />
|
2021-08-24 01:48:52 +08:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2022-02-08 07:36:11 +08:00
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
2022-11-24 02:57:09 +08:00
|
|
|
<controls:PageLink
|
|
|
|
Link="https://blog.aaron-junker.ch"
|
|
|
|
Text="Aaron Junker's work on developer file preview" />
|
|
|
|
<controls:PageLink
|
|
|
|
Link="https://www.pedrolamas.com"
|
|
|
|
Text="Pedro Lamas's work on G-Code and STL" />
|
2022-02-08 07:36:11 +08:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl>
|
2022-01-06 02:28:09 +08:00
|
|
|
</Page>
|