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"
|
2020-03-30 17:02:25 +08:00
|
|
|
mc:Ignorable="d"
|
2020-10-29 02:10:08 +08:00
|
|
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
|
|
|
|
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-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl x:Uid="About_FileExplorerPreview"
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerPreview.png"
|
|
|
|
ModuleImageLink="https://aka.ms/PowerToysOverview_FileExplorerAddOns">
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
2020-10-10 05:45:30 +08:00
|
|
|
<TextBlock x:Uid="FileExplorerPreview_RunAsAdminRequired"
|
|
|
|
Foreground="{ThemeResource SystemControlErrorTextForegroundBrush}"
|
|
|
|
Visibility="{Binding Mode=OneWay, Path=IsElevated, Converter={StaticResource BoolToVisibilityConverter}}"
|
2020-10-23 05:37:10 +08:00
|
|
|
Margin="{StaticResource SmallBottomMargin}"
|
|
|
|
TextWrapping="Wrap"/>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="FileExplorerPreview_AffectsAllUsers"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsElevated, Converter={StaticResource ModuleEnabledToOpacityConverter}}"
|
2020-10-10 05:45:30 +08:00
|
|
|
Margin="{StaticResource SmallBottomMargin}"
|
2020-10-23 05:37:10 +08:00
|
|
|
TextWrapping="Wrap"/>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
2020-09-12 08:10:51 +08:00
|
|
|
<TextBlock x:Uid="FileExplorerPreview_PreviewPane_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyleAsHeader}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsElevated, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
|
2020-03-30 17:02:25 +08:00
|
|
|
|
2020-05-27 23:06:17 +08:00
|
|
|
<ToggleSwitch x:Uid="FileExplorerPreview_ToggleSwitch_Preview_SVG"
|
2020-07-22 07:27:12 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-10-10 05:45:30 +08:00
|
|
|
IsOn="{Binding Mode=TwoWay, Path=SVGRenderIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
2020-07-22 07:27:12 +08:00
|
|
|
|
2020-05-27 23:06:17 +08:00
|
|
|
<ToggleSwitch x:Uid="FileExplorerPreview_ToggleSwitch_Preview_MD"
|
2020-04-18 06:25:08 +08:00
|
|
|
Margin="{StaticResource SmallTopMargin}"
|
2020-10-10 05:45:30 +08:00
|
|
|
IsOn="{Binding Mode=TwoWay, Path=MDRenderIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
|
|
|
|
2020-09-12 08:10:51 +08:00
|
|
|
<TextBlock x:Uid="FileExplorerPreview_IconThumbnail_GroupSettings"
|
|
|
|
Style="{StaticResource SettingsGroupTitleStyle}"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsElevated, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
|
|
|
<TextBlock x:Uid="FileExplorerPreview_RebootRequired"
|
2021-07-02 18:24:49 +08:00
|
|
|
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsElevated, Converter={StaticResource ModuleEnabledToOpacityConverter}}"
|
2020-10-10 05:45:30 +08:00
|
|
|
Margin="{StaticResource SmallTopBottomMargin}"
|
2020-10-23 05:37:10 +08:00
|
|
|
TextWrapping="Wrap"/>
|
2020-10-10 05:45:30 +08:00
|
|
|
|
2020-09-12 08:10:51 +08:00
|
|
|
<ToggleSwitch x:Uid="FileExplorerPreview_ToggleSwitch_SVG_Thumbnail"
|
2020-10-10 05:45:30 +08:00
|
|
|
IsOn="{Binding Mode=TwoWay, Path=SVGThumbnailIsEnabled}"
|
|
|
|
IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
|
2020-03-30 17:02:25 +08:00
|
|
|
</StackPanel>
|
2021-07-05 22:25:23 +08:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2020-03-31 20:32:22 +08:00
|
|
|
|
2021-07-05 22:25:23 +08:00
|
|
|
<controls:SettingsPageControl.ModuleLinks>
|
|
|
|
<controls:SidePanelLink x:Uid="Learn_More" Link="https://aka.ms/PowerToysOverview_FileExplorerAddOns"/>
|
|
|
|
<controls:SidePanelLink x:Uid="Give_Feedback" Link="https://aka.ms/powerToysGiveFeedback"/>
|
|
|
|
</controls:SettingsPageControl.ModuleLinks>
|
|
|
|
</controls:SettingsPageControl>
|
2020-03-31 20:32:22 +08:00
|
|
|
</Page>
|