Image > XAML Quick Reference |
This topic is dedicated to providing a quick overview of the XAML used to create a C1Image control.
To get started developing, add a c1 namespace declaration in the root element tag:
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
Here is a sample C1Image from the C1Imaging_Demo sample:
Below is the XAML for the sample:
XAML |
Copy Code
|
---|---|
<UserControlx: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"> <Gridx:Name="LayoutRoot"Background="Transparent"> <PathHeight="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:C1Imagex:Name="image"VerticalAlignment="Center"HorizontalAlignment="Center"Stretch="None" /> </Grid> </UserControl> |