public GraphicsDocumentPanelViewModel(RBuilderDocument rdoc) : base(rdoc) { _events = rdoc.Data.Eventaggregator; Rdoc = rdoc; EditorInterop = Rdoc.Editor; //string message = this.EditorInterop.TestMessage(); _events.GetEvent <OnKeyPress>().Subscribe(OnKeyPressCallBack); _events.GetEvent <OnKeyRelease>().Subscribe(OnKeyReleaseCallBack); }
public Win32WndHost(double height, double width, IEditorInterop editorInterop) { EditorInterop = editorInterop; this.hostHeight = (int)height; this.hostWidth = (int)width; }