person

person

  • NA
  • 96
  • 0

Triggers and data binding

Aug 18 2009 10:48 AM
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)