星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

UCCamera.xaml 1.1KB

4 anos atrás
12345678910111213141516171819202122
  1. <Window x:Class="XHWK.WKTool.UCCamera"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  8. xmlns:aforge ="clr-namespace:AForge.Controls;assembly=AForge.Controls"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800"
  11. Title="UCCamera">
  12. <Grid>
  13. <wfi:WindowsFormsHost Grid.Row="0" Grid.Column="0" Height="200" Width="300">
  14. <aforge:VideoSourcePlayer x:Name="player" Height="200" Width="300"/>
  15. </wfi:WindowsFormsHost>
  16. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
  17. <Button Name="btnOpenCamera" Click="btnOpenCamera_Click">打开摄像头</Button>
  18. <Button x:Name="btnDown" Click="btnDown_Click" Content="关闭摄像头"/>
  19. </StackPanel>
  20. </Grid>
  21. </Window>