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

June 2023
S M T W T F S
 123
45678910
11121314151617
18192021222324
252627282930  
« Sep    

Top Posts

  • #1,107 - Accessing an Embedded Resource Using a Uri
  • #220 - Using the Predefined Colors
  • Index
  • #1,215 - Binding a TreeView to a Hierarchical Data Source
  • #1,219 - Expanding All Nodes in a TreeView by Default
  • #223 - Predefined System Colors
  • #1,003 - Set CanContentScroll to False for Smooth Scrolling in a ListBox
  • #1,217 - Using Multiple HierarchicalDataTemplates in a TreeView
  • #210 - Specifying Colors in XAML As RGB Values
  • #351 - Binding a CheckBox's IsChecked Property to a Boolean Variable

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,217,721 hits

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 292 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...