1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969 |
- <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="False"
-
- 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="18"
- 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="14"
- 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="18"
- Foreground="#FFFF0000"
- Text="00:00" />
- <TextBlock
- x:Name="TxbType"
- Margin="10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- 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="14"
- 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="14"
- 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="14"
- 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="14"
- 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="12"
- 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="16" />
- </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="16"
- 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="16"
- 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="16"
- 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="16"
- 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="16"
- 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="16"
- 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="16"
- 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>
-
- </Grid>
- </Border>
- </Grid>
- <Grid Grid.Row="1" />
- <!-- 底部工具栏 -->
- <Grid
- x:Name="GridBottomToolbars"
- Grid.Row="2"
- Background="#FFFFFFFF"
- Visibility="Visible">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="200"></ColumnDefinition>
-
- </Grid.ColumnDefinitions>
- <!-- 页码 -->
- <Grid
- x:Name="GridPage"
- Grid.Column="0"
- Grid.Row="0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- Visibility="Collapsed">
- <StackPanel
- Grid.Row="0"
- Grid.Column="1"
- Height="30"
- Margin="0,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Background="Transparent"
- Orientation="Horizontal">
-
- <Label Margin="5,0,0,0" Content="页码:" VerticalAlignment="Center" ></Label>
-
- <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="14"
- Text="{Binding currpage}"
- TextAlignment="Center" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- Text="/"
- TextAlignment="Center" />
- <TextBlock
- x:Name="txbTotalpage"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="14"
- 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>
-
- </StackPanel>
- </Grid>
- <StackPanel
- Margin="5"
- Grid.Column="1"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- Margin="5,0,0,0"
- Padding="0,0,0,0"
- VerticalAlignment="Center"
- FontSize="12"
- 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="12"
- Text="粗细: " />
- <RadioButton
- x:Name="rbnFine"
- Margin="0"
- VerticalAlignment="Center"
- Click="RbnFine_Click"
- Content=" 细"
- Cursor="Hand"
- FontSize="12"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnIn"
- Margin="5,0,0,0"
- VerticalAlignment="Center"
- Click="RbnIn_Click"
- Content=" 中"
- Cursor="Hand"
- FontSize="12"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnCrude"
- Margin="5,0,0,0"
- VerticalAlignment="Center"
- Click="RbnCrude_Click"
- Content=" 粗"
- Cursor="Hand"
- FontSize="12"
- Style="{StaticResource radBase}" />
- </StackPanel>
- <StackPanel
- Margin="5"
- Grid.Column="2"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- Padding="5,0,0,0"
- VerticalAlignment="Center"
- FontSize="12"
- Text="摄像头: " />
- <RadioButton
- x:Name="rbnOpen"
- Margin="0,0,0,0"
- VerticalAlignment="Center"
- Click="RbnOpen_Click"
- Content=" 开"
- Cursor="Hand"
- FontSize="12"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnTurnOff"
- Margin="5,0,10,0"
- VerticalAlignment="Center"
- Click="RbnTurnOff_Click"
- Content=" 关"
- Cursor="Hand"
- FontSize="12"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- </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="16"
- 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="16"
- Foreground="#333333"
- Text="经典白" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- 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="16"
- 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="16"
- Foreground="#333333"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnFLV"
- Margin="15,0,0,0"
- VerticalAlignment="Top"
- Content=" FLV"
- Cursor="Hand"
- FontSize="16"
- Foreground="#333333"
- Style="{StaticResource radBase}"
- Visibility="Collapsed" />
- <RadioButton
- x:Name="rbnAVI"
- Margin="15,0,0,0"
- Content=" AVI"
- Cursor="Hand"
- FontSize="16"
- Foreground="#333333"
- Style="{StaticResource radBase}"
- Visibility="Collapsed" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- 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="16"
- Foreground="#333333"
- GroupName="RbtnCamera"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnRightUnder"
- Margin="15,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 右下"
- Cursor="Hand"
- FontSize="16"
- 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="16"
- Foreground="#333333"
- GroupName="RbtnCamera"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnLeftUnder"
- Margin="15,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content=" 左下"
- Cursor="Hand"
- FontSize="16"
- Foreground="#333333"
- GroupName="RbtnCamera"
- Style="{StaticResource radBase}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- 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="16"
- Foreground="#333333"
- IsChecked="True"
- Style="{StaticResource radBase}" />
- <RadioButton
- x:Name="rbnvisi"
- Margin="15,0,0,0"
- VerticalAlignment="Top"
- Content=" 显示"
- Cursor="Hand"
- FontSize="16"
- 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="16"
- 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="14"
- 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="16"
- Foreground="#FF666666"
- Text="录屏快捷键" />
- </Grid>
- <Grid
- Grid.Row="1"
- Grid.Column="1"
- Grid.ColumnSpan="3">
- <TextBlock
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#FF666666"
- Text="开始/暂停:Ctrl+F5 停止:Ctrl+S 退出讲评:鼠标右键" />
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#FF666666"
- Text="版权所有" />
- </Grid>
- <Grid
- Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="3">
- <TextBlock
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="16"
- 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="16"
- Foreground="#FF666666"
- Text="正式版" />
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1">
- <TextBlock
- x:Name="txbv"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- FontSize="16"
- 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" />
- <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="14"
- Foreground="#3F6FFF"
- IsDefault="True" />
-
- <Button
- Grid.Column="3"
- Width="76"
- Height="30"
- Margin="0,0,10,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="#3F6FFF"
- Click="Print_No_Code_Click"
- Content="普通打印"
- Cursor="Hand"
- FontSize="12"
- Foreground="White"
- IsDefault="True" />
-
- <Button
- x:Name="btnPrint_Print"
- Grid.Column="4"
- Width="76"
- Height="30"
- Margin="0,0,10,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="#3F6FFF"
- Click="BtnPrint_Print_Click"
- Content="铺码打印"
- Cursor="Hand"
- FontSize="12"
- 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>
|