This question is locked. New answers and comments are not allowed.
How to set at runtime in my dependency property
Here is my example:
I set property
but how to do that with DeafultUpdateSourceTriger
I do not want to set in xaml, runtime in my dependency property only.
DefaultUpdateSourceTrigger = UpdateSourceTrigger.LostFocusHere is my example:
public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(TagEditLookupBox), new Telerik.Windows.FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, new PropertyChangedCallback(OnTextSearchChanged))); private static void OnTextSearchChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { var view = (o as NasaEditBox); if (view == null) return; //... } [DefaultValue("")] public string Text { get { var value = GetValue(TextProperty); if (value == null) return string.Empty; else return value.ToString(); } set { SetValue(TextProperty, value); } }I set property
BindsTwoWayByDefault = true,but how to do that with DeafultUpdateSourceTriger
I do not want to set in xaml, runtime in my dependency property only.