/// <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;
     }
 }