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"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-04-19 22:00:28 +02:00
|
|
|
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
2021-07-05 16:25:23 +02:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2021-08-23 19:48:52 +02:00
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
2020-03-30 02:02:25 -07:00
|
|
|
mc:Ignorable="d"
|
2020-10-28 11:10:08 -07:00
|
|
|
AutomationProperties.LandmarkType="Main">
|
2020-03-30 02:02:25 -07:00
|
|
|
|
2020-10-09 14:45:30 -07:00
|
|
|
<Page.Resources>
|
|
|
|
|
<converters:BoolToObjectConverter x:Key="BoolToVisibilityConverter" TrueValue="Collapsed" FalseValue="Visible"/>
|
|
|
|
|
</Page.Resources>
|
|
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:SettingsPageControl x:Uid="FileExplorerPreview"
|
2021-08-25 09:22:12 +02:00
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png">
|
2021-07-05 16:25:23 +02:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
2020-10-09 14:45:30 -07:00
|
|
|
|
2021-11-30 14:42:13 +01:00
|
|
|
<controls:SettingsGroup x:Uid="FileExplorerPreview_PreviewPane">
|
2022-03-25 20:16:11 +00:00
|
|
|
<muxc:InfoBar Severity="Warning"
|
|
|
|
|
x:Uid="FileExplorerPreview_PreviewHandlerOutlookIncompatibility"
|
|
|
|
|
IsOpen="True"
|
|
|
|
|
IsTabStop="True"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
/>
|
2021-08-23 19:48:52 +02: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 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2020-03-30 02:02:25 -07:00
|
|
|
|
2021-08-23 19:48:52 +02: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 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-08-26 23:43:26 +02:00
|
|
|
|
2022-03-25 18:29:33 +01: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-25 21:02:10 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2022-03-25 18:29:33 +01: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}" />
|
2022-08-24 13:08:10 +02:00
|
|
|
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
|
|
|
|
|
<controls:CheckBoxWithDescriptionControl x:Uid="FileExplorerPreview_ToggleSwitch_Monaco_Try_Format"
|
|
|
|
|
IsChecked="{x:Bind ViewModel.MonacoPreviewTryFormat, Mode=TwoWay}"
|
|
|
|
|
Margin="{StaticResource ExpanderSettingMargin}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.MonacoRenderIsEnabled, Mode=OneWay}"/>
|
2022-03-25 18:29:33 +01:00
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingExpander.Content>
|
|
|
|
|
</controls:SettingExpander>
|
2022-01-25 21:02:10 +01:00
|
|
|
|
2021-08-26 23:43:26 +02: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 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-26 23:43:26 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-12-10 11:53:01 +00:00
|
|
|
|
2022-05-06 14:58:41 +02:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Preview_GCODE" Icon="">
|
2021-12-10 11:53:01 +00:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODERenderIsEnabled}"
|
2021-12-20 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-12-10 11:53:01 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
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">
|
|
|
|
|
<muxc:InfoBar Severity="Informational"
|
|
|
|
|
x:Uid="FileExplorerPreview_RebootRequired"
|
|
|
|
|
IsOpen="True"
|
2021-10-01 15:11:09 +02:00
|
|
|
IsTabStop="True"
|
2021-08-23 19:48:52 +02:00
|
|
|
IsClosable="False"
|
|
|
|
|
/>
|
2022-03-25 20:16:11 +00:00
|
|
|
<muxc:InfoBar Severity="Warning"
|
|
|
|
|
x:Uid="FileExplorerPreview_ThumbnailsMightNotAppearOnRemoteFolders"
|
|
|
|
|
IsOpen="True"
|
|
|
|
|
IsTabStop="True"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
/>
|
2022-05-06 14:58:41 +02:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_SVG" Icon="">
|
2021-08-23 19:48:52 +02:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.SVGThumbnailIsEnabled}"
|
2021-12-20 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-08-23 19:48:52 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-09-14 18:01:45 +02:00
|
|
|
|
2022-05-06 14:58:41 +02:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_PDF" Icon="">
|
2021-09-14 18:01:45 +02:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.PDFThumbnailIsEnabled}"
|
2021-12-20 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-09-14 18:01:45 +02:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2021-12-10 11:53:01 +00:00
|
|
|
|
2022-05-06 14:58:41 +02:00
|
|
|
<controls:Setting x:Uid="FileExplorerPreview_ToggleSwitch_Thumbnail_GCODE" Icon="">
|
2021-12-10 11:53:01 +00:00
|
|
|
<controls:Setting.ActionContent>
|
|
|
|
|
<ToggleSwitch IsOn="{x:Bind Mode=TwoWay, Path=ViewModel.GCODEThumbnailIsEnabled}"
|
2021-12-20 13:15:08 +01:00
|
|
|
x:Uid="ToggleSwitch"/>
|
2021-12-10 11:53:01 +00:00
|
|
|
</controls:Setting.ActionContent>
|
|
|
|
|
</controls:Setting>
|
2022-01-25 11:51:37 +00:00
|
|
|
|
2022-08-23 21:45:27 +01: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-23 19:48:52 +02:00
|
|
|
</controls:SettingsGroup>
|
2022-08-23 21:45:27 +01:00
|
|
|
|
2021-08-23 19:48:52 +02:00
|
|
|
</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>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_PowerPreview" Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns"/>
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
2022-02-07 15: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 16:25:23 +02:00
|
|
|
</controls:SettingsPageControl>
|
2022-01-05 21:28:09 +03:00
|
|
|
</Page>
|