123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <Window x:Class="VRTC.WpfClient.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:VRTC.WpfClient"
- xmlns:extensions="clr-namespace:VRTC.WpfClient.Extensions"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.9*"/>
- <RowDefinition Height="0.1*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <GroupBox Header="Log Info" Margin="7">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Button HorizontalAlignment="Right" Margin="0,7" Content="清理日志" Command="{Binding ClearLogCommand}" Style="{StaticResource CommonButtonStyle}"/>
- <ListBox Grid.Row="1" Margin="7" x:Name="logList" ItemsSource="{Binding LogItems}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Content}" TextWrapping="Wrap" Foreground="{Binding LogLevel, Converter={extensions:LogLevelToColorConvertExtension}}" />
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </GroupBox>
- <Grid Grid.Row="1" Grid.RowSpan="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <Label VerticalAlignment="Center">Host:</Label>
- <TextBox Text="{Binding HostUrl}"></TextBox>
- <Label VerticalAlignment="Center">Room ID:</Label>
- <TextBox Text="{Binding RoomId}"></TextBox>
- <Label VerticalAlignment="Center">Client ID:</Label>
- <TextBox Text="{Binding UserId}"></TextBox>
- <Label VerticalAlignment="Center">Device:</Label>
- <ComboBox Width="200" VerticalAlignment="Center" ItemsSource="{Binding VideoDevices}" SelectedItem="{Binding DefaultVideoDevice}"></ComboBox>
- <CheckBox Margin="7,0" VerticalAlignment="Center" IsChecked="{Binding AudioEnabled}">Audio Enabled</CheckBox>
- <Button Command="{Binding ConnectCommand}">Connect</Button>
- <Button Command="{Binding ExitCommand}">Close</Button>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
-
- </StackPanel>
-
-
- </Grid>
- <StackPanel Grid.Column="1" Grid.RowSpan="2">
- <local:VideoView DataContext="{Binding LocalVideo}"/>
- <ItemsControl ItemsSource="{Binding RemoteVideos}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <local:VideoView/>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </StackPanel>
- </Grid>
- </Window>
|