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. Overiding context menu default style except for textbox contextmenu

Overiding context menu default style except for textbox contextmenu

Scheduled Pinned Locked Moved WPF
questionlearning
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.
  • J Offline
    J Offline
    John ph
    wrote on last edited by
    #1

    All custom context menus are styled using a common control template in the application resource dictionary which overides the default style. This in turn affects the textbox contextmenu and gives a distorted (cut, copy, paste) menu options. Is there a way to do except for the contextmenu style of textbox?

    - Regards -
       J O N


    A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


    S 1 Reply Last reply
    0
    • J John ph

      All custom context menus are styled using a common control template in the application resource dictionary which overides the default style. This in turn affects the textbox contextmenu and gives a distorted (cut, copy, paste) menu options. Is there a way to do except for the contextmenu style of textbox?

      - Regards -
         J O N


      A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers


      S Offline
      S Offline
      SledgeHammer01
      wrote on last edited by
      #2

      If you give a ControlTemplate a key as you have above, its not applied to anything unless you specifically tell it to use that template. If it doesn't have an x:Key, its applied to everything.

      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