Home Forums WPF controls Xceed DataGrid for WPF Card View Title Background

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24602 |

    Hello,

    I really like what you guys have done with the card view.

    I was wondering is there a way I can style the background color for the cardview title when:
    * it is not selected
    * it was selected but lost focus (not so important)
    * it is selected

    Thanks!

    Imported from legacy forums. Posted by Murthy (had 541 views)

    User (Old forums)
    Member
    Post count: 23064

    Sure, this is pretty much what we do in our templates. For example, you will be able to affect the background of your template using the following triggers on the DataRow :

    * it is not selected<code>
    <Trigger Property=”IsCurrent”
    Value=”False”/>
    </code>

    * it was selected but lost focus (not so important)

    <code>

    <MultiDataTrigger.Conditions>

    <Condition Binding=”{Binding RelativeSource={RelativeSource Self},Path=IsSelected}”
    Value=”True”/>

    <Condition Binding=”{Binding RelativeSource={RelativeSource FindAncestor,AncestorType=xcdg:DataGridControl},Path=IsKeyboardFocusWithin}”
    Value=”False”/>
    </MultiDataTrigger.Conditions>
    </code>

    * it is selected
    <code>
    <MultiDataTrigger.Conditions>

    <Condition Binding=”{Binding RelativeSource={RelativeSource Self},Path=IsSelected}”
    Value=”True”/>

    <Condition Binding=”{Binding RelativeSource={RelativeSource FindAncestor,AncestorType=xcdg:DataGridControl},Path=IsKeyboardFocusWithin}”
    Value=”True”/>

    </MultiDataTrigger.Conditions>
    </code>

    Imported from legacy forums. Posted by Matt (had 2754 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.