コード例 #1
0
 /// <summary>
 /// On specific link click handle it here.
 /// </summary>
 private void OnLinkClicked(object sender, RoutedEvenArgs <HtmlLinkClickedEventArgs> args)
 {
     if (args.Data.Link == "SayHellooo")
     {
         _htmlPanel.ScrollToElement("bottomList");
         args.Data.Handled = true;
     }
     if (args.Data.Link == "SayHello")
     {
         MessageBox.Show("Hello you!");
         args.Data.Handled = true;
     }
     else if (args.Data.Link == "ShowSampleForm")
     {
         var w      = new SampleWindow();
         var window = Window.GetWindow(this);
         if (window != null)
         {
             w.Owner  = window;
             w.Width  = window.Width * 0.8;
             w.Height = window.Height * 0.8;
             w.ShowDialog();
         }
         args.Data.Handled = true;
     }
 }
コード例 #2
0
 /// <summary>
 /// Open sample window.
 /// </summary>
 private void OnOpenSampleWindow_click(object sender, RoutedEventArgs e)
 {
     var w = new SampleWindow();
     w.Owner = this;
     w.Width = Width * 0.8;
     w.Height = Height * 0.8;
     w.ShowDialog();
 }
コード例 #3
0
        /// <summary>
        /// Open sample window.
        /// </summary>
        private void OnOpenSampleWindow_click(object sender, RoutedEventArgs e)
        {
            var w = new SampleWindow();

            w.Owner  = this;
            w.Width  = Width * 0.8;
            w.Height = Height * 0.8;
            w.ShowDialog();
        }
コード例 #4
0
 /// <summary>
 /// On specific link click handle it here.
 /// </summary>
 private void OnLinkClicked(object sender, RoutedEvenArgs<HtmlLinkClickedEventArgs> args)
 {
     if (args.Data.Link == "SayHello")
     {
         MessageBox.Show("Hello you!");
         args.Data.Handled = true;
     }
     else if (args.Data.Link == "ShowSampleForm")
     {
         var w = new SampleWindow();
         var window = Window.GetWindow(this);
         if (window != null)
         {
             w.Owner = window;
             w.Width = window.Width * 0.8;
             w.Height = window.Height * 0.8;
             w.ShowDialog();
         }
         args.Data.Handled = true;
     }
 }