示例#1
0
        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);
        }
示例#2
0
 private void Compose(FrameworkElement sender)
 {
     ComposerWindow.OpenComposerWindow(Window.GetWindow(sender), this, "GET", Navigation.CurrentUrl);
 }