Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Is it possible to include the Silverlight user control in WPF Application?

Is it possible to include the Silverlight user control in WPF Application?

Scheduled Pinned Locked Moved WPF
csharpwpfquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gijomon MK
    wrote on last edited by
    #1

    I have a user control which is created in Silverlight. Can I include the same user control in WPF? Please reply.

    P 1 Reply Last reply
    0
    • G Gijomon MK

      I have a user control which is created in Silverlight. Can I include the same user control in WPF? Please reply.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You can, but only inside a web browser instance running inside the WPF application.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

      G 1 Reply Last reply
      0
      • P Pete OHanlon

        You can, but only inside a web browser instance running inside the WPF application.

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

        G Offline
        G Offline
        Gijomon MK
        wrote on last edited by
        #3

        "but only inside a web browser instance running inside the WPF application" means?

        P 1 Reply Last reply
        0
        • G Gijomon MK

          "but only inside a web browser instance running inside the WPF application" means?

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Sorry, I was trying to be as precise there as possible to remove any ambiguity. It basically means that you need to host a web browser control inside your WPF application, and the Silverlight control will have to be displayed in there.

          Forgive your enemies - it messes with their heads

          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

          G 1 Reply Last reply
          0
          • P Pete OHanlon

            Sorry, I was trying to be as precise there as possible to remove any ambiguity. It basically means that you need to host a web browser control inside your WPF application, and the Silverlight control will have to be displayed in there.

            Forgive your enemies - it messes with their heads

            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

            G Offline
            G Offline
            Gijomon MK
            wrote on last edited by
            #5

            Thank you for your reply. Are you saying that we need to host a webbrowser control inside our WPF application and programatically load the Silverlight control at runtime?

            P 1 Reply Last reply
            0
            • G Gijomon MK

              Thank you for your reply. Are you saying that we need to host a webbrowser control inside our WPF application and programatically load the Silverlight control at runtime?

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Yes you need to host a webbrowser control in your WPF application. No, you don't programatically load the Silverlight control - it's a web control, so you should have a web page that hosts the control already. The web browser navigates to this web page and displays it. The alternative is to create a WPF version of the control.

              Forgive your enemies - it messes with their heads

              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

              G 1 Reply Last reply
              0
              • P Pete OHanlon

                Yes you need to host a webbrowser control in your WPF application. No, you don't programatically load the Silverlight control - it's a web control, so you should have a web page that hosts the control already. The web browser navigates to this web page and displays it. The alternative is to create a WPF version of the control.

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                G Offline
                G Offline
                Gijomon MK
                wrote on last edited by
                #7

                Thank you so much for your reply.

                P 1 Reply Last reply
                0
                • G Gijomon MK

                  Thank you so much for your reply.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  You are welcome.

                  Forgive your enemies - it messes with their heads

                  My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                  M 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    You are welcome.

                    Forgive your enemies - it messes with their heads

                    My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                    M Offline
                    M Offline
                    Mehdi Ghiasi
                    wrote on last edited by
                    #9

                    I suggest you use Awesomium[^] instead of Including a web browser in WindowsFormsHost

                    Regards. Mehdi Ghiasi

                    P 1 Reply Last reply
                    0
                    • M Mehdi Ghiasi

                      I suggest you use Awesomium[^] instead of Including a web browser in WindowsFormsHost

                      Regards. Mehdi Ghiasi

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #10

                      Why would I want to use Awesomium. I'm not the poster, and he doesn't get notified of replies to other people. By the way, Awesomium might not be free depending on his compliance with the license, so the OP might not want to have to splash out on it.

                      Forgive your enemies - it messes with their heads

                      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups