Click here to Skip to main content
15,880,608 members
Articles / Desktop Programming / WPF

WPF: A Beginner's Guide - Part 4 of n

Rate me:
Please Sign up or sign in to vote.
4.69/5 (141 votes)
11 Mar 2008CPOL17 min read 281.8K   3.8K   280  
An introduction into WPF Dependancy Properties.
<?xml version="1.0"?>
<doc>
<assembly>
<name>
Attached_Properties_DPs
</name>
</assembly>
<members>
<member name="M:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper.CreateInstance(System.Type,System.Globalization.CultureInfo)">
	<summary>
CreateInstance
</summary>
</member><member name="M:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper.GetPropertyValue(System.Reflection.PropertyInfo,System.Object,System.Globalization.CultureInfo)">
	<summary>
GetPropertyValue
</summary>
</member><member name="M:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper.SetPropertyValue(System.Reflection.PropertyInfo,System.Object,System.Object,System.Globalization.CultureInfo)">
	<summary>
SetPropertyValue
</summary>
</member><member name="M:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper.CreateDelegate(System.Type,System.Object,System.String)">
	<summary>
CreateDelegate
</summary>
</member><member name="M:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper.AddEventHandler(System.Reflection.EventInfo,System.Object,System.Delegate)">
	<summary>
AddEventHandler
</summary>
</member><member name="T:Attached_Properties_DPs.XamlGeneratedNamespace.GeneratedInternalTypeHelper">
	<summary>
GeneratedInternalTypeHelper
</summary>
</member><member name="M:Attached_Properties_DPs.Application.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="M:Attached_Properties_DPs.Application.Main">
	<summary>
Application Entry Point.
</summary>
</member><member name="T:Attached_Properties_DPs.Application">
	<summary>
Application
</summary>
</member><member name="M:Attached_Properties_DPs.Window1.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="T:Attached_Properties_DPs.Window1">
	<summary>
Window1
</summary>
</member><member name="M:Attached_Properties_DPs.AttachedPropertyChildAdder.IsMasterHeaderAppliedChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">
	<summary> 
 Is called whenever a user of the IsMasterHeaderApplied Attached DP changes 
 the IsMasterHeaderApplied DP value 
 </summary>
	<param name="obj"></param>
	<param name="args"></param>
</member><member name="M:Attached_Properties_DPs.AttachedPropertyChildAdder.wnd_Loaded(System.Object,System.Windows.RoutedEventArgs)">
	<summary> 
 Hook into the Window load event to replace the Content of the Window 
 with some custom Content, to show case exactly how cool DPs are. 
 
 In this example we are going to create a header for the Window. 
 
 So setting the IsMasterHeaderApplied will make sure the Window 
 gets a header applied. 
 
 Kind of like Master Pages in ASP .NET 
 </summary>
</member><member name="T:Attached_Properties_DPs.AttachedPropertyChildAdder">
	<summary> 
 A simply show case, to demonstrate a usage of an attached DP property. 
 This example lets Windows add a header portion to the their default content 
 with some new Contents. Kind of like using Master Pages in ASP .NET 
 </summary>
</member><member name="P:Attached_Properties_DPs.My.MyWpfExtension.Application">
	<summary>
 Returns the application object for the running application
 </summary>
</member><member name="P:Attached_Properties_DPs.My.MyWpfExtension.Computer">
	<summary>
 Returns information about the host computer.
 </summary>
</member><member name="P:Attached_Properties_DPs.My.MyWpfExtension.User">
	<summary>
 Returns information for the current user.  If you wish to run the application with the current 
 Windows user credentials, call My.User.InitializeWithWindowsUser().
 </summary>
</member><member name="P:Attached_Properties_DPs.My.MyWpfExtension.Log">
	<summary>
 Returns the application log. The listeners can be configured by the application's configuration file.
 </summary>
</member><member name="P:Attached_Properties_DPs.My.MyWpfExtension.Windows">
	<summary>
 Returns the collection of Windows defined in the project.
 </summary>
</member><member name="T:Attached_Properties_DPs.My.MyWpfExtension">
	<summary>
 Module used to define the properties that are available in the My Namespace for WPF
 </summary>
	<remarks></remarks>
</member>
</members>
</doc>

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 (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)

- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence

Both of these at Sussex University UK.

Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2016
  • Codeproject MVP 2016
  • Microsoft C# MVP 2015
  • Codeproject MVP 2015
  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

Comments and Discussions