Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static DependencyProperty RegisterProperty<T>(
- Expression<Func<BindableListBox, T>> associatedProperty,
- T defaultValue,
- Action<BindableListBox> valueChangedAction = null)
- {
- return DependencyProperty.Register(
- GetPropertyName(associatedProperty),
- typeof(T),
- typeof(BindableListBox),
- new PropertyMetadata(defaultValue, (s, e) =>
- {
- var sender = s as BindableListBox;
- if (sender != null)
- {
- valueChangedAction?.Invoke(sender);
- }
- }));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement