473,569 Members | 2,683 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 1678

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.mi crosoft.comwrot e in
message news:67******** *************** ***********@mic rosoft.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
18575
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 out dependencies without littering the UI with properties, methods, etc? Thanks, Mark
5
4013
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 my application that was using some other namespaces that I had built and incorrectly referenced to the dll instead of the project, but I ended up...
3
7186
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 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib'...
0
2649
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 previous project member created a file chose to name "AssemblyCommonInfo.vb" in the SOlution root, and placed a link to this in every project (except the...
11
16196
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 properly exported from a utility dll of ours. The dll is written in MFC with sections of C++ Managed Code. The dll exports its objects in the same...
8
1373
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 and lots of other dll's. These dll's and exe are located in our clearcase VOBs, though I have a local copy of them which I reference from my project....
6
1792
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 contains fields ErrorID (PK) and ErrorName. There is another table called Client which contains fields ClientID (PK) and ClientName. Then there is a...
5
2951
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 them seem to work for me. Basically I've got the Component abstract class which is the base class for all elements like Buttons, Labels, CheckBoxes,...
2
1411
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 by setting them as properties - possibly in the constructor, possibly with setter methods. And it becomes all the easier if you have a little...
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.