form.xaml
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Test Expression" Height="375" Width="525"> <Grid> <Grid HorizontalAlignment="Left" Height="375" Margin="-4,0,-2.333,-29.333" VerticalAlignment="Top" Width="525"> <Button x:Name="btnRun" Content="_Run" HorizontalAlignment="Left" Margin="298,242,0,0" VerticalAlignment="Top" Width="75"/> <Button x:Name="btnQuit" Content="_Quit" HorizontalAlignment="Left" Margin="399,242,0,0" VerticalAlignment="Top" Width="75"/> <TextBox x:Name="txtScriptBlock" HorizontalAlignment="Left" Height="74" Margin="14,34,0,0" TextWrapping="Wrap" AcceptsReturn = "true" VerticalAlignment="Top" Width="249" FontFamily="Consolas" Background="#FFD6CCCC"/> <Label x:Name="label" Content="Enter code for your scriptblock" HorizontalAlignment="Left" Height="26" Margin="12,10,0,0" VerticalAlignment="Top" Width="188"/> <TextBlock x:Name="tbResults" HorizontalAlignment="Left" Height="140" Margin="18,177,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="246" FontFamily="Consolas" Background="#FFE6E6EC"/> <Label x:Name="label1" Content="Test Count" HorizontalAlignment="Left" Margin="281,12,0,0" VerticalAlignment="Top"/> <TextBox x:Name="txtCount" HorizontalAlignment="Left" Height="21" Margin="361,16,0,0" TextWrapping="Wrap" Text="1" VerticalAlignment="Top" Width="31" ToolTip="How many tests do you want to run?"/> <GroupBox x:Name="groupBox" Header="Test Interval" HorizontalAlignment="Left" Margin="284,49,0,0" VerticalAlignment="Top" Height="150" Width="197"> <RadioButton x:Name="radioStatic" Content="Static" HorizontalAlignment="Left" Margin="13,7,0,0" VerticalAlignment="Top" IsChecked="True" GroupName="Interval"/> </GroupBox> <RadioButton x:Name="radioRandom" Content="Random" HorizontalAlignment="Left" Margin="303,125,0,0" VerticalAlignment="Top" GroupName="Interval"/> <Label x:Name="label3" Content="Minimum" HorizontalAlignment="Left" Margin="299,140,0,0" VerticalAlignment="Top"/> <Label x:Name="label4" Content="Maximum" HorizontalAlignment="Left" Margin="300,166,0,0" VerticalAlignment="Top"/> <Slider x:Name="sliderStatic" HorizontalAlignment="Left" Margin="303,96,0,0" VerticalAlignment="Top" Height="28" Width="174" Maximum="60" Minimum="0.5" SmallChange="0.5" Value="0.5" ToolTip="Select a value in seconds up to 60" AutoToolTipPlacement="BottomRight"/> <TextBox x:Name="txtMin" HorizontalAlignment="Left" Height="23" Margin="377,144,0,0" TextWrapping="Wrap" Text="Min" VerticalAlignment="Top" Width="40" ToolTip="the mininum number of seconds"/> <TextBox x:Name="txtMax" HorizontalAlignment="Left" Height="23" Margin="378,171,0,0" TextWrapping="Wrap" Text="Max" VerticalAlignment="Top" Width="40" ToolTip="the maximum number of seconds"/> <Label x:Name="label2" Content="Arguments" HorizontalAlignment="Left" Margin="13,108,0,0" VerticalAlignment="Top"/> <TextBox x:Name="txtArguments" HorizontalAlignment="Left" Height="23" Margin="15,134,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="244" ToolTip="enter a comma separated list of arguments"/> <Label x:Name="label5" Content="Results" HorizontalAlignment="Left" Margin="13,154,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.186,0.523"/> </Grid> </Grid> </Window> |