2,000 Things You Should Know About WPF

Everything a WPF Developer Needs to Know, in Bite-Sized Chunks

  • Home
  • About
  • Index
Posts Comments
  • Controls
  • Layout
  • Events
  • Basics
  • Blend
  • Graphics
  • XAML
  • Miscellaneous
  • Dependency Properties
  • Visual Studio

#88 – Finding Metadata for WPF Types

October 8, 2010 Leave a comment

It’s often helpful to get metadata for WPF (or .NET CLR) types that you’re working with.  You could use the ILDASM tool to open the DLL containing the type in question, but this requires knowing what DLL the type is located in.

An easier way is to right-click on the type and select Go To Definition.  The example below shows doing this for a button’s Background property–we right-click on the Background property.

The window that comes up shows metadata for the System.Windows.Controls.Control class because that’s the class from which Button inherits its’ Background property.  Note that you can expand on the property to get a description.

Also note that if you scroll to the top of the window, you can see the parent class (Control) and the assembly that the Control class is located in (PresentationFramework.dll).

Advertisement

Filed under Visual Studio Tagged with Go To Definition, WPF Metadata

Sean Sexton

Recent Posts

  • #1,219 – Expanding All Nodes in a TreeView by Default
  • #1,218 – Stretching Items in TreeView across Entire Control
  • #1,217 – Using Multiple HierarchicalDataTemplates in a TreeView
  • #1,216 – Creating a Custom ItemTemplate in a TreeView
  • #1,215 – Binding a TreeView to a Hierarchical Data Source

Blogroll

  • 2,000 Things You Should Know About C#
  • Britannica Geek
  • Sean on Twitter
  • Sean's Stuff

Calendar

October 2010
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Sep   Nov »

Top Posts

  • #220 - Using the Predefined Colors
  • #351 - Binding a CheckBox's IsChecked Property to a Boolean Variable
  • #210 - Specifying Colors in XAML As RGB Values
  • #1,219 - Expanding All Nodes in a TreeView by Default
  • #1,204 - Using a DataTrigger to Change Content in a ContentPresenter
  • #1,107 - Accessing an Embedded Resource Using a Uri
  • Index
  • #989 - Enabling Live Filtering in a CollectionViewSource
  • #920 - TextBox Sizes to Fit Its Content
  • #436 - Using a Drop Shadow with a Border

Tags

Application Background Basics Binding Blend Border Brush Button Calendar Canvas CheckBox Color Colors ComboBox Commands ContentControl Controls Cursor Data Binding Dependency Properties Dependency property DockPanel Drag-and-Drop Events Expander FlowDocument Focus Fonts FrameworkElement Gradient Graphics Grid GridSplitter GroupBox HorizontalAlignment Image InkCanvas Input ItemsControl Keyboard Keyboard Focus KeyDown KeyUp Layout LinearGradientBrush ListBox Localization Manipulation Margin Measure Miscellaneous Mouse Panel Popup Radial Gradient Resources Routed Events ScrollViewer Shape Slider StackPanel TabControl Text TextBlock TextBox Tooltip Touch Input Transforms UIElement Visual Studio Window Windows WPF WrapPanel XAML

Blog Stats

  • 5,182,278 hits

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • 2,000 Things You Should Know About WPF
    • Join 291 other followers
    • Already have a WordPress.com account? Log in now.
    • 2,000 Things You Should Know About WPF
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...