JianGongYun/JianGongYun/TRTC/Windows/LiveWindowTopBlock.xaml

43 lines
2.3 KiB
XML

<Window x:Class="JianGongYun.TRTC.Windows.LiveWindowTopBlock"
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:JianGongYun.TRTC.Windows"
ShowInTaskbar="False"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
mc:Ignorable="d"
Topmost="True"
Top="0"
Title="" Height="40" Width="400"
ResizeMode="NoResize"
MouseMove="Window_MouseMove"
MouseLeave="Window_MouseLeave"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
MouseLeftButtonUp="Window_MouseLeftButtonUp"
>
<Border Cursor="Hand" CornerRadius="0 0 15 15" Background="#aa000000">
<DockPanel Margin="10 0" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" Width="72" DockPanel.Dock="Right">
<Button Click="ShowLiveWin_Click" Style="{StaticResource CusIconBtn}" Background="Transparent" BorderThickness="0">
<Button.Content>
<TextBlock FontSize="13" Margin="20 0 0 0" TextAlignment="Right" Foreground="#97070e">展开教室</TextBlock>
</Button.Content>
</Button>
</StackPanel>
<StackPanel Width="130" Orientation="Horizontal" DockPanel.Dock="Right">
<Ellipse VerticalAlignment="Center" Width="12" Fill="#00cc66" Height="12"></Ellipse>
<TextBlock Margin="5 0 0 0" FontSize="13" Foreground="#00cc66">直播中</TextBlock>
<TextBlock Margin="5 0 0 0" FontSize="13" Foreground="White" Text="{Binding LiveTimeCount}"></TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="White" FontSize="13">当前教室共有:</TextBlock>
<TextBlock Foreground="#3d7cf8" FontSize="13" Text="{Binding StudentCount}"></TextBlock>
<TextBlock Foreground="White" Margin="3 0 0 0" FontSize="13"></TextBlock>
</StackPanel>
</DockPanel>
</Border>
</Window>