1
Answer

Triggers and data binding

person

person

15y
3.3k
1
Hi,

Can anyone shed light on here:

------------------------------------------------------------------------------------
<DataTemplate x:Key="MainTemplate" x:Name="mainTemplate" DataType="{x:Type src:SlotDescriptor}" >
            <Border Name="border">
            </Border>
            <DataTemplate.Triggers>
                <DataTrigger Binding="{Binding Path=Type}" Value="LIVE_TURN">

--------------------------------------------------------------------------------

So SlotDescriptor should be the class/object itself.
And Type should be a property of such class/object.

Am I right in saying this?

Thanks in advance

Urema.
Answers (1)