protected override void OnUnloaded() { Api.Client.UI.LayoutRoot.PreviewMouseDown -= this.GlobalRootPreviewMouseDownHandler; ClientUpdateHelper.UpdateCallback -= this.Update; if (ReferenceEquals(Instance, this)) { Instance = null; } }
protected override void OnLoaded() { Api.Client.UI.LayoutRoot.PreviewMouseDown += this.GlobalRootPreviewMouseDownHandler; ClientUpdateHelper.UpdateCallback += this.Update; Instance = this; }