2021-06-29 13:06:12 +03:00
|
|
|
<Page
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.VideoConferencePage"
|
|
|
|
|
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-11-23 19:57:09 +01: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"
|
|
|
|
|
xmlns:tkconverters="using:CommunityToolkit.WinUI.Converters"
|
2023-09-14 18:41:31 +02:00
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
2021-08-23 19:48:52 +02:00
|
|
|
mc:Ignorable="d">
|
2021-06-29 13:06:12 +03:00
|
|
|
|
2021-11-18 12:15:50 +01:00
|
|
|
<Page.Resources>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkconverters:StringVisibilityConverter
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Name="EmptyToCollapsedConverter"
|
|
|
|
|
EmptyValue="Collapsed"
|
|
|
|
|
NotEmptyValue="Visible" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkconverters:StringVisibilityConverter
|
2023-03-21 13:02:28 +01:00
|
|
|
x:Name="EmptyToBoolConverter"
|
|
|
|
|
EmptyValue="False"
|
|
|
|
|
NotEmptyValue="True" />
|
2021-11-18 12:15:50 +01:00
|
|
|
</Page.Resources>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl x:Uid="VideoConference" ModuleImageSource="ms-appx:///Assets/Settings/Modules/VideoConference.png">
|
|
|
|
|
<controls:SettingsPageControl.ModuleContent>
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel ChildrenTransitions="{StaticResource SettingsCardsAnimations}" Orientation="Vertical">
|
2022-10-27 17:03:30 +03:00
|
|
|
<InfoBar
|
|
|
|
|
x:Uid="VideoConference_DeprecationWarning"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsClosable="False"
|
2022-10-27 17:03:30 +03:00
|
|
|
IsOpen="True"
|
|
|
|
|
IsTabStop="True"
|
2023-03-21 13:02:28 +01:00
|
|
|
Severity="Informational">
|
2022-10-27 17:03:30 +03:00
|
|
|
<InfoBar.ActionButton>
|
2022-11-23 19:57:09 +01:00
|
|
|
<HyperlinkButton
|
|
|
|
|
x:Uid="VideoConference_DeprecationWarningButton"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
NavigateUri="https://github.com/microsoft/PowerToys/issues/21473"
|
|
|
|
|
Style="{StaticResource TextButtonStyle}" />
|
2022-10-27 17:03:30 +03:00
|
|
|
</InfoBar.ActionButton>
|
|
|
|
|
</InfoBar>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="VideoConference_Enable"
|
2024-01-26 17:12:33 +01:00
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/VideoConferenceMute.png}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsElevated, Mode=OneWay}">
|
|
|
|
|
<ToggleSwitch x:Uid="ToggleSwitch" IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2022-09-20 18:59:18 +02:00
|
|
|
<InfoBar
|
2022-02-01 14:48:48 +01:00
|
|
|
x:Uid="VideoConference_RunAsAdminRequired"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsClosable="False"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsOpen="{x:Bind ViewModel.IsElevated, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"
|
2022-02-01 14:48:48 +01:00
|
|
|
IsTabStop="True"
|
2023-09-14 18:41:31 +02:00
|
|
|
Severity="Informational" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<InfoBar
|
2024-01-25 14:59:00 +01:00
|
|
|
x:Uid="GPO_SettingIsManaged"
|
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" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="VideoConference_Shortcuts" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_CameraAndMicrophoneMuteHotkeyControl_Header">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind ViewModel.CameraAndMicrophoneMuteHotkey, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_MicrophoneMuteHotkeyControl_Header">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind ViewModel.MicrophoneMuteHotkey, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2022-11-23 19:57:09 +01:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_MicrophonePushToTalkHotkeyControl_Header">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind ViewModel.MicrophonePushToTalkHotkey, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
2023-03-30 10:55:09 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_CameraMuteHotkeyControl_Header">
|
|
|
|
|
<controls:ShortcutControl MinWidth="{StaticResource SettingActionControlMinWidth}" HotkeySettings="{x:Bind ViewModel.CameraMuteHotkey, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="VideoConference_Microphone" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_SelectedMicrophone" HeaderIcon="{ui:FontIcon Glyph=}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
2024-01-03 16:41:26 +01:00
|
|
|
ItemsSource="{x:Bind ViewModel.MicrophoneNames, Mode=OneTime}"
|
|
|
|
|
SelectedIndex="{x:Bind ViewModel.SelectedMicrophoneIndex, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_PushToReverse">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ToggleSwitch x:Uid="PushToReverseSwitch" IsOn="{x:Bind ViewModel.PushToReverseEnabled, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2023-09-14 18:41:31 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="VideoConference_Camera" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsExpander
|
2022-11-23 19:57:09 +01:00
|
|
|
x:Uid="VideoConference_SelectedCamera"
|
2023-09-14 18:41:31 +02:00
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
2022-11-23 19:57:09 +01:00
|
|
|
IsExpanded="True">
|
|
|
|
|
<ComboBox
|
|
|
|
|
MinWidth="{StaticResource SettingActionControlMinWidth}"
|
2024-01-03 16:41:26 +01:00
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}"
|
|
|
|
|
ItemsSource="{x:Bind ViewModel.CameraNames, Mode=OneTime}"
|
|
|
|
|
SelectedIndex="{x:Bind ViewModel.SelectedCameraIndex, Mode=TwoWay}" />
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_CameraOverlayImagePathHeader">
|
2023-09-14 18:41:31 +02:00
|
|
|
<StackPanel Orientation="Horizontal" Spacing="8">
|
2024-01-03 16:41:26 +01:00
|
|
|
<Button x:Uid="VideoConference_CameraOverlayImageBrowse" Command="{x:Bind ViewModel.SelectOverlayImage, Mode=OneWay}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
<Button
|
|
|
|
|
x:Uid="VideoConference_CameraOverlayImageClear"
|
2024-01-03 16:41:26 +01:00
|
|
|
Command="{x:Bind ViewModel.ClearOverlayImage, Mode=OneWay}"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.CameraImageOverlayPath, Mode=OneWay, Converter={StaticResource EmptyToBoolConverter}}" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard Visibility="{x:Bind ViewModel.CameraImageOverlayPath, Mode=OneWay, Converter={StaticResource EmptyToCollapsedConverter}}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Border
|
|
|
|
|
MaxHeight="100"
|
|
|
|
|
HorizontalAlignment="Right"
|
2023-03-21 13:02:28 +01:00
|
|
|
CornerRadius="4">
|
2022-11-23 19:57:09 +01:00
|
|
|
<Image
|
|
|
|
|
x:Uid="VideoConference_CameraOverlayImageAlt"
|
|
|
|
|
Source="{Binding Mode=OneWay, Path=CameraImageOverlayPath}"
|
2024-01-03 16:41:26 +01:00
|
|
|
ToolTipService.ToolTip="{x:Bind ViewModel.CameraImageOverlayPath, Mode=OneWay}" />
|
2021-08-23 19:48:52 +02:00
|
|
|
</Border>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-08-23 19:48:52 +02:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="VideoConference_Toolbar" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsExpander x:Uid="VideoConference_ToolbarPosition" IsExpanded="True">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ToolbarPositionIndex, Mode=TwoWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_TopLeftCorner" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_TopCenter" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_TopRightCorner" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_BottomLeftCorner" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_BottomCenter" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarPosition_BottomRightCorner" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
<tkcontrols:SettingsExpander.Items>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_ToolbarMonitor">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ToolbarMonitorIndex, Mode=TwoWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_Main" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_All" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_ToolbarHide">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.ToolbarHideIndex, Mode=TwoWay}">
|
2022-11-23 19:57:09 +01:00
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarHideNever" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarHideUnmuted" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarHideMuted" />
|
2023-10-06 14:48:36 +07:00
|
|
|
<ComboBoxItem x:Uid="VideoConference_ToolbarHideTimeout" />
|
2022-11-23 19:57:09 +01:00
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</tkcontrols:SettingsExpander.Items>
|
|
|
|
|
</tkcontrols:SettingsExpander>
|
|
|
|
|
</controls:SettingsGroup>
|
2023-10-06 14:48:36 +07:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsGroup x:Uid="VideoConference_Behavior" IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard x:Uid="VideoConference_StartupAction">
|
2024-01-03 16:41:26 +01:00
|
|
|
<ComboBox MinWidth="{StaticResource SettingActionControlMinWidth}" SelectedIndex="{x:Bind ViewModel.StartupActionIndex, Mode=TwoWay}">
|
2023-10-06 14:48:36 +07:00
|
|
|
<ComboBoxItem x:Uid="VideoConference_StartupActionNothing" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_StartupActionUnmute" />
|
|
|
|
|
<ComboBoxItem x:Uid="VideoConference_StartupActionMute" />
|
|
|
|
|
</ComboBox>
|
2024-01-12 18:01:40 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:SettingsGroup>
|
2021-06-29 13:06:12 +03:00
|
|
|
</StackPanel>
|
2024-01-12 18:01:40 +01:00
|
|
|
</controls:SettingsPageControl.ModuleContent>
|
2021-06-29 13:06:12 +03:00
|
|
|
|
2024-01-12 18:01:40 +01:00
|
|
|
<controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
<controls:PageLink x:Uid="LearnMore_VCM" Link="https://aka.ms/PowerToysOverview_VideoConference" />
|
|
|
|
|
</controls:SettingsPageControl.PrimaryLinks>
|
|
|
|
|
</controls:SettingsPageControl>
|
2021-08-24 18:51:09 +02:00
|
|
|
</Page>
|