星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 4 година
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>