This project is read-only.

XAML Sample 1

This sample demonstrates:
  • Basic functionality
  • Simple binding
  • Value property converters, e.g. DesiredSize, Color, float, boolean, enum, Padding
<?xml version="1.0" encoding="utf-8" ?>
<DrawingPanel 
  xmlns="http://mobileui.codeplex.com/v1" 
  DesiredSize="Unbound">

  <GradientRectangleElement DesiredSize="Unbound" StartColor="240,240,240" EndColor="0,80,200"/>

  <TextElement DesiredSize="400,500" Foreground="200,200,200" Text="Demo" Angle="315" AutoSize="True" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  
  <DrawingPanel DesiredSize="Unbound" Background="{null}">
    <DrawingPanel.LayoutEngine>
      <StackLayout Margin="8,4" Padding="4"/>
    </DrawingPanel.LayoutEngine>

    <ButtonBar Text="Animations" SecondaryText="Animate properties of graph primitives" DesiredSize="UnboundAxis, 80" Background="{null}"/>
    <ButtonBar Text="Trasitions" SecondaryText="Optimized bitmap animations" DesiredSize="UnboundAxis, 80" Background="{null}"/>
    <ButtonBar Text="Primitives" SecondaryText="Polygon, Ellipse, Image, Text" DesiredSize="UnboundAxis, 80" Background="{null}" />
    <NavigationButtonBar Text="Behaviours" SecondaryText="Drag with slide" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding DragDemoCommand}"/>
    <NavigationButtonBar Text="Layout" SecondaryText="Stack, Wrap and Radial" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding LayoutDemoCommand}"/>

  </DrawingPanel>

</DrawingPanel>

Last edited Nov 2, 2009 at 12:16 AM by spencen, version 4

Comments

No comments yet.