473,503 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dependency Properties...

I came across a code sample in a book that I am reading that uses a
dependency property. I looked at some of the documentation for dependency
properties but, for some reason, the concept is not clicking. Can anyone
provide an simple explanation of what they are and why I need them or point
me to some good articles? By the way, the code sample uses one dependency
property and other "normal" properties so the question is why is the one a
dependency property while the others are not? What are the advantages and
disadvantages?

Thank you,

Jason Richmeier
Apr 20 '07 #1
1 1670

Please give an example of the context where you're reading it, and someone
might be able to give you more information.

I know of dependency properties from WPF. Here's an example: You have a
window with a content of a docking panel that has six buttons in it, and
you want to change the font on all the buttons. Changing the font of the
window will change the font of the docking panel and the button --it does
it all the way down. If you then change the font of one of the buttons
specifically, it will retain that setting even if you once again change the
font of the window.

Robin S.
--------------------------------------
"Jason Richmeier" <Ja************@discussions.microsoft.comwrote in
message news:67**********************************@microsof t.com...
>I came across a code sample in a book that I am reading that uses a
dependency property. I looked at some of the documentation for
dependency
properties but, for some reason, the concept is not clicking. Can anyone
provide an simple explanation of what they are and why I need them or
point
me to some good articles? By the way, the code sample uses one
dependency
property and other "normal" properties so the question is why is the one
a
dependency property while the others are not? What are the advantages
and
disadvantages?

Thank you,

Jason Richmeier

Apr 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18567
by: Mark A. Richman | last post by:
Does anyone know of a tool, similar to Depends.exe (Dependency Walker) for ..NET assemblies? I'm looking for a way to report on inter-assembly dependencies. Maybe a Visio plugin that would help map...
5
4008
by: Jay A. Moritz | last post by:
Error: The dependency '<my dll>' in project '<my project>' cannot be copied to the run directory because it would conflict with dependency '<my dll>'. I am getting a dependency error building...
3
7178
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
0
2645
by: SpockMonster | last post by:
Our solution contains multiple projects, such as: 1 Web project 3 library projects that contain Serviced Components 7 library projects that do not contain Servicded Components Long ago, a...
11
16177
by: phnimx | last post by:
I've completed migrating one of our company's C++ Managed Code applications to VS2005. I'm now attempting to run the application but there seems to be problems when accessing an object that is...
8
1361
by: Sonali | last post by:
Hi, I am new to this group. I am working on a peice of code which is like: 1 windows class library project which needs a startup project (exe generated by other project). It references this exe...
6
1786
by: asadikhan | last post by:
Hello, I have a bit of a design issue around this application I am developing, and I just want to run it through some of the brains out here. So I have a table called ErrorCheck which...
5
2943
by: fomas87 | last post by:
Hi guys, I'm writing a framework for an sdl gui in c++, but got stuck on the circular dependency, I've read a lot of articles about resolving dependencies and about forward declaration but none of...
2
1409
by: Anonieko | last post by:
Pigsaw said... "You don't want to hard code dependencies into your classes, because then you can't test them without relying on the dependent classes. So you "inject" those dependencies simply...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.