Use the Code: WRAC11
Ever want to make clouds and then use them in your phone app? Here is a quick way to use Expression Design (or a similar tool you know how to use) to make clouds. We will then change the clouds into a Usercontrol and then use it in Blend. Once the code is in Blend, then a quick examination of the XAML. Finally we will run it on the WP7 Emulator!
Let’s get started!
In Expression Design Expression Design Not Expression Blend
Select the New Menu and then New document. Make the canvas small, maybe 100 width by 100 height
Canvas x:Name="ContentPanel" Margin="12,0,12,0" Grid.Row="1" > <local:ucCloud Height="84" Canvas.Left="51" Canvas.Top="62" Width="152"/> <local:ucCloud Height="47" Canvas.Left="271" Canvas.Top="32" Width="55"/> <local:ucCloud Height="35" Canvas.Left="262" Canvas.Top="111" Width="64"/> <local:ucCloud Height="50" Canvas.Left="367" Canvas.Top="62" Width="48"/> <local:ucCloud Height="41" Canvas.Left="164" Canvas.Top="17" Width="66"/> </Canvas>
<Grid x:Name="LayoutRoot" Background="Transparent"> <Image Source="Cloud.png" Stretch="Fill"/> </Grid>
Well that It’s, we have covered how to use Expression Design, Use Expression Blend to make a user control (previously we used Expression Design) and then discussed the XAML that was generated. No C# code was generated or written.
Take a look at my other blogs: