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. WCF and WF
  4. Using the current theme's FocusVisualStyle

Using the current theme's FocusVisualStyle

Scheduled Pinned Locked Moved WCF and WF
helpquestion
1 Posts 1 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.
  • D Offline
    D Offline
    Donald Wingate
    wrote on last edited by
    #1

    Hello, If I create a style and set OverridesDefaultStyle to true, or if I create a new control were I am defining the default style myself, it seems that FocusVisualStyle is always null (by default). Which means the I need to set it in the style, which is Ok. My problem is, I want to use the same FocusVisualStyle that the current theme is using, as is the recomendation, and I believe that it should be available through the static property SystemParameters.FocusVisualStyleKey. However, when I try to use it, nothing happens (no focus rectangle is displayed). I believe I am writing this correctly:

    <Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}" />

    If I define my own FocusVisualStyle and use it, it works, but then that defeats the purpose of the Theme. Does anyone have any insights into this? Thanks in advance.

    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