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. .NET (Core and Framework)
  4. WindowsFormsHost invalid theme in WPF Application (.Net 3.5)

WindowsFormsHost invalid theme in WPF Application (.Net 3.5)

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestionwpfwinformshelp
2 Posts 2 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.
  • M Offline
    M Offline
    Mehdi Ghiasi
    wrote on last edited by
    #1

    Dear Friends. I've making a wpf application. in a part of my program, I need some "windows forms" controls. I use WindowsFormsHost for using that controls. it work correctly, but the theme of controls (in windowsformshost) is windows classic. but I using Windows Aero (Windows 7). Here is an Image of my Problem: <a href="http://ghiasi.net/wpf.jpg">http://ghiasi.net/wpf.jpg</a>[<a href="http://ghiasi.net/wpf.jpg" target="_blank" title="New Window">^</a>] How can i correct the theme of Windows Forms Controls in WPF Application?

    Regards. Mehdi Ghiasi

    D 1 Reply Last reply
    0
    • M Mehdi Ghiasi

      Dear Friends. I've making a wpf application. in a part of my program, I need some "windows forms" controls. I use WindowsFormsHost for using that controls. it work correctly, but the theme of controls (in windowsformshost) is windows classic. but I using Windows Aero (Windows 7). Here is an Image of my Problem: <a href="http://ghiasi.net/wpf.jpg">http://ghiasi.net/wpf.jpg</a>[<a href="http://ghiasi.net/wpf.jpg" target="_blank" title="New Window">^</a>] How can i correct the theme of Windows Forms Controls in WPF Application?

      Regards. Mehdi Ghiasi

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The normal Windows Forms control do not support WPF themes, nor Aero Glass. You have to replace the controls with ones that do. You may want to look into a third party control library if you want to get up and running faster, or put the time in to develop your own.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      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