123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992 |
- <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"
- Title="星火微课系统"
- Width="950"
- Height="700"
- AllowsTransparency="True"
- Background="Transparent"
- BorderBrush="#eee"
- BorderThickness="1"
- Loaded="Window_Loaded"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- ResizeMode="CanMinimize"
- ShowInTaskbar="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.Resources>
- <Style x:Key="radBase" TargetType="RadioButton">
- <Setter Property="IsChecked" Value="False" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="#555" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="RadioButton">
- <DockPanel
- Width="{TemplateBinding Width}"
- Background="{TemplateBinding Background}"
- LastChildFill="False"
- ToolTip="{TemplateBinding Content}">
- <Image
- x:Name="_img"
- Margin="2,0,0,0"
- DockPanel.Dock="Left"
- Source="./Images/rdo_no.png"
- Stretch="None" />
- <TextBlock
- Margin="3,0,0,0"
- VerticalAlignment="Center"
- DockPanel.Dock="Left"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </DockPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="Chrome"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- ListBox容器样式 -->
- <Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border
- x:Name="itemBox"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="0">
- <ContentPresenter />
- </Border>
- <ControlTemplate.Triggers />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- 摄像头样式 -->
- <Style x:Key="stlToggleButton" TargetType="ToggleButton">
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate>
- <Border
- x:Name="Back"
- Background="#FFFFFFFF"
- BorderBrush="Transparent"
- BorderThickness="0">
- <Path
- Name="PathFill"
- Width="8"
- Height="6"
- Data="M5,0 L10,10 L0,10 z"
- Fill="Black"
- RenderTransformOrigin="0.5,0.5"
- Stretch="Fill"
- StrokeThickness="0">
- <Path.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="180" />
- <TranslateTransform />
- </TransformGroup>
- </Path.RenderTransform>
- </Path>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="PathFill" Property="Fill" Value="White" />
- <Setter TargetName="Back" Property="Background" Value="#FFDCDCDC" />
- <Setter TargetName="Back" Property="BorderBrush" Value="#FFDCDCDC" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="stlComboBox" TargetType="ComboBox">
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
- <Setter Property="ScrollViewer.CanContentScroll" Value="True" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Foreground" Value="Black" />
- <Setter Property="Height" Value="30" />
- <Setter Property="Margin" Value="0,0,0,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ComboBox">
- <Grid Background="#F7FDF7">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.8*" />
- <ColumnDefinition Width="0.2*" MaxWidth="20" />
- </Grid.ColumnDefinitions>
- <TextBox
- Grid.Column="0"
- VerticalContentAlignment="Center"
- IsReadOnly="True"
- Text="{TemplateBinding Text}" />
- <Border
- Grid.Column="0"
- BorderBrush="#FFDCDCDC"
- BorderThickness="1,1,1,1"
- CornerRadius="1,0,0,1" />
- <Border
- Grid.Column="1"
- BorderBrush="#FFDCDCDC"
- BorderThickness="0,1,1,1"
- CornerRadius="0,1,1,0">
- <ToggleButton
- ClickMode="Press"
- IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource stlToggleButton}" />
- </Border>
- <Popup
- x:Name="Popup"
- AllowsTransparency="True"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="Slide">
- <Border
- x:Name="DropDown"
- MinWidth="{TemplateBinding ActualWidth}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- CornerRadius="1"
- SnapsToDevicePixels="True">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="2"
- Opacity="0.5"
- ShadowDepth="0"
- Color="Black" />
- </Border.Effect>
- <ScrollViewer
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
- Margin="4,6,4,6"
- CanContentScroll="True"
- HorizontalScrollBarVisibility="Auto"
- SnapsToDevicePixels="True"
- Style="{DynamicResource ScrollViewerStyle}"
- VerticalScrollBarVisibility="Auto">
- <!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
- <StackPanel
- Background="White"
- IsItemsHost="True"
- KeyboardNavigation.DirectionalNavigation="Contained" />
- </ScrollViewer>
- </Border>
- </Popup>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
-
-
- <Grid>
- <!-- 内容区 上:标题栏 下:工具栏和录制区域 -->
- <Grid
- x:Name="GridContent"
- HorizontalAlignment="Stretch"
- Background="#FFF1F2F8">
- <Grid.RowDefinitions>
- <RowDefinition Height="60*" />
- <RowDefinition Height="10*" />
- <RowDefinition Height="955*" />
- </Grid.RowDefinitions>
- <!-- 标题栏 左:logo 右:可变工具栏 -->
- <Grid
- x:Name="GridTitle"
- Grid.Row="0"
- Background="White"
- MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <Grid Grid.Background="{DynamicResource BackTitle}">
- <!--<Grid.Background>
- <ImageBrush ImageSource="" />
- </Grid.Background>-->
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200*" />
- <ColumnDefinition Width="926*" />
- <ColumnDefinition Width="160*" />
- </Grid.ColumnDefinitions>
- <!-- LOGO -->
- <Grid Grid.Column="0">
- <StackPanel
- Margin="10,0"
- HorizontalAlignment="Left"
- Orientation="Horizontal">
- <Image
- Margin="10"
- VerticalAlignment="Center"
- Source="./Images/APP.png" />
- <TextBlock
- x:Name="TxbTitleName"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize18}"
- FontWeight="Bold"
- Style="{DynamicResource LogoColor}"
- Text="星火微课" />
- </StackPanel>
- </Grid>
- <!-- 录制相关Title 926 -->
- <Grid
- x:Name="GridRecordingTitle"
- Grid.Column="1"
- Visibility="Visible">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200*" />
- <ColumnDefinition Width="476*" />
- <ColumnDefinition Width="160*" />
- <ColumnDefinition Width="160*" />
- </Grid.ColumnDefinitions>
- <!-- 智能笔连接状态 -->
- <Grid Grid.Column="0">
- <!--<TextBlock Text="设备: " FontSize="14" Padding="0,4,0,0" />-->
- <StackPanel
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Image
- x:Name="ImgPenState"
- Width="20"
- Style="{DynamicResource TitlePenState}" />
- <TextBlock
- x:Name="txbNotConnected"
- Margin="5,0,0,0"
- Padding="0"
- VerticalAlignment="Center"
- Background="{x:Null}"
- FontSize="{Binding WordSize14}"
- FontWeight="Bold"
- Style="{DynamicResource PenStateColor}"
- Text="未连接" />
- </StackPanel>
- </Grid>
- <!-- 倒计时 -->
- <Grid Grid.Column="1">
- <Label
- Width="2"
- Margin="0,15"
- HorizontalAlignment="Left"
- Background="#FFE5E5E5" />
- <StackPanel
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Image
- x:Name="ImgLZImg"
- Width="20"
- Style="{DynamicResource TitleLZTimeImg}" />
- <TextBlock
- x:Name="TxbTime"
- Margin="10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize18}"
- Foreground="#FFFF0000"
- Text="00:00" />
- <TextBlock
- x:Name="TxbType"
- Margin="10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize18}"
- Style="{DynamicResource TxbMesColor}"
- Text="准备就绪" />
- </StackPanel>
- <Label
- Width="2"
- Margin="0,15"
- HorizontalAlignment="Right"
- Background="#FFE5E5E5" />
- </Grid>
- <!-- 录屏按钮 -->
- <Grid Grid.Column="2">
- <StackPanel Orientation="Horizontal" />
- <Button
- x:Name="BtnRecord"
- Margin="10,5,0,5"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Button.Template="{DynamicResource SkinBtnRecord}"
- Click="BtnRecord_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- <Button
- x:Name="BtnRecordSuspend"
- Margin="5,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Button.Template="{DynamicResource SkinBtnRecordSuspend}"
- Click="BtnRecord_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- Visibility="Collapsed" />
- </Grid>
- <Grid Grid.Column="3">
- <Button
- x:Name="BtnStop"
- Margin="5,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Button.Template="{DynamicResource SkinBtnRecordStop}"
- Click="BtnStop_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- </Grid>
-
- <!-- 关闭 -->
- <Grid Grid.Column="2">
- <Label
- Width="2"
- Margin="0,15"
- HorizontalAlignment="Left"
- Background="#FFE5E5E5" />
- <Button
- x:Name="BtnClose"
- Margin="20,0,10,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Button.Template="{DynamicResource SkinBtnClose}"
- Click="BtnClose_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
-
- </Grid>
- <!-- 测试 -->
- <Grid Grid.Column="2" Visibility="Collapsed">
- <Label
- Width="2"
- Margin="0,15"
- HorizontalAlignment="Left"
- Background="#FFE5E5E5" />
- <Button
- Margin="35,0,15,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Click="BtnClose_Click"
- Cursor="Hand"
- FontSize="16"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="23*" />
- <ColumnDefinition Width="72*" />
- </Grid.ColumnDefinitions>
- <Image
- x:Name="ImgSetUp"
- Grid.ColumnSpan="2"
- Source="/SkinImages/White/Toolbar_LZ_N.png" />
-
- <Label
- x:Name="Word"
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="关闭程序"
- FontSize="{TemplateBinding FontSize}"
- Foreground="#FFEFEFEF" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
- <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Row="1" />
- <!-- 工具栏和录制区域 H965 -->
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180*" />
- <ColumnDefinition Width="10*" />
- <ColumnDefinition Width="1061*" />
- </Grid.ColumnDefinitions>
- <!-- 工具栏 W200 H955 -->
- <Grid
- x:Name="GridToolbars"
- Grid.Column="0"
- Background="White">
- <Grid Grid.Background="{DynamicResource BackTool}">
- <Grid.RowDefinitions>
- <RowDefinition Height="160*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="85*" />
- <RowDefinition Height="115*" />
- </Grid.RowDefinitions>
- <!-- 头像 -->
- <Grid Grid.Row="0">
- <!-- 登录状态 -->
- <Button
- x:Name="BtnLoginType"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Click="BtnLoginType_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel>
- <Border
- x:Name="ImgHeadImgN"
- Width="70"
- Height="70"
- CornerRadius="50">
- <Border.Background>
- <ImageBrush ImageSource="/BlackImages/HM_HeadImg_N.png" />
- </Border.Background>
- </Border>
- <Border
- x:Name="ImgHeadImg"
- Width="70"
- Height="70"
- CornerRadius="50"
- Visibility="Collapsed">
- <Border.Background>
- <ImageBrush x:Name="ImgHead" ImageSource="/BlackImages/HM_HeadImg.png" />
- </Border.Background>
- </Border>
- <TextBlock
- x:Name="TxbLoginType"
- Margin="0,10,0,0"
- HorizontalAlignment="Center"
- FontSize="{Binding WordSize12}"
- Style="{DynamicResource LoginTypeColor}"
- Text="未登录" />
- </StackPanel>
- </Button>
- </Grid>
- <!-- 录屏 -->
- <Grid Grid.Row="1">
- <Button
- x:Name="BtnScreenRecording"
- Padding="0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- HorizontalContentAlignment="Stretch"
- VerticalContentAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnScreenRecording}"
- Click="BtnScreenRecording_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}" />
- </Grid>
- <!-- 截图 -->
- <Grid Grid.Row="2">
- <Button
- x:Name="BtnScreenshot"
- Padding="0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnScreenshot}"
- Click="BtnScreenshot_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 导入 -->
- <Grid Grid.Row="3">
- <Button
- x:Name="BtnImport"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnImport}"
- Click="BtnImport_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 加页 -->
- <Grid Grid.Row="4">
- <Button
- x:Name="BtnAdd"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnAdd}"
- Click="BtnAdd_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 打印 -->
- <Grid Grid.Row="5">
- <Button
- x:Name="BtnPrint"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnPrint}"
- Click="BtnPrint_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 我的 -->
- <Grid Grid.Row="6">
- <Button
- x:Name="BtnUpload"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnMy}"
- Click="BtnUpload_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 检测 -->
- <Grid Grid.Row="7">
- <Button
- x:Name="BtnDevice"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnDevice}"
- Click="BtnDevice_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 设置 -->
- <Grid Grid.Row="8">
- <Button
- x:Name="BtnSetUp"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Button.Template="{DynamicResource SkinBtnSetUp}"
- Click="BtnSetUp_Click"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
- </Grid>
- <!-- 测试 -->
- <Grid
- Grid.Row="9"
- Height="85"
- VerticalAlignment="Top"
- Visibility="Collapsed">
- <Button
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Click="BtnSetUp_Click"
- Cursor="Hand"
- FontSize="18"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100*" />
- <ColumnDefinition Width="60*" />
- <ColumnDefinition Width="40*" />
- </Grid.ColumnDefinitions>
- <Image
- x:Name="ImgScreenRecording"
- Grid.ColumnSpan="3"
- Source="/SkinImages/White/Toolbar_SZ.png" />
- <Label
- x:Name="WordScreenRecording"
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="设置"
- FontSize="{TemplateBinding FontSize}"
- Foreground="#FF333333" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_MI.png" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_CL.png" />
- <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFFFFFFF" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_N.png" />
- <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFC3C3C3" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Column="1" />
- <!-- 主显示区域 -->
- <Grid Grid.Column="2">
- <!-- 录制区域 -->
- <Grid x:Name="GridRecordingArea" Visibility="Visible">
- <Grid.RowDefinitions>
- <RowDefinition Height="905*" />
- <RowDefinition Height="3*" />
- <RowDefinition Height="47*" />
- </Grid.RowDefinitions>
- <!-- 录制区域 -->
- <Grid Grid.Row="0">
- <!-- 录制区 -->
- <Border>
- <Grid
- x:Name="GridMain"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- Visibility="Visible">
- <ScrollViewer
- x:Name="ScroMain"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- VerticalScrollBarVisibility="Visible">
- <Grid
- x:Name="GridM"
- Width="auto"
- Height="1780"
- Margin="0,0,0,0"
- Background="#FFFFFF"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- Visibility="Visible">
-
- <Grid>
- <Border CornerRadius="5">
- <Grid x:Name="IMG" Margin="0,0,0,0">
- <Grid.Resources>
- <TransformGroup x:Key="Imageview">
- <ScaleTransform />
- <TranslateTransform />
- </TransformGroup>
- </Grid.Resources>
- <!-- 图片表框 -->
- <Rectangle
- x:Name="RectImgBorder"
- Width="300"
- Height="300"
- Margin="373,175,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Cursor="SizeAll"
- Fill="#00000000"
- SnapsToDevicePixels="True"
- Stroke="#3f6fff"
- StrokeDashArray="4 4"
- StrokeThickness="4"
- Visibility="Hidden" />
- <Image
- x:Name="imgCanvas"
- Height="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Focusable="True"
- MouseDown="PicEMap_MouseDown"
- MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown"
- MouseMove="imgCanvas_MouseMove"
- MouseUp="imgCanvas_MouseUp"
- RenderTransform="{StaticResource Imageview}"
- Stretch="Fill" />
- <!-- 四个点 -->
- <Canvas>
- <Thumb
- x:Name="RectLeftUp"
- Canvas.Left="314"
- Canvas.Top="157"
- Width="20"
- Height="20"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="White"
- BorderBrush="#3f6fff"
- BorderThickness="2"
- Cursor="SizeNWSE"
- DragCompleted="RectRightUp_DragCompleted"
- DragDelta="RectRightUp_DragDelta"
- DragStarted="RectRightUp_DragStarted"
- Visibility="Hidden" />
- <Thumb
- x:Name="RectRightUp"
- Canvas.Left="775"
- Canvas.Top="157"
- Width="20"
- Height="20"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="White"
- BorderBrush="#3f6fff"
- BorderThickness="2"
- Cursor="SizeNESW"
- DragCompleted="RectRightUp_DragCompleted"
- DragDelta="RectRightUp_DragDelta"
- DragStarted="RectRightUp_DragStarted"
- Visibility="Hidden" />
- <Thumb
- x:Name="RectLeftDown"
- Canvas.Left="314"
- Canvas.Top="508"
- Width="20"
- Height="20"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="White"
- BorderBrush="#3f6fff"
- BorderThickness="2"
- Cursor="SizeNESW"
- DragCompleted="RectRightUp_DragCompleted"
- DragDelta="RectRightUp_DragDelta"
- DragStarted="RectRightUp_DragStarted"
- Visibility="Hidden" />
- <Thumb
- x:Name="RectRightDown"
- Canvas.Left="775"
- Canvas.Top="508"
- Width="20"
- Height="20"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="White"
- BorderBrush="#3f6fff"
- BorderThickness="2"
- Cursor="SizeNWSE"
- DragCompleted="RectRightUp_DragCompleted"
- DragDelta="RectRightUp_DragDelta"
- DragStarted="RectRightUp_DragStarted"
- Visibility="Hidden" />
- </Canvas>
- </Grid>
- </Border>
- </Grid>
- <Image
- x:Name="imgDocumentation"
- Grid.RowSpan="2"
- Stretch="Fill"
- Visibility="Visible" />
- <Image
- x:Name="imgPPT"
- VerticalAlignment="Top"
- Visibility="Visible" />
- <!-- 导入图片 -->
- <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#3f6fff" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed" />-->
- <InkCanvas
- x:Name="blackboard_canvas"
- Grid.Row="0"
- Grid.RowSpan="2"
- Background="Transparent"
- Visibility="Collapsed" />
- <!-- 摄像头 -->
- </Grid>
- </ScrollViewer>
- <Image
- x:Name="imgPlayerLeft"
- Width="172"
- Height="124"
- Margin="10,7,10,10"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- RenderTransformOrigin="0.5,0.5"
- Source="./Images/microLessonSystem_17.png"
- Visibility="Collapsed">
- <Image.RenderTransform>
- <ScaleTransform ScaleX="-1" />
- </Image.RenderTransform>
- </Image>
- <Image
- x:Name="imgPlayerRight"
- Width="172"
- Height="124"
- Margin="10,7,26,10"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- RenderTransformOrigin="0.5,0.5"
- Source="./Images/microLessonSystem_17.png"
- Visibility="Collapsed">
- <Image.RenderTransform>
- <ScaleTransform ScaleX="-1" />
- </Image.RenderTransform>
- </Image>
- <Image
- x:Name="imgPlayerLeftUnder"
- Width="172"
- Height="124"
- Margin="10,7,10,10"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- RenderTransformOrigin="0.5,0.5"
- Source="./Images/microLessonSystem_17.png"
- Visibility="Collapsed">
- <Image.RenderTransform>
- <ScaleTransform ScaleX="-1" />
- </Image.RenderTransform>
- </Image>
- <Image
- x:Name="imgPlayerRightUnder"
- Width="172"
- Height="124"
- Margin="10,7,26,10"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- RenderTransformOrigin="0.5,0.5"
- Source="./Images/microLessonSystem_17.png"
- Visibility="Collapsed">
- <Image.RenderTransform>
- <ScaleTransform ScaleX="-1" />
- </Image.RenderTransform>
- </Image>
- <!--<Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0" />
- <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0" />
- <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0" />
- <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0" />-->
- </Grid>
- </Border>
- </Grid>
- <Grid Grid.Row="1" />
- <!-- 底部工具栏 -->
- <Grid
- x:Name="GridBottomToolbars"
- Grid.Row="2"
- Background="#FFFFFFFF"
- Visibility="Visible">
- <StackPanel
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <!-- 页码 -->
- <Grid
- x:Name="GridPage"
- Grid.Row="1"
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- Visibility="Collapsed">
- <StackPanel
- Grid.Row="0"
- Grid.Column="1"
- Width="220"
- Height="30"
- Margin="0,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="Transparent"
- Orientation="Horizontal">
- <Button
- x:Name="last_button"
- Width="28"
- Height="20"
- Click="last_button_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel>
- <Image
- Width="16"
- Height="12"
- Source=".\Images\class_p1.png" />
- </StackPanel>
- </Button>
- <Grid
- Width="60"
- Background="Transparent"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
- <StackPanel
- HorizontalAlignment="Center"
- Background="Transparent"
- Orientation="Horizontal">
- <TextBlock
- x:Name="txbCurrpage"
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize14}"
- Text="{Binding currpage}"
- TextAlignment="Center" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize14}"
- Text="/"
- TextAlignment="Center" />
- <TextBlock
- x:Name="txbTotalpage"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize14}"
- Text="{Binding pagenum}"
- TextAlignment="Center" />
- </StackPanel>
- </Grid>
- <Button
- x:Name="next_btn"
- Width="28"
- Height="20"
- Background="Transparent"
- Click="next_btn_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <StackPanel>
- <Image
- Width="16"
- Height="12"
- Source=".\Images\class_p2.png" />
- </StackPanel>
- </Button>
-
- <TextBlock
- Margin="0,0,3,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize14}"
- Text="转" />
- <!--<TextBox x:Name="txtJump" Text="123" Height="17" Width="25" Visibility="Visible" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0" input:InputMethod.IsInputMethodEnabled="False" PreviewTextInput="txtJump_PreviewTextInput" KeyDown="txtJump_KeyDown" />-->
- <!--<Button Cursor="Hand" Visibility="Visible" x:Name="BtnJumpPage" HorizontalAlignment="Left" VerticalAlignment="Center" Width="17" Height="17" Background="White" BorderBrush="#FFABADB3" Margin="24,0,0,0" Click="BtnJumpPage_Click">
- <Button.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="0" />
- <Setter Property="BorderBrush" Value="#3492F4" />
- </Style>
- </Button.Resources>
- <Image Source="/星火微课;component/Images/VideoList_OK.png" Margin="2,2,2,2"></Image>
- </Button>-->
-
- <ComboBox
- x:Name="CbxPageList"
- Width="55"
- Height="24"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- BorderThickness="1"
- Cursor="Hand"
- DisplayMemberPath="PageName"
- FontSize="{Binding WordSize14}"
- SelectedIndex="-1"
- SelectedValuePath="PageCode"
- SelectionChanged="CbxPageList_SelectionChanged">
- <ComboBox.Background>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
- <GradientStop Offset="0" Color="#FFF0F0F0" />
- <GradientStop Offset="1" Color="#FFE5E5E5" />
- </LinearGradientBrush>
- </ComboBox.Background>
- </ComboBox>
- <TextBlock
- Margin="3,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize14}"
- Text="页" />
- </StackPanel>
- </Grid>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- Margin="5,0,0,0"
- Padding="0,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize12}"
- Text="颜色: " />
- <Button
- x:Name="btnWhite"
- Width="20"
- Height="20"
- Margin="0,2,0,0"
- Background="#FFFFFF"
- Click="BtnWhite_Click"
- Cursor="Hand"
- Visibility="Collapsed" />
- <Border
- Width="20"
- Height="20"
- Margin="5,2,0,0"
- Background="#666666">
- <Button
- x:Name="btnRed"
- Width="20"
- Height="20"
- Margin="1,1,1,1"
- HorizontalAlignment="Center"
- Background="#FF0000"
- Click="BtnRed_Click"
- Cursor="Hand"
- Style="{StaticResource NoMouseOverButtonStyle}">
- <Image
- x:Name="imgRed"
- Width="12"
- Source=".\Images\microLessonSystem_999.png"
- Visibility="Visible" />
- </Button>
- </Border>
- <Border
- Width="20"
- Height="20"
- Margin="5,2,0,0"
- Background="#666666">
- <Button
- x:Name="btnGray"
- Width="20"
- Height="20"
- Margin="1,1,1,1"
- Background="#333333"
- Click="BtnGray_Click"
- Cursor="Hand"
- Style="{StaticResource NoMouseOverButtonStyle}">
- <Image
- x:Name="imgGray"
- Width="12"
- Source=".\Images\microLessonSystem_999.png"
- Visibility="Collapsed" />
- </Button>
- </Border>
- <Border
- Width="20"
- Height="20"
- Margin="5,2,0,0"
- Background="#666666">
- <Button
- x:Name="btnCyanBlue"
- Width="20"
- Height="20"
- Margin="1,1,1,1"
- Background="#63D600"
- Click="BtnCyanBlue_Click"
- Cursor="Hand"
- Style="{StaticResource NoMouseOverButtonStyle}">
- <Image
- x:Name="imgCyanBlue"
- Width="12"
- Source=".\Images\microLessonSystem_999.png"
- Visibility="Collapsed" />
- </Button>
- </Border>
- <Border
- Width="20"
- Height="20"
- Margin="5,2,0,0"
- Background="#666666">
-
- <Button
- x:Name="btnYellow"
- Width="20"
- Height="20"
- Margin="1,1,1,1"
- Background="#FFBC00"
- Click="BtnYellow_Click"
- Cursor="Hand"
- Style="{StaticResource NoMouseOverButtonStyle}">
-
- <Image
- x:Name="imgYellow"
- Width="12"
- Source=".\Images\microLessonSystem_999.png"
- Visibility="Collapsed" />
- </Button>
- </Border>
- <Border
- Width="20"
- Height="20"
- Margin="5,2,0,0"
- Background="#666666">
-
- <Button
- x:Name="btnBlue"
- Width="20"
- Height="20"
- Margin="1,1,1,1"
- Background="#00B4FC"
- Click="BtnBlue_Click"
- Cursor="Hand"
- Style="{StaticResource NoMouseOverButtonStyle}">
- <Image
- x:Name="imgBlue"
- Width="12"
- Source=".\Images\microLessonSystem_999.png"
- Visibility="Collapsed" />
- </Button>
- </Border>
- <TextBlock
- Margin="5,0,0,0"
- Padding="0,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize12}"
- Text="粗细: " />
- <RadioButton
- x:Name="rbnFine"
- Margin="0"
- VerticalAlignment="Center"
- Click="RbnFine_Click"
- Content=" 细"
- Cursor="Hand"
- FontSize="{Binding WordSize12}"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnIn"
- Margin="5,0,0,0"
- VerticalAlignment="Center"
- Click="RbnIn_Click"
- Content=" 中"
- Cursor="Hand"
- FontSize="{Binding WordSize12}"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnCrude"
- Margin="5,0,0,0"
- VerticalAlignment="Center"
- Click="RbnCrude_Click"
- Content=" 粗"
- Cursor="Hand"
- FontSize="{Binding WordSize12}"
- Style="{StaticResource radBase}" />
- </StackPanel>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- Padding="5,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize12}"
- Text="摄像头: " />
- <RadioButton
- x:Name="rbnOpen"
- Margin="0,0,0,0"
- VerticalAlignment="Center"
- Click="RbnOpen_Click"
- Content=" 开"
- Cursor="Hand"
- FontSize="{Binding WordSize12}"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnTurnOff"
- Margin="5,0,10,0"
- VerticalAlignment="Center"
- Click="RbnTurnOff_Click"
- Content=" 关"
- Cursor="Hand"
- FontSize="{Binding WordSize12}"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- <!-- 设置 955 -->
- <ScrollViewer
- x:Name="gridSetUp"
- VerticalScrollBarVisibility="Auto"
- Visibility="Collapsed">
- <Grid Height="650">
- <Grid Background="#FFFFFF">
- <Grid.RowDefinitions>
- <RowDefinition Height="146" />
- <RowDefinition Height="160*" />
- <RowDefinition Height="100*" />
- <RowDefinition Height="200*" />
- <RowDefinition Height="90*" />
- <RowDefinition Height="205*" />
- </Grid.RowDefinitions>
- <!-- 更换皮肤 h200 -->
- <Grid Grid.Row="0" Margin="100,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="20" />
- <RowDefinition Height="20" />
- <RowDefinition Height="140" />
- <RowDefinition Height="20" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1" Grid.Column="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="646*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="更换皮肤" />
- </Grid>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="207*" />
- <ColumnDefinition Width="207*" />
- <ColumnDefinition Width="207*" />
- <ColumnDefinition Width="120*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="80" />
- <RowDefinition Height="36" />
- </Grid.RowDefinitions>
- <Grid
- Grid.Row="0"
- Grid.Column="1"
- Margin="5,0">
- <Button
- x:Name="BtnSkinWhite"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Click="BtnSkinWhite_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <StackPanel>
- <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_White.png" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_White_MI.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Image
- x:Name="SkinSelectWhite"
- Margin="140,0,15,15"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Source="/SkinImages/Skin/Skin_Select.png" />
- </Grid>
- <Grid
- Grid.Row="0"
- Grid.Column="2"
- Margin="5,0">
- <Button
- x:Name="BtnSkinTechnologyBlue"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Click="BtnSkinTechnologyBlue_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <StackPanel>
- <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Image
- x:Name="SkinSelectTechnologyBlue"
- Margin="140,0,15,15"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Source="/SkinImages/Skin/Skin_Select.png"
- Visibility="Hidden" />
- </Grid>
-
- <Grid Grid.Row="1" Grid.Column="1">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="经典白" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="科技蓝" />
- </Grid>
-
- </Grid>
-
- <Label
- Grid.Row="3"
- Height="1"
- VerticalAlignment="Bottom"
- Background="#FFEFEFEF" />
- </Grid>
- <!-- 视频格式 摄像头位置 h200 -->
- <Grid Grid.Row="1" Margin="100,0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="215*" />
- <ColumnDefinition Width="215*" />
- <ColumnDefinition Width="216*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="20*" />
- <RowDefinition Height="60*" />
- <RowDefinition Height="60*" />
- <RowDefinition Height="20*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1" Grid.Column="0">
- <TextBlock
- Grid.Row="1"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="视频格式" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <StackPanel
- Margin="15,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton
- x:Name="rbnMP4"
- VerticalAlignment="Top"
- Content=" MP4"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnFLV"
- Margin="15,0,0,0"
- VerticalAlignment="Top"
- Content=" FLV"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Style="{StaticResource radBase}"
- Visibility="Collapsed" />
- <RadioButton
- x:Name="rbnAVI"
- Margin="15,0,0,0"
- Content=" AVI"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Style="{StaticResource radBase}"
- Visibility="Collapsed" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="摄像头位置" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="3">
- <!--<Grid.ColumnDefinitions>
- <ColumnDefinition Width="15*" />
- <ColumnDefinition Width="80*" />
- <ColumnDefinition Width="80*" />
- <ColumnDefinition Width="41*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="60*" />
- <RowDefinition Height="60*" />
- </Grid.RowDefinitions>-->
-
- <StackPanel
- Margin="15,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton
- x:Name="rbnRight"
- Margin="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 右上"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- GroupName="RbtnCamera"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnRightUnder"
- Margin="15,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 右下"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- GroupName="RbtnCamera"
- Style="{StaticResource radBase}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="3">
- <StackPanel
- Margin="15,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton
- x:Name="rbnLeft"
- Margin="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 左上"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- GroupName="RbtnCamera"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnLeftUnder"
- Margin="15,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 左下"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- GroupName="RbtnCamera"
- Style="{StaticResource radBase}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="录屏工具栏" />
- </Grid>
- <Grid Grid.Row="2" Grid.Column="1">
- <StackPanel
- Margin="15,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton
- x:Name="rbnHide"
- VerticalAlignment="Top"
- Content=" 隐藏"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnvisi"
- Margin="15,0,0,0"
- VerticalAlignment="Top"
- Content=" 显示"
- Cursor="Hand"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Style="{StaticResource radBase}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="2" />
- </Grid>
- <Label
- Height="1"
- VerticalAlignment="Bottom"
- Background="#FFEFEFEF" />
- </Grid>
- <!-- 地址修改 h305 -->
- <Grid Grid.Row="2" Margin="100,0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="430*" />
- <ColumnDefinition Width="215*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="20*" />
- <RowDefinition Height="60*" />
- <RowDefinition Height="20*" />
- </Grid.RowDefinitions>
- <!-- 地址 废弃2021年7月9日赵耀 -->
- <Grid Visibility="Collapsed" />
- <Grid Grid.Row="1" Grid.Column="0">
- <TextBlock
- Padding="0,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#333333"
- Text="文件路径" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <Grid>
- <Border
- Height="30"
- Margin="10,0,0,0"
- BorderBrush="#FFE3E3E3"
- BorderThickness="1"
- CornerRadius="1">
- <Label
- x:Name="txbStoragePath"
- Margin="10,0"
- Background="#FFFFFF"
- BorderBrush="{x:Null}"
- BorderThickness="0"
- Content="D:\"
- FontSize="{Binding WordSize14}"
- Foreground="#333333" />
- </Border>
- </Grid>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="76" />
- <ColumnDefinition Width="76" />
-
- </Grid.ColumnDefinitions>
- <!-- 浏览按钮 -->
- <Button
- x:Name="btnBrowse"
- Grid.Column="0"
- Width="66"
- Height="30"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="#3f6fff"
- Click="BtnBrowse_Click"
- Content="浏览"
- Cursor="Hand"
- FontSize="14"
- Foreground="#FFFFFF" />
- <!-- 打开按钮 -->
- <Button
- x:Name="btnOpen"
- Grid.Column="1"
- Width="66"
- Height="30"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="#3f6fff"
- Click="btnOpen_Click"
- Content="打开"
- Cursor="Hand"
- FontSize="14"
- Foreground="#FFFFFF" />
- </Grid>
- </Grid>
- <Label
- Height="1"
- VerticalAlignment="Bottom"
- Background="#FFEFEFEF" />
- </Grid>
- <!-- 版权 快捷键 版本号 h200 -->
- <Grid Grid.Row="3" Margin="100,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="215*" />
- <ColumnDefinition Width="215*" />
- <ColumnDefinition Width="215*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="20*" />
- <RowDefinition Height="60*" />
- <RowDefinition Height="60*" />
- <RowDefinition Height="60*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1" Grid.Column="0">
- <TextBlock
- Padding="0,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="录屏快捷键" />
- </Grid>
- <Grid
- Grid.Row="1"
- Grid.Column="1"
- Grid.ColumnSpan="3">
- <TextBlock
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="开始/暂停:Ctrl+F5 停止:Ctrl+S 退出讲评:鼠标右键" />
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="版权所有" />
- </Grid>
- <Grid
- Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="3">
- <TextBlock
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="河南星火燎原软件科技有限公司" />
- </Grid>
-
- <Grid Grid.Row="3" Grid.Column="0">
- <TextBlock
- x:Name="txbVersion"
- Margin="0,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="正式版" />
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1">
- <TextBlock
- x:Name="txbv"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize16}"
- Foreground="#FF666666"
- Text="V0.0.0" />
- </Grid>
- </Grid>
- <!-- 按钮 h50 -->
- <Grid Grid.Row="4" Margin="100,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="215*" />
- <ColumnDefinition Width="530*" />
- <ColumnDefinition Width="180*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="50*" />
-
- </Grid.RowDefinitions>
- <Grid Grid.Column="2">
- <!-- 保存 -->
- <Button
- x:Name="btnSave"
- Width="76"
- Height="30"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- Background="#3f6fff"
- Click="BtnSave_Click"
- Content="保存"
- Cursor="Hand"
- FontSize="14"
- Foreground="#FFFFFF" />
- </Grid>
-
- <Grid
- Grid.Row="0"
- Grid.Column="0"
- Visibility="Collapsed">
- <TextBlock
- Margin="0,30,0,0"
- HorizontalAlignment="Right"
- FontSize="16"
- Foreground="#333333"
- Text="设备"
- Visibility="Hidden" />
- <TextBlock
- x:Name="txbNotConnecteds"
- Margin="30,30,0,0"
- FontSize="14"
- Foreground="#333333"
- Text="未连接"
- Visibility="Hidden" />
-
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </ScrollViewer>
-
- <!-- 我的 -->
- <Grid
- x:Name="GridMyVideo"
- Margin="0"
- Background="White"
- Visibility="Collapsed">
- <Grid.RowDefinitions>
- <RowDefinition Height="905*" />
- <RowDefinition Height="50*" />
- </Grid.RowDefinitions>
- <Label
- x:Name="lblVideoMess"
- Grid.Row="0"
- Margin="0,0,0,100"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="暂无微课录制信息,请录制并等待保存完成后重试!"
- FontSize="20"
- Visibility="Hidden" />
- <Button
- x:Name="BtnVideoUpPage"
- Grid.Row="1"
- Width="60"
- Margin="0,0,150,12"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="{x:Null}"
- BorderBrush="{x:Null}"
- Click="BtnVideoUpPage_Click"
- Content="上一页"
- Cursor="Hand"
- FontSize="16"
- Foreground="#FF333333" />
- <Label
- x:Name="lblVideoPageNum"
- Grid.Row="1"
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Content="100/100"
- FontSize="14"
- Foreground="#FF333333" />
- <Button
- x:Name="BtnVideoDownPage"
- Grid.Row="1"
- Width="60"
- Margin="150,0,0,12"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="{x:Null}"
- BorderBrush="{x:Null}"
- Click="BtnVideoDownPage_Click"
- Content="下一页"
- Cursor="Hand"
- FontSize="16"
- Foreground="#FF333333" />
- </Grid>
- <!-- 打印 -->
- <Grid
- x:Name="GridPrintContent"
- Background="White"
- Visibility="Collapsed">
- <Grid.RowDefinitions>
- <RowDefinition Height="905*" />
- <RowDefinition Height="50*" />
- </Grid.RowDefinitions>
-
- <Grid Grid.Row="0">
- <Border BorderBrush="#FFDCDCDC" BorderThickness="1">
- <ScrollViewer VerticalScrollBarVisibility="Visible">
- <Image x:Name="imgPri" />
- </ScrollViewer>
- </Border>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
-
- <!-- 打印相关 -->
- <Border
- x:Name="GridPrintingTitle"
- Grid.Column="1"
- Width="446"
- Height="188"
- BorderBrush="#eeeeee"
- BorderThickness="1"
- Visibility="Collapsed">
- <Grid Background="#ffffff">
- <Grid.RowDefinitions>
- <RowDefinition Height="42" />
- <RowDefinition Height="*" />
- <RowDefinition Height="64" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Background="#3F6FFF">
- <TextBlock
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="White"
- Text="打印机" />
-
- <Button
- Grid.Row="0"
- Width="46"
- HorizontalAlignment="Right"
- VerticalAlignment="Stretch"
- Click="BtnPrintCloseClick"
- Content="×"
- Cursor="Hand"
- FontSize="30"
- Foreground="White" />
- </Grid>
- <Grid Grid.Row="1" Height="46">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Grid.Column="0"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Style="{DynamicResource TxbMesColor}"
- Text="打印机" />
-
- <ComboBox
- x:Name="cmbClass"
- Grid.Column="1"
- Height="36"
- Margin="10,0,10,0"
- HorizontalAlignment="Stretch"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Background="White"
- BorderThickness="0"
- Cursor="Hand"
- DisplayMemberPath="Value"
- FontSize="16"
- SelectedValuePath="Key"
- Style="{StaticResource stlComboBox}"
- Text="请选择" />
- </Grid>
-
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="30" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="86" />
- </Grid.ColumnDefinitions>
-
- <Image
- Grid.Column="0"
- Width="20"
- Height="20"
- Margin="10,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="./Images/shuoming.png" />
- <Button
- x:Name="btnPrintExplain"
- Grid.Column="1"
- Height="36"
- Margin="6,0,0,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Click="btnPrintExplain_Click"
- Content="打印说明"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Foreground="#3F6FFF"
- IsDefault="True" />
- <Button
- x:Name="btnPrint_Print"
- Grid.Column="3"
- Width="76"
- Height="30"
- Margin="0,0,10,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="#3F6FFF"
- Click="BtnPrint_Print_Click"
- Content="打印"
- Cursor="Hand"
- FontSize="{Binding WordSize14}"
- Foreground="White"
- IsDefault="True" />
- </Grid>
-
- </Grid>
-
- </Border>
-
- <Grid
- x:Name="GridPrintMask"
- Background="#4C000000"
- Visibility="Collapsed">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="15*" />
- <ColumnDefinition Width="70*" />
- <ColumnDefinition Width="15*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="35*" />
- <RowDefinition Height="100" />
- <RowDefinition Height="45*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1" Grid.Column="1">
- <Label
- x:Name="LabPrintMessage"
- Height="35"
- Margin="0,10,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Content="打印中..."
- FontSize="22"
- Foreground="#FFF9F7F7" />
- <ProgressBar
- x:Name="pgbProcess"
- Grid.Row="0"
- Height="20"
- Margin="50,20,50,0"
- BorderBrush="#4597FF"
- Foreground="#4597FF"
- Visibility="Visible" />
- <Label
- x:Name="lbProcess"
- Grid.Row="0"
- Width="60"
- Height="30"
- Margin="0,20,0,0"
- HorizontalAlignment="Center"
- Content=""
- FontSize="16"
- Foreground="White"
- Visibility="Visible" />
- </Grid>
- </Grid>
- </Grid>
- </Window>
|