123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- <Window x:Class="XHWK.WKTool.XHMicroLessonSystemWindow"
- 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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:aforge ="clr-namespace:AForge.Controls;assembly=AForge.Controls"
- xmlns:local="clr-namespace:XHWK.WKTool"
- mc:Ignorable="d"
- Title="XHMicroLessonSystemWindow" Height="930" Width="1162.5" WindowStartupLocation="CenterOwner"
- WindowStyle="None" Background="#EFF1F8" AllowsTransparency="True"
- ShowInTaskbar="False">
- <Viewbox>
- <Grid Height="930" Width="1162.5">
- <!--分3行-->
- <Grid.RowDefinitions>
- <RowDefinition Height="106"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="30"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <!--第一行-->
- <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,10,10,0">
- <Image Source="./Images/microLessonSystem_0.png"/>
- <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
- </StackPanel>
- <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
- <Button x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0">
- <StackPanel Orientation="Horizontal">
- <Image Source="./Images/microLessonSystem_9.png"/>
- <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Image Source="./Images/microLessonSystem_19.png"/>
- </Button>
- <Button x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
- <Image Source="./Images/microLessonSystem_8.png"/>
- </Button>
- <Button x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click">
- <Image Source="./Images/microLessonSystem_10.png"/>
- </Button>
- </StackPanel>
- <!--第二行-->
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,10,0,0">
- <Button x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
- <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
- <TextBlock Text="录屏" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,30,0">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
- <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
- <TextBlock Text="截图" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
- <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
- <TextBlock Text="导入" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="60,0,30,0">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
- <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
- <TextBlock Text="录制" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
- <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
- <TextBlock Text="停止" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
- <Button x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png"/>
- <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
- <TextBlock Text="增加" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,30,0">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png"/>
- <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Collapsed"/>
- <TextBlock Text="打印" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_16.png"/>
- <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
- <TextBlock Text="上传" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnMyMine" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,30,0">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgMyMine" Source="./Images/microLessonSystem_1.png"/>
- <Image x:Name="ImgMyMineTwo" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
- <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- <Button x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnSetUp_Click">
- <StackPanel Orientation="Vertical">
- <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png"/>
- <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
- <TextBlock Text="设置" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- <!--主内容-->
- <Grid Grid.Row="1" x:Name="gridMain" Margin="20,0,20,0" Background="#FFFFFF" Height="793.700787401575" Width="1142.51968503937" Visibility="Visible">
-
- </Grid>
- <!--摄像头-->
- <Grid Grid.Row="1" x:Name="gridCamera" Background="#FFFFFF" Margin="20,0,20,0" Visibility="Hidden">
- <wfi:WindowsFormsHost Grid.Row="0" Grid.Column="0" Height="124" Width="172" HorizontalAlignment="Right" Margin="10,10,10,10" VerticalAlignment="Top">
- <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172" />
- </wfi:WindowsFormsHost>
- </Grid>
- <!--设置-->
- <Grid Grid.Row="1" x:Name="gridSetUp" Margin="20,0,20,0" Background="#FFFFFF" Visibility="Collapsed">
- <Grid.RowDefinitions>
- <RowDefinition Height="120"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="80"/>
- <RowDefinition Height="80"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,30,0,0">
- <TextBlock Text=" 点阵笔" FontSize="16" Foreground="#2D8CF0"/>
- <TextBlock Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left">
- <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0"/>
- <RadioButton Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
- <RadioButton Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- <RadioButton Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left">
- <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0"/>
- <RadioButton Content="左上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
- <RadioButton Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- <RadioButton Content="右上" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- <RadioButton Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left">
- <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0"/>
- <RadioButton Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
- <RadioButton Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left">
- <TextBlock Text="文件路径" FontSize="16" Foreground="#2D8CF0" Padding="2,36,10,0"/>
- <!--输入框-->
- <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
- <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
- </Border>
- <!--浏览按钮-->
- <Button x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="btnBrowse_Click">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <Border.Background>#CDD6E0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,30,0,0">
- <TextBlock Text=" 版本号" FontSize="16" Foreground="#2D8CF0"/>
- <TextBlock Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
- </StackPanel>
- <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,30,0,0">
- <TextBlock Text="版权所有" FontSize="16" Foreground="#2D8CF0"/>
- <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
- </StackPanel>
- <!--第四行 开始按钮-->
- <Button Grid.Row="7" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,0,10,0" Click="BtnSave_Click">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <Border.Background>#2D8CF0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- <Grid Grid.Row="2">
- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <TextBlock Text="颜色:" FontSize="14" Padding="5,5,0,0"/>
- <Button x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20"/>
- <Button x:Name="btnRed" Background="#FF0000" Width="20" Height="20" Margin="5,0,0,0"/>
- <Button x:Name="btnGray" Background="#A7A9AC" Width="20" Height="20" Margin="5,0,0,0"/>
- <Button x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="5,0,0,0"/>
- <Button x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="5,0,0,0"/>
- <Button x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="5,0,0,0"/>
- <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,0,0,0"/>
- <RadioButton x:Name="rbnFine" Content="细" FontSize="14" Margin="0,5,0,0" IsChecked="True"/>
- <RadioButton x:Name="rbnIn" Content="中" FontSize="14" Margin="5,5,0,0"/>
- <RadioButton x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,5,0,0"/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="摄像头:" FontSize="14" Padding="15,5,0,0"/>
- <RadioButton x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,5,0,0" Click="RbnOpen_Click"/>
- <RadioButton x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,5,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,5,0">
- <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
- <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
- </StackPanel>
- </Grid>
- </Grid>
- </Viewbox>
- </Window>
|