<Window x:Class="PaddingBall.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Padding Ball v1.0" Height="500"
Width="700" Background="Gray"
Name="playground" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen" SizeToContent="Manual">
<Canvas Width="700" Height="500">
<Menu VerticalAlignment="Top" HorizontalAlignment="Left"
Height="20" Width="700"
Background="AliceBlue" Foreground="Blue">
<MenuItem Header="File">
<MenuItem Header="Start Game"
Background="AliceBlue" Click="StartGame"></MenuItem>
<MenuItem Header="Exit" Background="AliceBlue"
Click="ExitGame"></MenuItem>
</MenuItem>
<MenuItem Header="About"
Click="ShowAboutBox"></MenuItem>
</Menu>
<Grid Height="462" Width="700">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="700*" />
<ColumnDefinition Width="0*" />
<ColumnDefinition Width="0*" />
</Grid.ColumnDefinitions>
<Rectangle Margin="114,132,0,0" Name="ball"
Stroke="Black" RadiusX="120" RadiusY="120"
Fill="Blue" Height="38" VerticalAlignment="Top"
Stretch="UniformToFill"
HorizontalAlignment="Left" Width="38">
<Rectangle.BitmapEffect>
<BevelBitmapEffect BevelWidth="11" />
</Rectangle.BitmapEffect>
<Rectangle.BitmapEffectInput>
<BitmapEffectInput />
</Rectangle.BitmapEffectInput>
</Rectangle>
<Rectangle Height="13" Margin="200,390,0,0"
Name="pad" Stroke="Black" VerticalAlignment="Bottom"
Fill="Black" HorizontalAlignment="Left" Width="100" />
</Grid>
</Canvas>
</Window>
Output:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Padding Ball v1.0" Height="500"
Width="700" Background="Gray"
Name="playground" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen" SizeToContent="Manual">
<Canvas Width="700" Height="500">
<Menu VerticalAlignment="Top" HorizontalAlignment="Left"
Height="20" Width="700"
Background="AliceBlue" Foreground="Blue">
<MenuItem Header="File">
<MenuItem Header="Start Game"
Background="AliceBlue" Click="StartGame"></MenuItem>
<MenuItem Header="Exit" Background="AliceBlue"
Click="ExitGame"></MenuItem>
</MenuItem>
<MenuItem Header="About"
Click="ShowAboutBox"></MenuItem>
</Menu>
<Grid Height="462" Width="700">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="700*" />
<ColumnDefinition Width="0*" />
<ColumnDefinition Width="0*" />
</Grid.ColumnDefinitions>
<Rectangle Margin="114,132,0,0" Name="ball"
Stroke="Black" RadiusX="120" RadiusY="120"
Fill="Blue" Height="38" VerticalAlignment="Top"
Stretch="UniformToFill"
HorizontalAlignment="Left" Width="38">
<Rectangle.BitmapEffect>
<BevelBitmapEffect BevelWidth="11" />
</Rectangle.BitmapEffect>
<Rectangle.BitmapEffectInput>
<BitmapEffectInput />
</Rectangle.BitmapEffectInput>
</Rectangle>
<Rectangle Height="13" Margin="200,390,0,0"
Name="pad" Stroke="Black" VerticalAlignment="Bottom"
Fill="Black" HorizontalAlignment="Left" Width="100" />
</Grid>
</Canvas>
</Window>
Output:
No comments:
Post a Comment