Image > XAML クイックリファレンス |
このトピックでは、C1Image コントロールの作成に使用される XAML の概要を提供します。
開発を開始するには、ルート要素タグに c1 名前空間宣言を追加します。
XAML |
コードのコピー
|
---|---|
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
|
次は、C1Imaging_Demo サンプルにある C1Image のサンプルです。
このサンプルの XAML は次のようになります。
XAML |
コードのコピー
|
---|---|
<UserControl x:Class="C1Imaging_Demo.DemoGifImage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1imaging="http://schemas.componentone.com/winfx/2006/xaml" Background="#FF374F5D"> <Grid x:Name="LayoutRoot" Background="Transparent"> <Path Height="200" Width="220" Stretch="Fill" Data="M 61.3431396484375,0 C61.3431396484375,0 80.2991943359375,38.40919494628906 80.2991943359375,38.40919494628906 80.2991943359375,38.40919494628906 122.686279296875,44.56840515136719 122.686279296875,44.56840515136719 122.686279296875,44.56840515136719 92.01470947265625,74.46580505371094 92.01470947265625,74.46580505371094 92.01470947265625,74.46580505371094 99.25527954101562,116.68159484863281 99.25527954101562,116.68159484863281 99.25527954101562,116.68159484863281 61.3431396484375,96.75 61.3431396484375,96.75 61.3431396484375,96.75 23.430999755859375,116.68159484863281 23.430999755859375,116.68159484863281 23.430999755859375,116.68159484863281 30.67156982421875,74.46580505371094 30.67156982421875,74.46580505371094 30.67156982421875,74.46580505371094 0,44.56840515136719 0,44.56840515136719 0,44.56840515136719 42.3870849609375,38.40919494628906 42.3870849609375,38.40919494628906 42.3870849609375,38.40919494628906 61.3431396484375,0 61.3431396484375,0 z" Fill="Black" Stroke="#FF8FB4CC" StrokeThickness="2.5" /> <c1imaging:C1Image x:Name="image" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="None" /> </Grid> </UserControl> |