Style vs. ControlTemplate

Posted by plotnick on Stack Overflow See other posts from Stack Overflow or by plotnick
Published on 2010-05-14T17:08:49Z Indexed on 2010/05/14 17:14 UTC
Read the original article Hit count: 377

Filed under:
|
|

is it possible to define resources in the style rather then using a template?

    <ListView.Resources >
        <Style TargetType="{x:Type ScrollBar}">
              <Setter Property="Background" Value="Transparent" />
         </Style>
    </ListView.Resources>

How can I wrap this thing into:

   <Style TargetType="{x:Type ListView}"> 

   </Style>

?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about style