Click here to Skip to main content
15,881,248 members
Articles / Desktop Programming / WPF

Full Screen WPF Application with a Low-Level Keyboard Hook

Rate me:
Please Sign up or sign in to vote.
4.75/5 (29 votes)
26 Nov 2008CPOL7 min read 120.9K   3.1K   48  
This application displays shapes of random sizes and colors. It's perfect for babies and toddlers who love to sit and press away at the keyboard.
<Window x:Class="ShapeShow.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:ShapeShow"
    Title="ShapeShow" ResizeMode="NoResize" WindowStyle="None" WindowState="Maximized" Topmost="True">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <TextBlock Foreground="Gray" Grid.Row="0" Padding="10,0">Press Ctrl+Alt+O to show options.</TextBlock>
        <Canvas x:Name="DrawingSurface" Grid.Row="1" />
        <uc:OptionsControl x:Name="Options" Grid.RowSpan="2" Visibility="Collapsed" />
    </Grid>
    
</Window>

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
Software Developer
United States United States
Barry Dorman is a software engineer from the Birmingham, AL area. His primary focus is ASP.NET. Barry graduated with a BS in Electrical Engineering from The University of Alabama at Birmingham in 2006. Since then, he has kept himself busy working in the healthcare industry.

Comments and Discussions