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"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-08-25 05:25:52 -05:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-12 18:01:40 +01:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2022-08-25 05:25:52 -05:00
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="TextExtractor" ModuleImageSource="ms-appx:///Assets/Settings/Modules/PowerOCR.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel
|
|
|
|
|
ChildrenTransitions="{StaticResource SettingsCardsAnimations}"
|
|
|
|
|
Orientation="Vertical"
|
|
|
|
|
Spacing="2">
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="TextExtractor_EnableToggleControl_HeaderText"
|
2023-07-20 00:12:46 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/FluentIcons/FluentIconsPowerOcr.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}">
|
2023-09-14 18:41:31 +02:00
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2023-11-20 16:49:24 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="TextExtractor_UseSnippingToolWarning"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsWin11OrGreater, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsWin11OrGreater, Mode=OneWay}"
|
2023-11-20 16:49:24 +01:00
|
|
|
Severity="Informational" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="GPO_IsSettingForced"
|
2022-10-26 14:02:31 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational" />
|
|
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="TextExtractor_SupportedLanguages"
|
|
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsEnabled, Mode=OneWay}"
|
|
|
|
|
IsTabStop="{x:Bind ViewModel.IsEnabled, Mode=OneWay}"
|
2022-11-23 19:57:09 +01:00
|
|
|
Severity="Informational">
|
2022-10-16 15:28:34 +03:00
|
|
|
<InfoBar.ActionButton>
|
2023-09-14 18:41:31 +02: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>
|
|
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="Shortcut" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="Activation_Shortcut" HeaderIcon="{ui:FontIcon Glyph=}">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind Path=ViewModel.ActivationShortcut, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="TextExtractor_Languages">
|
2022-12-28 19:54:59 +01:00
|
|
|
<ComboBox
|
|
|
|
|
x:Name="TextExtractor_ComboBox"
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
2023-09-14 18:41:31 +02:00
|
|
|
DropDownOpened="TextExtractor_ComboBox_DropDownOpened"
|
2022-12-28 19:54:59 +01:00
|
|
|
ItemsSource="{x:Bind Path=ViewModel.AvailableLanguages, Mode=OneWay}"
|
|
|
|
|
Loaded="TextExtractor_ComboBox_Loaded"
|
2023-09-14 18:41:31 +02:00
|
|
|
SelectedIndex="{x:Bind Path=ViewModel.LanguageIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
SelectedValue="{Binding SelectedColorRepresentationValue, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2022-08-25 05:25:52 -05:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2022-08-25 05:25:52 -05:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_TextExtractor" Link="https://aka.ms/PowerToysOverview_TextExtractor" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
<controls:PageLink Link="https://github.com/TheJoeFin/Text-Grab" Text="Based upon Joseph Finney's Text Grab" />
|
|
|
|
|
</controls:SettingsPageControl.SecondaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2022-08-25 05:25:52 -05:00
|
|
|
</Page>
|