WPF Control Explorer

WPF Control Explorer is a simple tool that allows you to explore the various built-in controls used in creating WPF desktop applications. The various properties, methods and events of each control can be easily discovered, together with the relevant .Net class name, member definitions and any static members that may be available on the properties.

The tool is a useful quick-reference when creating WPF applications, and can also be used to learn the various members of the native WPF controls.

wpf-controlexplorer

Download

Download the tool from here.  I usually like to release tools in an install-able MSI format, but I decided to release this one as a PowerShell script to allow customisation of the code.

Browsing Controls

Select any control from the Control drop-down box. The .Net class name will be displayed underneath.

Control Members

Select to view either the properties, methods or events defined in that control.

Filtering

Simply start typing in the filter box to filter your results.  For methods, you can also filter further by checking the relevant checkbox, such as all “add_” methods.

Definitions

Member definitions can be found underneath the member list box.  The definition shows you what type of data defines that member.  A bool type, for example, requires a boolean value of true or false.  Some definitions are other .Net classes, and you can search MSDN for that class name for more information on how that class is defined.

The {get;set} definition property shows you whether that property is read-only or can be set.

Static Properties

Some properties contain static members, ie there are certain values that can be used to define that property. The Visibility property is an example, where you can choose from Collapsed, Hidden or Visible, and these are displayed in the Static Properties box where appropriate.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s