Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

Updated Nine-Grid Sample

File Details
Downloads: 531 File Size: 6kB
Posted By: Anonymous Views: 5185
Date Added: 30 Nov 2006

Here's the latest version of my NineGrid element, along with a sample program that demonstrates how it works with both vector drawings and bitmap images.  The code hasn't changed much since it was posted here last month, but I've renamed the Padding property to BorderThickness, included comments, and added features to the sample application.

To use the NineGrid element, simply add the NineGrid.cs file to your project, make sure you have the proper namespace mapping in your XAML markup, then add a NineGrid element:

<Window
 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation
 xmlns:x
=http://schemas.microsoft.com/winfx/2006/xaml
 
xmlns:local="clr-namespace:NineGridSample">
    <local:NineGrid BorderThickness="40,40,40,40" Source="ShadowBorder.png"/>
</Window>

Enjoy!

--Eric Stollnitz

Filed under: , , ,
Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us