VCM and cleanup

This commit is contained in:
Niels Laute
2021-08-12 15:56:22 +02:00
parent e24e069e2b
commit 468c0a71e8
9 changed files with 141 additions and 216 deletions

View File

@@ -18,7 +18,7 @@
</Style> </Style>
</UserControl.Resources> </UserControl.Resources>
<Grid RowSpacing="{StaticResource DefaultRowSpacing}" Padding="48,0,0,0"> <Grid RowSpacing="24" Padding="48,0,0,0">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
@@ -34,7 +34,7 @@
VerticalAlignment="Stretch"/> VerticalAlignment="Stretch"/>
<ScrollViewer Grid.Row="1"> <ScrollViewer Grid.Row="1">
<Grid RowSpacing="{StaticResource DefaultRowSpacing}" Padding="0,0,48,48"> <Grid RowSpacing="24" Padding="0,0,48,48">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/>

View File

@@ -26,12 +26,12 @@
<VisualStateGroup x:Name="LayoutVisualStates"> <VisualStateGroup x:Name="LayoutVisualStates">
<VisualState x:Name="WideLayout"> <VisualState x:Name="WideLayout">
<VisualState.StateTriggers> <VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" /> <AdaptiveTrigger MinWindowWidth="720" />
</VisualState.StateTriggers> </VisualState.StateTriggers>
</VisualState> </VisualState>
<VisualState x:Name="SmallLayout"> <VisualState x:Name="SmallLayout">
<VisualState.StateTriggers> <VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" /> <AdaptiveTrigger MinWindowWidth="600" />
<AdaptiveTrigger MinWindowWidth="0" /> <AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers> </VisualState.StateTriggers>
<VisualState.Setters> <VisualState.Setters>

View File

@@ -143,7 +143,7 @@ Disabling this module or closing PowerToys will unmute the microphone and camera
<data name="VideoConference_SelectedMicrophone.Header" xml:space="preserve"> <data name="VideoConference_SelectedMicrophone.Header" xml:space="preserve">
<value>Selected microphone</value> <value>Selected microphone</value>
</data> </data>
<data name="VideoConference_CameraOverlayImagePathHeader.Text" xml:space="preserve"> <data name="VideoConference_CameraOverlayImagePathHeader.Header" xml:space="preserve">
<value>Camera overlay image</value> <value>Camera overlay image</value>
</data> </data>
<data name="VideoConference_ToolbarPosition.Header" xml:space="preserve"> <data name="VideoConference_ToolbarPosition.Header" xml:space="preserve">
@@ -188,16 +188,16 @@ Disabling this module or closing PowerToys will unmute the microphone and camera
<data name="VideoConference.ModuleTitle" xml:space="preserve"> <data name="VideoConference.ModuleTitle" xml:space="preserve">
<value>Video Conference</value> <value>Video Conference</value>
</data> </data>
<data name="VideoConference_Camera.Text" xml:space="preserve"> <data name="VideoConference_Camera.Header" xml:space="preserve">
<value>Camera</value> <value>Camera</value>
</data> </data>
<data name="VideoConference_Microphone.Text" xml:space="preserve"> <data name="VideoConference_Microphone.Header" xml:space="preserve">
<value>Microphone</value> <value>Microphone</value>
</data> </data>
<data name="VideoConference_Toolbar.Text" xml:space="preserve"> <data name="VideoConference_Toolbar.Header" xml:space="preserve">
<value>Toolbar</value> <value>Toolbar</value>
</data> </data>
<data name="VideoConference_Shortcuts.Text" xml:space="preserve"> <data name="VideoConference_Shortcuts.Header" xml:space="preserve">
<value>Shortcuts</value> <value>Shortcuts</value>
</data> </data>
<data name="VideoConference_CameraOverlayImageAlt.AutomationProperties.Name" xml:space="preserve"> <data name="VideoConference_CameraOverlayImageAlt.AutomationProperties.Name" xml:space="preserve">

View File

@@ -11,31 +11,9 @@
<Setter Property="TextWrapping" Value="NoWrap" /> <Setter Property="TextWrapping" Value="NoWrap" />
</Style> </Style>
<Style x:Key="BodyTextStyle" TargetType="TextBlock">
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="FontSize" Value="{StaticResource MediumFontSize}" />
<Setter Property="TextTrimming" Value="CharacterEllipsis" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
<Style x:Key="SettingsGroupTitleStyle" TargetType="TextBlock" BasedOn="{StaticResource SubtitleTextBlockStyle}">
<Setter Property="Margin" Value="0,34,0,4" />
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="AutomationProperties.HeadingLevel" Value="Level2" />
</Style>
<Style x:Key="SettingsGroupTitleStyleAsHeader" TargetType="TextBlock" BasedOn="{StaticResource SettingsGroupTitleStyle}">
<Setter Property="Margin" Value="0,0,0,4" />
</Style>
<Style x:Key="OobeSubtitleStyle" TargetType="TextBlock"> <Style x:Key="OobeSubtitleStyle" TargetType="TextBlock">
<Setter Property="FontWeight" Value="SemiBold"/> <Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="16" /> <Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="0,16,0,0" /> <Setter Property="Margin" Value="0,16,0,0" />
</Style> </Style>
<Style x:Key="SemiBoldBody" TargetType="TextBlock">
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
</ResourceDictionary> </ResourceDictionary>

View File

@@ -2,24 +2,4 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Styles"> xmlns:local="using:Microsoft.PowerToys.Settings.UI.Styles">
<x:Double x:Key="SidePanelWidth">240</x:Double>
<!-- Breakpoint for wide layout (side panel next to content) -->
<x:Double x:Key="WideLayoutMinWidth">720</x:Double>
<!-- Breakpoint for small layout (side panel above content) -->
<x:Double x:Key="SmallLayoutMinWidth">600</x:Double>
<!-- Column spacing between content and sidepanel -->
<x:Double x:Key="DefaultColumnSpacing">24</x:Double>
<!-- Row spacing between content and sidepanel (in small mode) -->
<x:Double x:Key="DefaultRowSpacing">24</x:Double>
<!-- MaxWidth of the content panel, similar to W10 Settings -->
<x:Double x:Key="MaxContentWidth">460</x:Double>
<!-- Maximum Width of a combo box inside the content panel -->
<x:Double x:Key="MaxComboBoxWidth">444</x:Double>
</ResourceDictionary> </ResourceDictionary>

View File

@@ -2,38 +2,6 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--Medium size margins-->
<Thickness x:Key="MediumLeftMargin">24,0,0,0</Thickness>
<Thickness x:Key="MediumTopMargin">0,24,0,0</Thickness>
<Thickness x:Key="MediumLeftRightMargin">24,0,24,0</Thickness>
<Thickness x:Key="MediumRightMargin">0,0,24,0</Thickness>
<Thickness x:Key="MediumTopBottomMargin">0,24,0,24</Thickness>
<Thickness x:Key="MediumLeftTopRightBottomMargin">24,24,24,24</Thickness>
<Thickness x:Key="MediumLeftRightBottomMargin">24,0,24,24</Thickness>
<Thickness x:Key="MediumBottomMargin">0,0,0,24</Thickness>
<!--Small size margins-->
<Thickness x:Key="SmallLeftMargin">12, 0, 0, 0</Thickness>
<Thickness x:Key="SmallTopMargin">0, 12, 0, 0</Thickness>
<Thickness x:Key="SmallTopBottomMargin">0, 12, 0, 12</Thickness>
<Thickness x:Key="SmallBottomMargin">0, 0, 0, 12</Thickness>
<Thickness x:Key="SmallLeftRightMargin">12, 0, 12, 0</Thickness>
<Thickness x:Key="SmallRightMargin">0, 0, 12, 0</Thickness>
<Thickness x:Key="SmallLeftRightBottomMargin">12, 0, 12, 12</Thickness>
<Thickness x:Key="SmallLeftTopRightBottomMargin">12, 12, 12, 12</Thickness>
<Thickness x:Key="AddItemButtonMargin">-10, 12, 0, 0</Thickness>
<!--Extra Small size margins-->
<Thickness x:Key="XSmallLeftMargin">8, 0, 0, 0</Thickness>
<Thickness x:Key="XSmallTopMargin">0, 8, 0, 0</Thickness>
<Thickness x:Key="XSmallBottomMargin">0, 0, 0, 8</Thickness>
<Thickness x:Key="XSmallLeftTopRightBottomMargin">8, 8, 8, 8</Thickness>
<!--Extra Extra Small size margins-->
<Thickness x:Key="XXSmallTopMargin">0, 4, 0, 0</Thickness>
<Thickness x:Key="XXSmallTopRightBottomMargin">0, 4, 4, 4</Thickness>
<!-- OOBE --> <!-- OOBE -->
<Thickness x:Key="OobePageContentMargin">32, 24, 32, 24</Thickness> <Thickness x:Key="OobePageContentMargin">32, 24, 32, 24</Thickness>

View File

@@ -61,12 +61,9 @@
</controls:Setting.ActionContent> </controls:Setting.ActionContent>
</controls:Setting> </controls:Setting>
</controls:SettingsGroup> </controls:SettingsGroup>
<!--<TextBlock x:Uid="" </StackPanel>
Style="{StaticResource SettingsGroupTitleStyleAsHeader}"
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsElevated, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>-->
</StackPanel>
</controls:SettingsPageControl.ModuleContent> </controls:SettingsPageControl.ModuleContent>
<controls:SettingsPageControl.ModuleLinks> <controls:SettingsPageControl.ModuleLinks>

View File

@@ -30,28 +30,11 @@
</i:Interaction.Behaviors> </i:Interaction.Behaviors>
<Grid x:Name="RootGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid x:Name="RootGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="LayoutVisualStates">
<VisualState x:Name="WideLayout">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource WideLayoutMinWidth}" />
</VisualState.StateTriggers>
</VisualState>
<VisualState x:Name="SmallLayout">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource SmallLayoutMinWidth}" />
<AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<winui:NavigationView <winui:NavigationView
x:Name="navigationView" x:Name="navigationView"
Background="{ThemeResource HomePageBackgroundBrush}" Background="{ThemeResource HomePageBackgroundBrush}"
IsBackButtonVisible="Collapsed" IsBackButtonVisible="Collapsed"
IsTitleBarAutoPaddingEnabled="False" IsTitleBarAutoPaddingEnabled="False"
IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}" IsBackEnabled="{x:Bind ViewModel.IsBackEnabled, Mode=OneWay}"
SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}" SelectedItem="{x:Bind ViewModel.Selected, Mode=OneWay}"
@@ -120,11 +103,17 @@
<!--TODO(yuyoyuppe): uncomment when VCM should be enabled--> <!--TODO(yuyoyuppe): uncomment when VCM should be enabled-->
<!--<winui:NavigationViewItem x:Uid="Shell_VideoConference" helpers:NavHelper.NavigateTo="views:VideoConferencePage" IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}"> <!--<winui:NavigationViewItem x:Uid="Shell_VideoConference" helpers:NavHelper.NavigateTo="views:VideoConferencePage" IsEnabled="{x:Bind ViewModel.IsVideoConferenceBuild, Mode=OneWay}">
<winui:NavigationViewItem.Icon> <winui:NavigationViewItem.Icon>
<FontIcon Glyph="&#xE714;"/> <BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsVideoConferenceMute.png" ShowAsMonochrome="False"/>
</winui:NavigationViewItem.Icon> </winui:NavigationViewItem.Icon>
</winui:NavigationViewItem>--> </winui:NavigationViewItem>-->
<winui:NavigationViewItem x:Uid="Shell_VideoConference" helpers:NavHelper.NavigateTo="views:VideoConferencePage" >
<winui:NavigationViewItem.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsVideoConferenceMute.png" ShowAsMonochrome="False"/>
</winui:NavigationViewItem.Icon>
</winui:NavigationViewItem>
</winui:NavigationView.MenuItems> </winui:NavigationView.MenuItems>
<winui:NavigationView.PaneFooter> <winui:NavigationView.PaneFooter>
<Button Click="OobeButton_Click" <Button Click="OobeButton_Click"

View File

@@ -14,129 +14,142 @@
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical">
<ToggleSwitch x:Uid="VideoConference_Enable" <controls:Setting x:Uid="VideoConference_Enable">
IsOn="{ Binding Mode=TwoWay, Path=IsEnabled}" <controls:Setting.Icon>
IsEnabled="{ Binding Mode=OneWay, Path=IsElevated }" <BitmapIcon UriSource="ms-appx:///Assets/FluentIcons/FluentIconsColorPicker.png" ShowAsMonochrome="False" />
/> </controls:Setting.Icon>
<controls:Setting.ActionContent>
<ToggleSwitch IsOn="{x:Bind IsEnabled, Mode=TwoWay}" FlowDirection="RightToLeft" IsEnabled="{Binding Mode=OneWay, Path=IsElevated}"/>
</controls:Setting.ActionContent>
</controls:Setting>
<TextBlock x:Uid="VideoConference_Shortcuts" <controls:SettingsGroup x:Uid="VideoConference_Shortcuts" IsEnabled="{x:Bind Mode=OneWay, Path=IsEnabled}">
Style="{StaticResource SettingsGroupTitleStyle}" <controls:Setting x:Uid="VideoConference_CameraAndMicrophoneMuteHotkeyControl_Header">
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToOpacityConverter}}" /> <controls:Setting.Description>
<TextBlock>
<Run x:Uid="ShortcutWarningLabel"/>
<Run Text="Win, Ctrl, Alt, Shift"/>
</TextBlock>
</controls:Setting.Description>
<controls:Setting.ActionContent>
<controls:HotkeySettingsControl Width="240" HotkeySettings="{x:Bind Path=ViewModel.CameraAndMicrophoneMuteHotkey, Mode=TwoWay}" Keys="Win, Ctrl, Alt, Shift"/>
</controls:Setting.ActionContent>
</controls:Setting>
<controls:HotkeySettingsControl <controls:Setting x:Uid="VideoConference_MicrophoneMuteHotkeyControl_Header">
x:Uid="VideoConference_CameraAndMicrophoneMuteHotkeyControl_Header" <controls:Setting.Description>
Width="240" <TextBlock>
HorizontalAlignment="Left" <Run x:Uid="ShortcutWarningLabel"/>
Margin="{StaticResource SmallTopMargin}" <Run Text="Win, Ctrl, Alt, Shift"/>
Keys="Win, Ctrl, Alt, Shift" </TextBlock>
HotkeySettings="{x:Bind Path=ViewModel.CameraAndMicrophoneMuteHotkey, Mode=TwoWay}" </controls:Setting.Description>
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" <controls:Setting.ActionContent>
/> <controls:HotkeySettingsControl Width="240" HotkeySettings="{x:Bind Path=ViewModel.MicrophoneMuteHotkey, Mode=TwoWay}" Keys="Win, Ctrl, Alt, Shift"/>
</controls:Setting.ActionContent>
</controls:Setting>
<controls:HotkeySettingsControl <controls:Setting x:Uid="VideoConference_CameraMuteHotkeyControl_Header">
x:Uid="VideoConference_MicrophoneMuteHotkeyControl_Header" <controls:Setting.Description>
Width="240" <TextBlock>
HorizontalAlignment="Left" <Run x:Uid="ShortcutWarningLabel"/>
Margin="{StaticResource SmallTopMargin}" <Run Text="Win, Ctrl, Alt, Shift"/>
Keys="Win, Ctrl, Alt, Shift" </TextBlock>
HotkeySettings="{x:Bind Path=ViewModel.MicrophoneMuteHotkey, Mode=TwoWay}" </controls:Setting.Description>
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" <controls:Setting.ActionContent>
/> <controls:HotkeySettingsControl Width="240" HotkeySettings="{x:Bind Path=ViewModel.CameraMuteHotkey, Mode=TwoWay}" Keys="Win, Ctrl, Alt, Shift"/>
</controls:Setting.ActionContent>
</controls:Setting>
<controls:HotkeySettingsControl </controls:SettingsGroup>
x:Uid="VideoConference_CameraMuteHotkeyControl_Header"
Width="240"
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
Keys="Win, Ctrl, Alt, Shift"
HotkeySettings="{x:Bind Path=ViewModel.CameraMuteHotkey, Mode=TwoWay}"
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"
/>
<TextBlock x:Uid="VideoConference_Microphone"
Style="{StaticResource SettingsGroupTitleStyle}"
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
<ComboBox x:Uid="VideoConference_SelectedMicrophone" <controls:SettingsGroup x:Uid="VideoConference_Microphone" IsEnabled="{x:Bind Mode=OneWay, Path=IsEnabled}">
Width="240"
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
SelectedIndex="{Binding Path=SelectedMicrophoneIndex, Mode=TwoWay}"
ItemsSource="{Binding MicrophoneNames, Mode=OneTime}"
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
<TextBlock x:Uid="VideoConference_Camera" <controls:Setting x:Uid="VideoConference_SelectedMicrophone" Icon="&#xE1D6;">
Style="{StaticResource SettingsGroupTitleStyle}" <controls:Setting.ActionContent>
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/> <ComboBox Width="240"
SelectedIndex="{Binding Path=SelectedMicrophoneIndex, Mode=TwoWay}"
ItemsSource="{Binding MicrophoneNames, Mode=OneTime}"/>
</controls:Setting.ActionContent>
</controls:Setting>
</controls:SettingsGroup>
<ComboBox x:Uid="VideoConference_SelectedCamera"
Width="240"
HorizontalAlignment="Left"
Margin="{StaticResource SmallTopMargin}"
SelectedIndex="{Binding Path=SelectedCameraIndex, Mode=TwoWay}"
ItemsSource="{Binding CameraNames, Mode=OneTime}"
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
<TextBlock x:Uid="VideoConference_CameraOverlayImagePathHeader" <controls:SettingsGroup x:Uid="VideoConference_Camera" IsEnabled="{x:Bind Mode=OneWay, Path=IsEnabled}">
Margin="{StaticResource SmallTopMargin}"/>
<Border CornerRadius="4" <controls:SettingExpander IsExpanded="True">
HorizontalAlignment="Left" <controls:SettingExpander.Header>
Margin="{StaticResource XXSmallTopMargin}"> <controls:Setting x:Uid="VideoConference_SelectedCamera" Icon="&#xE116;">
<Image Width="240" <controls:Setting.ActionContent>
x:Uid="VideoConference_CameraOverlayImageAlt" <ComboBox Width="240"
ToolTipService.ToolTip="{Binding Mode=OneWay, Path=CameraImageOverlayPath}" SelectedIndex="{Binding Path=SelectedCameraIndex, Mode=TwoWay}"
Source="{Binding Mode=OneWay, Path=CameraImageOverlayPath}"/> ItemsSource="{Binding CameraNames, Mode=OneTime}"
</Border> IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}"/>
</controls:Setting.ActionContent>
</controls:Setting>
</controls:SettingExpander.Header>
<controls:SettingExpander.Content>
<StackPanel Orientation="Vertical">
<controls:Setting x:Uid="VideoConference_CameraOverlayImagePathHeader" Style="{StaticResource ExpanderContentSettingStyle}">
<controls:Setting.ActionContent>
<StackPanel Orientation="Horizontal" Spacing="8">
<Button x:Uid="VideoConference_CameraOverlayImageBrowse"
Command="{Binding Mode=OneWay, Path=SelectOverlayImage}" />
<StackPanel Orientation="Horizontal" <Button x:Uid="VideoConference_CameraOverlayImageClear"
Padding="0" Command="{Binding Mode=OneWay, Path=ClearOverlayImage}"/>
Spacing="8" </StackPanel>
Margin="{StaticResource SmallTopMargin}"> </controls:Setting.ActionContent>
<Button Height="32" </controls:Setting>
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}" <Border CornerRadius="4">
x:Uid="VideoConference_CameraOverlayImageBrowse" <Image Width="240"
Command="{Binding Mode=OneWay, Path=SelectOverlayImage}" x:Uid="VideoConference_CameraOverlayImageAlt"
HorizontalContentAlignment="Left" ToolTipService.ToolTip="{Binding Mode=OneWay, Path=CameraImageOverlayPath}"
HorizontalAlignment="Left" /> Source="{Binding Mode=OneWay, Path=CameraImageOverlayPath}"/>
</Border>
</StackPanel>
</controls:SettingExpander.Content>
</controls:SettingExpander>
<Button IsEnabled="{Binding Mode=TwoWay, Path=IsEnabled}" </controls:SettingsGroup>
Height="32"
x:Uid="VideoConference_CameraOverlayImageClear"
Command="{Binding Mode=OneWay, Path=ClearOverlayImage}"
HorizontalAlignment="Left" />
</StackPanel>
<TextBlock x:Uid="VideoConference_Toolbar"
Style="{StaticResource SettingsGroupTitleStyle}"
Opacity="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled, Converter={StaticResource ModuleEnabledToOpacityConverter}}"/>
<ComboBox x:Uid="VideoConference_ToolbarPosition"
MinWidth="240"
Margin="{StaticResource SmallTopMargin}"
SelectedIndex="{ Binding Mode=TwoWay, Path=ToolbarPostionIndex}"
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}">
<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>
<ComboBox x:Uid="VideoConference_ToolbarMonitor"
MinWidth="240"
Margin="{StaticResource SmallTopMargin}"
SelectedIndex="{ Binding Mode=TwoWay, Path=ToolbarMonitorIndex}"
IsEnabled="{ Binding Mode=TwoWay, Path=IsEnabled}">
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_Main"/>
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_All"/>
</ComboBox>
<CheckBox x:Uid="VideoConference_HideToolbarWhenUnmuted" <controls:SettingsGroup x:Uid="VideoConference_Toolbar" IsEnabled="{x:Bind Mode=OneWay, Path=IsEnabled}">
IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.HideToolbarWhenUnmuted}"
Margin="{StaticResource SmallTopMargin}" <controls:SettingExpander IsExpanded="True">
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}" <controls:SettingExpander.Header>
/> <controls:Setting x:Uid="VideoConference_ToolbarPosition" Icon="&#xEC12;">
<controls:Setting.ActionContent>
<ComboBox MinWidth="240" SelectedIndex="{ Binding Mode=TwoWay, Path=ToolbarPostionIndex}">
<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>
</controls:Setting.ActionContent>
</controls:Setting>
</controls:SettingExpander.Header>
<controls:SettingExpander.Content>
<StackPanel Orientation="Vertical">
<controls:Setting x:Uid="VideoConference_ToolbarMonitor" Style="{StaticResource ExpanderContentSettingStyle}">
<controls:Setting.ActionContent>
<ComboBox MinWidth="240" SelectedIndex="{ Binding Mode=TwoWay, Path=ToolbarMonitorIndex}">
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_Main"/>
<ComboBoxItem x:Uid="VideoConference_ToolbarMonitor_All"/>
</ComboBox>
</controls:Setting.ActionContent>
</controls:Setting>
<Rectangle Style="{StaticResource ExpanderSeparatorStyle}" />
<CheckBox x:Uid="VideoConference_HideToolbarWhenUnmuted" IsChecked="{x:Bind Mode=TwoWay, Path=ViewModel.HideToolbarWhenUnmuted}" Margin="{StaticResource ExpanderSettingMargin}" />
</StackPanel>
</controls:SettingExpander.Content>
</controls:SettingExpander>
</controls:SettingsGroup>
</StackPanel> </StackPanel>
</controls:SettingsPageControl.ModuleContent> </controls:SettingsPageControl.ModuleContent>