2020-03-30 02:02:25 -07: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-23 19:57:09 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2020-03-30 02:02:25 -07:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
2020-03-30 02:02:25 -07:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2020-03-30 02:02:25 -07:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
|
x:Uid="FileExplorerPreview"
|
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png">
|
2021-07-05 16:25:23 +02:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-01-11 17:45:06 +01:00
|
|
|
<StackPanel Orientation="Vertical" ChildrenTransitions="{StaticResource SettingsCardsAnimations}">
|
2021-11-30 14:42:13 +01:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane">
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGRenderEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01: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 02:02:25 -07:00
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMDRenderEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2021-08-26 23:43:26 +02:00
|
|
|
|
2022-03-25 18:29:33 +01:00
|
|
|
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsMonacoRenderEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2022-01-25 21:02:10 +01:00
|
|
|
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFRenderEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODERenderEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:SettingsGroup>
|
2020-07-21 16:27:12 -07:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_IconThumbnail_GroupSettings">
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSVGThumbnailEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsPDFThumbnailEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsGCODEThumbnailEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2022-01-25 11:51:37 +00:00
|
|
|
|
2022-08-23 21:45:27 +01:00
|
|
|
|
2022-11-23 19:57:09 +01: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 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsSTLThumbnailEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
</StackPanel>
|
2021-07-05 16:25:23 +02:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2020-03-31 14:32:22 +02:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:PageLink
|
|
|
|
|
x:Uid="LearnMore_PowerPreview"
|
|
|
|
|
Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2022-02-07 15:36:11 -08:00
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
2022-11-23 19:57:09 +01: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-07 15:36:11 -08:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
2021-07-05 16:25:23 +02:00
|
|
|
</controls:SettingsPageControl>
|
2022-01-05 21:28:09 +03:00
|
|
|
</Page>
|