<UserControl x:Class="SilverlightTestPage.Page" xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300" xmlns:System="clr-namespace:System;assembly=mscorlib"> <Grid x:Name="LayoutRoot" Background="White"> <Rectangle Height="51" VerticalAlignment="Top" Fill="#FF0F36E2" Stroke="#FF000000"/> <Rectangle Height="2" HorizontalAlignment="Right" Margin="0,0,8,0" VerticalAlignment="Bottom" Width="0" Fill="#FF0F36E2" Stroke="#FF000000"/> <TextBlock Height="32" Margin="53,8,126,0" VerticalAlignment="Top" Text="Automation Demo" TextWrapping="Wrap"/> <Grid HorizontalAlignment="Left" Margin="0,51,0,0" Width="80" Background="#FF904F4F"> <Button x:Name="myButton1" Background="#FF339529" Height="40" Margin="8,27,8,0" VerticalAlignment="Top" Content="Click Me " Click="myButton1_Click"> <Button.BorderBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFA3AEB9"/> <GradientStop Color="#FF8399A9" Offset="0.375"/> <GradientStop Color="#FF718597" Offset="0.375"/> <GradientStop Color="#FF4DACF3" Offset="1"/> </LinearGradientBrush> </Button.BorderBrush> </Button> </Grid> <TextBlock HorizontalAlignment="Left" Margin="0,134,0,147" Width="80" Text="ComboBox1" TextWrapping="Wrap"/> <ComboBox x:Name="myCombo1" Height="19" HorizontalAlignment="Left" Margin="0,0,0,114" VerticalAlignment="Bottom" Width="72"> <System:String>String1</System:String> <System:String>String2</System:String> </ComboBox> <CheckBox x:Name="myCheck1" Height="19" HorizontalAlignment="Left" Margin="8,0,0,61" VerticalAlignment="Bottom" Width="20" Content="CheckBox"/> <TextBlock Height="26" HorizontalAlignment="Left" Margin="0,0,0,84" VerticalAlignment="Bottom" Width="72" Text="Checkbox1" TextWrapping="Wrap"/> <RadioButton x:Name="myRadio1" Height="15" HorizontalAlignment="Left" Margin="112,91,0,0" VerticalAlignment="Top" Width="17" Content="RadioButton"/> <TextBlock Height="21" HorizontalAlignment="Left" Margin="93,66,0,0" VerticalAlignment="Top" Width="84" Text="radiobutton1" TextWrapping="Wrap"/> <TextBox x:Name="myTextBox1" Margin="102,134,126,132" Text="Put Some Text Here" TextWrapping="Wrap"/> <TextBlock x:Name="myTextBlock1" Height="45" Margin="112,0,51,39" VerticalAlignment="Bottom" Text="TextBlock" TextWrapping="Wrap"/> </Grid></UserControl>
|