How to remove the shadow from a librarystack

I'm currently in a project where I need a LibraryStack with no visuals at all, so it would just show the content. If I just remove the background a shadow stays in view which I cant seem to remove...

librarystack with no background http://img97.imageshack.us/img97/6778/librarystack.jpg

This code looks like:

<s:LibraryStack Background="Transparent">
    <s:LibraryStackItem Background="AliceBlue"/>
    <s:LibraryStackItem Background="Bisque"/>
    <s:LibraryStackItem Background="Salmon"/>
</s:LibraryStack>

This stack is just for explaining purposes, the actual stack is added in the code behind in c#. So preferably any answers that would be usefull to add in c#.

Answers


You'll need to re-template the control. For example:

<s:LibraryStack>
  <s:LibraryStack.Template>
    <ControlTemplate TargetType="{x:Type s:LibraryStack}">
      <Grid>
        <ItemsPresenter/>
      </Grid>
    </ControlTemplate>
  </s:LibraryStack.Template>
  <s:LibraryStackItem Background="AliceBlue"/>
  <s:LibraryStackItem Background="Bisque"/>
  <s:LibraryStackItem Background="Salmon"/>
</s:LibraryStack>

Need Your Help

What happens when two apps monitor the same iBeacon region?

ios ibeacon

Since iOS7.1, iBeacon regions can be monitored without the app being open in the fore- or background. While this is more of a lab situation than a real world problem, I was wondering what happens w...

How to watermark a dynamically generated PDF so watermark seen through non-transparent cells

pdf-generation itextsharp watermark

I have a dynamically generated PDF that can be in one of two modes. If in a draft mode, the only real difference is a watermark that states DRAFT on each page.