![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Custom Dependency Property in custom class hierarchy not workingcorrectly?! Hi everybody, I got a question on DPs. I want to provide 3 kinds of custom panels. Each panel has functionality and properties which are in common so I decided to implement a class hierarchy. On the base class (BasePanel) I register two dependency properties and implement the concerning CLR accessors. Now, I want to use a DataBinding in XAML on one of the derived classes. I want to bind to an object of, let's say, SpecialPanel1 --> there I want to bind to a DP which was introduced in the base class. There are no compiler errors and the app is runniung but nothing happens on the value of the DP: BasePanel (with custom DPs) | | --------------------------- ....... | | SpecialPanel1 SpecialPanel2 ....... a.s.o. in XAML: <SpecialPanel1 DP_inherited_from_BasePanel={Binding .....} /> The value of DP_inherited_from_BasePanel is not touched! What's wrong? I mean, Control also declares DPs which are used by derived classes ?! Thanks a lot. Chris |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 | azerty | Avalon | 0 | 04-14-2008 06:14 AM |
| Binding to a custom dependency property | diffeq | Avalon | 1 | 07-02-2007 01:42 PM |
| Binding to custom class, no updates back to UI | Debbus | Avalon | 0 | 03-16-2007 02:26 PM |
| Does the dependency property inheritance mechanism only work between class and subclasses ? | Pon | Avalon | 4 | 12-03-2006 04:39 AM |
| Custom Dependency Property and Binding | CSkinner | Avalon | 3 | 01-10-2006 03:53 PM |