¡@

Home 

c# Programming Glossary: dependencyproperty

Data Binding in WPF User Controls

http://stackoverflow.com/questions/11226843/data-binding-in-wpf-user-controls

set SetValue ProtocolNumberProperty value public static DependencyProperty ProtocolNumberProperty DependencyProperty.Register ProtocolNumber.. public static DependencyProperty ProtocolNumberProperty DependencyProperty.Register ProtocolNumber typeof int typeof MainControls This..

Set focus on textbox in WPF from view model (C#) & wPF

http://stackoverflow.com/questions/1356045/set-focus-on-textbox-in-wpf-from-view-model-c-wpf

IsFocusedProperty value public static readonly DependencyProperty IsFocusedProperty DependencyProperty.RegisterAttached IsFocused.. static readonly DependencyProperty IsFocusedProperty DependencyProperty.RegisterAttached IsFocused typeof bool typeof FocusExtension.. static void OnIsFocusedPropertyChanged DependencyObject d DependencyPropertyChangedEventArgs e var uie UIElement d if bool e.NewValue uie.Focus..

How to add a Blend Behavior in a Style Setter

http://stackoverflow.com/questions/1647815/how-to-add-a-blend-behavior-in-a-style-setter

set SetValue MessageProperty value public static readonly DependencyProperty MessageProperty DependencyProperty.Register Message typeof string.. public static readonly DependencyProperty MessageProperty DependencyProperty.Register Message typeof string typeof DebugAction new UIPropertyMetadata.. MessageParameterProperty value public static readonly DependencyProperty MessageParameterProperty DependencyProperty.Register MessageParameter..

databind the Source property of the WebBrowser in WPF

http://stackoverflow.com/questions/263551/databind-the-source-property-of-the-webbrowser-in-wpf

question The problem is that WebBrowser.Source is not a DependencyProperty. One workaround would be to use some AttachedProperty magic.. static class WebBrowserUtility public static readonly DependencyProperty BindableSourceProperty DependencyProperty.RegisterAttached BindableSource.. static readonly DependencyProperty BindableSourceProperty DependencyProperty.RegisterAttached BindableSource typeof string typeof WebBrowserUtility..

WPF/MVVM - how to handle double-click on TreeViewItems in the ViewModel?

http://stackoverflow.com/questions/4497825/wpf-mvvm-how-to-handle-double-click-on-treeviewitems-in-the-viewmodel

public class MouseDoubleClick public static DependencyProperty CommandProperty DependencyProperty.RegisterAttached Command.. public static DependencyProperty CommandProperty DependencyProperty.RegisterAttached Command typeof ICommand typeof MouseDoubleClick.. new UIPropertyMetadata CommandChanged public static DependencyProperty CommandParameterProperty DependencyProperty.RegisterAttached..

Listen to changes of dependency property

http://stackoverflow.com/questions/4764916/listen-to-changes-of-dependency-property

property Is there any way to listen to changes of a DependencyProperty I want to be notified and perform some actions when the value.. when the value changes but I cannot use binding. It is a DependencyProperty of another class. c# .net wpf events dependency properties.. properties share improve this question If it's a DependencyProperty of a separate class the easiest way is to bind a value to it..

Bind TextBox on Enter-key press

http://stackoverflow.com/questions/563195/bind-textbox-on-enter-key-press

static class InputBindingsManager public static readonly DependencyProperty UpdatePropertySourceWhenEnterPressedProperty DependencyProperty.RegisterAttached.. UpdatePropertySourceWhenEnterPressedProperty DependencyProperty.RegisterAttached UpdatePropertySourceWhenEnterPressed typeof.. UpdatePropertySourceWhenEnterPressed typeof DependencyProperty typeof InputBindingsManager new PropertyMetadata null OnUpdatePropertySourceWhenEnterPressedPropertyChanged..