DotNetShoutout - Stories tagged with Dependency Property
3
Shouts

Internals of Dependency Property in WPF

posted by abhi2434abhi2434 690 days, 20 hours, 32 minutes ago
Sunday, July 31, 2011 12:17:49 AM GMT
WPF introduces new property system to us. Every WPF objects that is inherited from DependencyObject inherently supports Dependency property containers within it. That means you can define your own dependency property in your code which can take part in some of the interesting features of WPF like Binding, Styles, Triggers, Animation, Property Inheritence etc. Today I will concentrate on how Dependency Property system is actually built and what are the benefits we get instead of using CLR property system.... (more)
category: How To | clicked: 15 | comment | | source: www.abhisheksur.com
tags: C#, Dependency Property, WPF, internals
4
Shouts

Execute a command on a specified control when clicking on a button

published 1099 days, 7 hours, 14 minutes ago posted by jmix90jmix90 1100 days, 7 hours, 15 minutes ago
Thursday, June 17, 2010 1:36:18 PM GMT Wednesday, June 16, 2010 1:34:47 PM GMT
Today another example of the powerful ramora pattern : execute a RoutedCommand on an Control when you click on a button outside of the aimed control scope. Our implementation will also show *how we can apply the "Weak Events pattern" with the dependency property trick *(attached property / ramora pattern). And of course this example can be adapted to subscribe on any event you wants and not only the click of a button. (more)
category: Smart Client | clicked: 4 | comment | | source: blog.lexique-du-net.com
tags: tricks, Command, Attached behavior, How-To, routed commands, Dependency Property, WPF, how to, Behavior, How, Tips, Tips & Tricks.
6
Shouts

Binding on a Property which is not a DependencyProperty

published 1171 days, 11 hours, 11 minutes ago posted by jmix90jmix90 1172 days, 8 hours ago
Tuesday, April 06, 2010 9:38:53 AM GMT Monday, April 05, 2010 12:50:01 PM GMT
A lot of controls expose properties which are not DependencyProperties and then you can’t put a binding on it. On some other cases, you only have a getter as accessor and you can’t put a binding on it too. This is for example the case for the ribbon’s group of the office ribbon or the converter’s parameter. If you ever tried to do so, you surely had an exception throwned : " A 'Binding' cannot be set on the 'SetCEDEJDED' property of type 'Tralala'. A 'Binding' can only be set on a DependencyProperty of ... (more)
category: How To | clicked: 3 | comment | | source: blog.lexique-du-net.com
tags: tricks, dependency object, trick, How-To, Dependency Property, WPF, Binding, Tip, how to, windows presentation foundation, bindings, Tips
7
Shouts

MVVM - How to integrate the Office Ribbon respecting the pattern (especially the commands)

published 1203 days, 6 hours, 16 minutes ago posted by jmix90jmix90 1204 days, 2 hours, 44 minutes ago
Friday, March 05, 2010 2:33:53 PM GMT Thursday, March 04, 2010 6:06:13 PM GMT
The ribbon controls - introduced by office 2007 -are available for free on the Microsoft Office web site. When I wanted to add them into one of my application I realized that it was broking the M-V-VM pattern. In this post, we will see *how to use the Ribbon, then what exactly is the issue and finally examine the solution I use as a work-around. * (more)
category: How To | clicked: 2 | comment | | source: blog.lexique-du-net.com
tags: Pattern, How-To, dependency properties, Dependency Property, Patterns, WPF, Binding, how to, XAML, MVVM, M-V-VM, Patterns and Practices
7
Shouts

DependencyProperties or INotifyPropertyChanged ?

posted by jmix90jmix90 1207 days, 9 hours, 8 minutes ago
Monday, March 01, 2010 11:42:05 AM GMT
When you want to make an object binding-aware you have two choices : implements INotifyPropertyChanged or creates DependencyProperties. Which one is the best ? Let's try to answer this question ! (more)
category: How To | clicked: 4 | comment | | source: blog.lexique-du-net.com
tags: Dependency Property, Dependency-Properties, WPF, INotifyPropertyChanged, Performance Test