2022-08-25 05:25:52 -05:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.PowerOcrPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
|
2022-08-25 05:25:52 -05:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI.UI"
|
2022-08-25 05:25:52 -05:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:SettingsPageControl
|
|
|
|
|
x:Uid="TextExtractor"
|
|
|
|
|
ModuleImageSource="ms-appx:///Assets/Modules/PowerOCR.png">
|
2022-08-25 05:25:52 -05:00
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2022-11-23 19:57:09 +01:00
|
|
|
<StackPanel
|
|
|
|
|
Orientation="Vertical"
|
|
|
|
|
Spacing="2">
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="TextExtractor_EnableToggleControl_HeaderText"
|
|
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/FluentIcons/FluentIconsPowerOcr.png}"
|
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured, Converter={StaticResource BoolNegationConverter}}">
|
|
|
|
|
<ToggleSwitch
|
|
|
|
|
x:Uid="ToggleSwitch"
|
|
|
|
|
IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabledGpoConfigured}"
|
|
|
|
|
Severity="Informational" />
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="TextExtractor_SupportedLanguages"
|
|
|
|
|
IsClosable="False"
|
|
|
|
|
IsOpen="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
|
|
|
|
IsTabStop="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
|
|
|
|
|
Severity="Informational">
|
2022-10-16 15:28:34 +03:00
|
|
|
<InfoBar.ActionButton>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="TextExtractor_SupportedLanguages_Link"
|
|
|
|
|
NavigateUri="https://aka.ms/PowerToysOverview_TextExtractor#supported-languages" />
|
2022-10-16 15:28:34 +03:00
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:SettingsGroup
|
|
|
|
|
x:Uid="Shortcut"
|
|
|
|
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}">
|
|
|
|
|
<labs:SettingsCard
|
|
|
|
|
x:Uid="Activation_Shortcut"
|
|
|
|
|
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
|
|
|
|
Glyph=}">
|
|
|
|
|
<controls:ShortcutControl
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
|
|
|
|
HotkeySettings="{x:Bind Path=ViewModel.ActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</labs:SettingsCard>
|
2022-08-25 05:25:52 -05:00
|
|
|
</controls:SettingsGroup>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
|
|
|
|
|
|
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:PageLink
|
|
|
|
|
x:Uid="LearnMore_TextExtractor"
|
|
|
|
|
Link="https://aka.ms/PowerToysOverview_TextExtractor" />
|
2022-08-25 05:25:52 -05:00
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
2022-11-23 19:57:09 +01:00
|
|
|
<controls:PageLink
|
|
|
|
|
Link="https://github.com/TheJoeFin/Text-Grab"
|
|
|
|
|
Text="Based upon Joseph Finney's Text Grab" />
|
2022-08-25 05:25:52 -05:00
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
|
|
|
|
</Page>
|