Click here to Skip to main content
15,891,316 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 121.5K   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.
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;

namespace ShapeShow.Library
{
    public interface IShape
    {
        /// <summary>
        /// A collection of points representing the shape
        /// </summary>
        PointCollection Points { get; }

        /// <summary>
        /// The height of the shape
        /// </summary>
        Double Height { get; set; }

        /// <summary>
        /// The width of the shape
        /// </summary>
        Double Width { get; set; }

        /// <summary>
        /// The topmost y-coordinate of the shape
        /// </summary>
        Double Top { get; set; }

        /// <summary>
        /// The leftmost x-coordinate of the shape
        /// </summary>
        Double Left { get; set; }

        /// <summary>
        /// The color of the inside of the shape
        /// </summary>
        Brush FillBrush { get; set; }

        /// <summary>
        /// The width of the shape stroke
        /// </summary>
        Double OutlineWidth { get; set; }

        /// <summary>
        /// The color of the shape stroke
        /// </summary>
        Brush OutlineBrush { get; set; }

        /// <summary>
        /// The UI element of the shape
        /// </summary>
        UIElement UIElement { get; }

    }
}

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