My styles are leaking

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DanThMan

    My styles are leaking

    I wrote a style in XAML that applies a DropShadowBitma pEffect to some
    DockPanels in my Window. This works great. The problem is that, thanks
    to property value inheritance, now *everything* inside these
    DockPanels has a drop shadow.

    I generally like property value inheritance, but I would like to turn
    it off in this case. Is that even possible? If not, how do I insert a
    "default bitmap effect" or "null bitmap effect" into the styles for
    controls lower in the tree?

    To reiterate, I want to know how to make a container have a drop
    shadow without all the items in the container having a drop shadow.

    Thanks very much for your help,

    -Dan
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: My styles are leaking

    Dan,

    What is the XAML that you are using to apply the style? Something tells
    me that you are not discriminating too much in how you are applying the
    style.

    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "DanThMan" <danthman@cox.n etwrote in message
    news:f6e5b784-7a07-4036-b2e4-a392cdaac0ae@s8 g2000prg.google groups.com...
    >I wrote a style in XAML that applies a DropShadowBitma pEffect to some
    DockPanels in my Window. This works great. The problem is that, thanks
    to property value inheritance, now *everything* inside these
    DockPanels has a drop shadow.
    >
    I generally like property value inheritance, but I would like to turn
    it off in this case. Is that even possible? If not, how do I insert a
    "default bitmap effect" or "null bitmap effect" into the styles for
    controls lower in the tree?
    >
    To reiterate, I want to know how to make a container have a drop
    shadow without all the items in the container having a drop shadow.
    >
    Thanks very much for your help,
    >
    -Dan

    Comment

    Working...