Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.