protected override void ActivateControl(object sender) { Publish(new MasonViewModel.SourceChangedEventArgs { Source = OriginalJsonValue.ToString() }); string jsonText = CalculateJsonPayload(); Window w = Window.GetWindow(sender as DependencyObject); ComposerWindow.OpenComposerWindow(w, this, Method, HRef, IsHRefTemplate, body: jsonText, actionType: Encoding, title: Title, description: Description, modifier: ModifyComposerWindow, focus: ComposerWindow.StartFocus.Body); }
private void Compose(FrameworkElement sender) { ComposerWindow.OpenComposerWindow(Window.GetWindow(sender), this, "GET", Navigation.CurrentUrl); }