Created
July 20, 2020 06:19
-
-
Save chuongmep/18221d5aeffc2afae152cf6b6487285c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DockableViewModel : ViewModelBase | |
{ | |
public DockableViewModel(UIControlledApplication a) | |
{ | |
a.ViewActivated += OnViewActivated; | |
} | |
private void OnViewActivated(object sender, ViewActivatedEventArgs e) | |
{ | |
this.Document = e.Document; | |
} | |
private Document document; | |
public Document Document | |
{ | |
get => document; | |
set | |
{ | |
document = value; | |
OnPropertyChanged("Document"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment