Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - No notification when a DependencyProperty value has changed?

 
 
Old 06-28-2007   #1 (permalink)
fö


 
 

No notification when a DependencyProperty value has changed?

I am working on a FrameworkElement called Plot which has to dynamically
create TextBlocks. All of them should use the same font size, font family,
foreground and so on.

Instead of giving my plot class members which hold all these properties for
the text blocks I just want to have a single TextBlock as member. This
element is never added to the visual tree but serves as a property storage
medium and is used when new text blocks are created.

Now I want all my text blocks to be updated if some of the properties of the
"template" text block is changed. But no way. I do not get any notification
of that textblock if for example the font size is changed.

What is going wrong?

My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46