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. can we use wpf controls in window's application .

can we use wpf controls in window's application .

Scheduled Pinned Locked Moved WPF
csharpwpfgraphicstutorialquestion
6 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.
  • A Offline
    A Offline
    Anuj Banka
    wrote on last edited by
    #1

    I m working on a windows project . i m new in WPF. so my question is can we use wpf controls and graphics in my existing windows project....tell me sum link for tutorial to if this is possible

    P 1 Reply Last reply
    0
    • A Anuj Banka

      I m working on a windows project . i m new in WPF. so my question is can we use wpf controls and graphics in my existing windows project....tell me sum link for tutorial to if this is possible

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

      Do you mean that you want to host WPF controls inside a WinForms application? Why not write the whole application in WPF? If you do mean hosting inside WinForms, you might want to follow the tutorial here[^].

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      A 1 Reply Last reply
      0
      • P Pete OHanlon

        Do you mean that you want to host WPF controls inside a WinForms application? Why not write the whole application in WPF? If you do mean hosting inside WinForms, you might want to follow the tutorial here[^].

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        A Offline
        A Offline
        Anuj Banka
        wrote on last edited by
        #3

        I dont want to change the whole application. I want to apply WPF graphics on some of my pages. IS its possible???????????

        C P 2 Replies Last reply
        0
        • A Anuj Banka

          I dont want to change the whole application. I want to apply WPF graphics on some of my pages. IS its possible???????????

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You can probably embed a WPF window here and there, but I think it's a dumb idea. You'd do better to start with WPF, embed your winforms controls as needed, and do the rest with WPF.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • A Anuj Banka

            I dont want to change the whole application. I want to apply WPF graphics on some of my pages. IS its possible???????????

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

            anuj1784 wrote:

            IS its possible???????????

            Did you even look at the link I included in my post?

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            A 1 Reply Last reply
            0
            • P Pete OHanlon

              anuj1784 wrote:

              IS its possible???????????

              Did you even look at the link I included in my post?

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              A Offline
              A Offline
              Anuj Banka
              wrote on last edited by
              #6

              ohh sorry i thought u not understand wat i m tring to say

              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