1
Answer

Triggers and data binding

Photo of 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)

0
Photo of Suthish Nair
NA 31.7k 4.6m 12y
This might be a turning point for Windows phone and tablets... hoping for great innovations.