Simple styling question

2 posts, 0 answers
  1. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 12 Aug 2011 Link to this post

    Hello there.

    I know it is really easy but somehow I am a little dumb right now.
    I have something like the following:

    <

    telerik:RadTileView ItemsSource="{Binding Path=Items}">

        <telerik:RadTileView.ItemTemplate>

            <DataTemplate>

                <TextBlock Text="{Binding Name}" />

            </DataTemplate>

        </telerik:RadTileView.ItemTemplate>
    ...

    Now I just want to reduce the header size. With expression blend and if the tileviewitems are present it is eays but how can I set a predefined style? Something like:

    <telerik:RadTileView ItemsSource="{Binding Path=Items}">  

        <telerik:RadTileView.ItemTemplate>

            <DataTemplate>
                            <Item.Style = {useMyStyleInResourceDictionary} />

                <TextBlock Text="{Binding Name}" />

            </DataTemplate>

        </telerik:RadTileView.ItemTemplate>
    ...

    I cannot use a generic style for ALL tileviewitems!
    Thanks a lot for any help!!!
    Greetings and all the best,
    Tim.

  2. Tim Tos
    Tim Tos avatar
    36 posts
    Member since:
    Apr 2010

    Posted 15 Aug 2011 Link to this post

    ItemContainerStyle... I was looking for ItemContainerStyle!
    - Thread closed - :)
  3. DevCraft banner
Back to Top