Click here to Skip to main content
15,891,316 members
Articles / Desktop Programming / WPF

WPF Grand Prix

Rate me:
Please Sign up or sign in to vote.
4.97/5 (110 votes)
14 Dec 2010CPOL10 min read 384.5K   6.3K   176  
An article showing how to create a race game using the powerful WPF capabilities
<UserControl x:Class="GrandPrix.UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="1000" d:DesignWidth="1000">
    <Grid>
        <Grid.RenderTransform>
            <ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
        </Grid.RenderTransform>
        <Path Stroke="Black" StrokeThickness="4" Data="M 460,364 L 631,306 C 631,306 640,303 634,295 L 614,270"/>
        <!--<Path Stroke="Red" StrokeThickness="4" Data="M 460,364 L 640,303"/>
        <Path Stroke="Green" StrokeThickness="4" Data="M 631,306"/>-->
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions