Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface MyInterface : INotifyPropertyChanged
- {
- string Text { get; set; }
- }
- class MyViewModel : MyInterface
- {
- private string text;
- public string Text
- {
- get { return text; }
- set
- {
- if (text != value)
- {
- text = value;
- // TODO: Raise the NotifyPropertyChanged event here
- }
- }
- }
- }
- interface IViewModel
- {
- string Text { get; set; }
- }
- public static readonly DependencyProperty TextProperty =
- DependencyProperty.Register("Text",
- typeof(string), typeof(IViewModel));
- public static readonly DependencyProperty TextProperty =
- DependencyProperty.Register("Text",
- typeof(string), typeof(ImplementingClass));
Add Comment
Please, Sign In to add comment