Revert "delete:视频展台"

This reverts commit 0683779e09.
This commit is contained in:
PrefacedCorg
2026-04-23 22:17:55 +08:00
parent b891cb6fe3
commit 532aa03c56
8 changed files with 1342 additions and 5 deletions
+191
View File
@@ -6766,7 +6766,198 @@
</Border>
</Viewbox>
<!-- 视频展台侧栏 -->
<Border
x:Name="VideoPresenterSidebar"
Width="350"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}"
BorderThickness="0,0,1,0"
Visibility="Collapsed"
Panel.ZIndex="996">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="110" />
</Grid.RowDefinitions>
<!-- 顶部标题栏 -->
<Grid Grid.Row="0" Height="50">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<TextBlock
Grid.Column="0"
Margin="15,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
Foreground="{DynamicResource FloatBarForeground}"
Text="{i18n:I18n Key=Booth_Title}" />
<Button
Grid.Column="1"
Width="50"
Height="50"
Padding="0"
BorderThickness="0"
Background="Transparent"
Click="BtnCloseVideoPresenter_Click">
<Path
Stroke="{DynamicResource IconForeground}"
StrokeThickness="2"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"
Width="16"
Height="16"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Stretch="Uniform"
Data="M4.5 4.5L11.5 11.5M11.5 4.5L4.5 11.5" />
</Button>
</Grid>
<!-- 预览区域 -->
<Border Grid.Row="1" Margin="10,10,10,2" Padding="10" CornerRadius="6" Background="#1f2328">
<Image x:Name="VideoPresenterPreviewImage" Stretch="Uniform" Height="180" />
</Border>
<!-- 照片显示区域 -->
<Border Grid.Row="2" Margin="10,2,10,2" Padding="10" CornerRadius="6" Background="{DynamicResource FloatBarBackground}">
<StackPanel>
<TextBlock
Margin="0,0,0,8"
HorizontalAlignment="Left"
FontSize="12"
FontWeight="SemiBold"
Foreground="{DynamicResource FloatBarForeground}"
Text="{i18n:I18n Key=Booth_CapturedPhotos}" />
<ScrollViewer
x:Name="CapturedPhotosScrollViewer"
MaxHeight="280"
VerticalScrollBarVisibility="Auto"
PanningMode="VerticalFirst">
<StackPanel x:Name="CapturedPhotosStackPanel" Margin="0,0,0,5" />
</ScrollViewer>
</StackPanel>
</Border>
<!-- 设备选择区域 -->
<Border Grid.Row="3" Margin="10,2,10,5" Padding="10" CornerRadius="6" Background="{DynamicResource FloatBarBackground}">
<StackPanel>
<TextBlock
Margin="0,0,0,8"
HorizontalAlignment="Left"
FontSize="12"
FontWeight="SemiBold"
Foreground="{DynamicResource FloatBarForeground}"
Text="{i18n:I18n Key=Booth_CameraDevices}" />
<ScrollViewer
x:Name="CameraDevicesScrollViewer"
MaxHeight="120"
VerticalScrollBarVisibility="Auto"
PanningMode="VerticalFirst">
<StackPanel x:Name="CameraDevicesStackPanel" />
</ScrollViewer>
</StackPanel>
</Border>
<!-- 底部按钮区域 -->
<Grid Grid.Row="4" Margin="0,0,0,6">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="10,4,10,2">
<ToggleButton
x:Name="BtnToggleVideoPresenterLiveOnCanvas"
Width="70"
Height="40"
Margin="2,0"
Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}"
BorderThickness="1"
Checked="BtnToggleVideoPresenterLiveOnCanvas_Checked"
Unchecked="BtnToggleVideoPresenterLiveOnCanvas_Unchecked">
<TextBlock FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Text="{i18n:I18n Key=Booth_Present}" />
</ToggleButton>
<ToggleButton
x:Name="ToggleBtnPhotoCorrection"
Width="70"
Height="40"
Margin="2,0"
Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}"
BorderThickness="1"
Checked="ToggleBtnPhotoCorrection_Checked"
Unchecked="ToggleBtnPhotoCorrection_Unchecked">
<TextBlock FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Text="{i18n:I18n Key=Booth_Correction}" />
</ToggleButton>
<Button
x:Name="BtnCapturePhoto"
Width="70"
Height="40"
Margin="2,0"
Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}"
BorderThickness="1"
Click="BtnCapturePhoto_Click">
<TextBlock FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Text="{i18n:I18n Key=Booth_Capture}" />
</Button>
<Button
x:Name="BtnRotateImage"
Width="70"
Height="40"
Margin="2,0"
Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}"
BorderThickness="1"
Click="BtnRotateImage_Click">
<TextBlock FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Text="{i18n:I18n Key=Booth_Rotate}" />
</Button>
</StackPanel>
<!-- 分辨率 Tab -->
<Grid Grid.Row="1" HorizontalAlignment="Center" Margin="10,6,10,4">
<Border Background="{DynamicResource FloatBarBackground}"
CornerRadius="8" BorderThickness="1" BorderBrush="#616161"
Width="282" Height="40" ToolTip="{x:Static props:Strings.Booth_Resolution_Tooltip}">
<Grid>
<Border x:Name="BoothResolutionTabIndicator"
Background="#66CCFF"
CornerRadius="6"
Width="70" Height="38"
HorizontalAlignment="Left" VerticalAlignment="Center"
Margin="0,0,0,0"/>
<Grid>
<Button x:Name="BtnBoothResolution720" Width="70" Height="40" Background="Transparent" BorderThickness="0"
Click="BoothResolutionTab_Click" Tag="1280,720" Cursor="Hand" HorizontalAlignment="Left">
<TextBlock Text="720p" FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Opacity="0.7"/>
</Button>
<Button x:Name="BtnBoothResolution1080" Width="70" Height="40" Background="Transparent" BorderThickness="0"
Click="BoothResolutionTab_Click" Tag="1920,1080" Cursor="Hand" HorizontalAlignment="Left" Margin="70,0,0,0">
<TextBlock x:Name="TbBoothResolution1080" Text="1080p" FontSize="12" FontWeight="Bold" Foreground="White"/>
</Button>
<Button x:Name="BtnBoothResolution2K" Width="70" Height="40" Background="Transparent" BorderThickness="0"
Click="BoothResolutionTab_Click" Tag="2560,1440" Cursor="Hand" HorizontalAlignment="Left" Margin="140,0,0,0">
<TextBlock Text="2K" FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Opacity="0.7"/>
</Button>
<Button x:Name="BtnBoothResolution4K" Width="70" Height="40" Background="Transparent" BorderThickness="0"
Click="BoothResolutionTab_Click" Tag="3840,2160" Cursor="Hand" HorizontalAlignment="Left" Margin="210,0,0,0">
<TextBlock Text="4K" FontSize="12" FontWeight="SemiBold" Foreground="{DynamicResource FloatBarForeground}" Opacity="0.7"/>
</Button>
</Grid>
</Grid>
</Border>
</Grid>
</Grid>
</Grid>
</Border>
<Border x:Name="TimerContainer"
Visibility="Collapsed"