-
StackOverflow 文档
-
wpf 教程
-
支持视频流和像素阵列分配到图像控件
-
XAML 用法
<UserControl x:Class="Example.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:b="clr-namespace:MyBehaviorAssembly;assembly=MyBehaviorAssembly"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
mc:Ignorable="d"
d:DesignHeight="200" d:DesignWidth="200"
>
<Image Stretch="Uniform">
<i:Interaction.Behaviors>
<b:PixelSupportBehavior
PixelHeight="{Binding PixelHeight}"
PixelWidth="{Binding PixelWidth}"
PixelFormat="{Binding PixelFormat}"
Pixels="{Binding Pixels}"
/>
</i:Interaction.Behaviors>
</Image>
</UserControl>