Hi,
I am new to xamTilesControl. SImple question, what event should I use to handle new tile being added to a control. I want to get an event of a new title being aded and change it's state to maximized.
Thanks
Mark
Hello,
I'm not sure about event responsible for adding tiles and I'll keep research.
But for maximize state of Tile you can use this:
<Style TargetType="{x:Type igTiles:Tile}">
<EventSetter Event="SizeChanged" Handler="MaxEvent"></EventSetter>
</Style>
And code behind:
private void MaxEvent(object sender, SizeChangedEventArgs e)
{
Tile t = sender as Tile;
if (t.State == TileState.Maximized)
.......
}
I know how to maximize, the question is different.
I have record being inserted into collection that is bound to a tilecontrol. Once new record added the new tile shows up as minimized, I want to make sure that all newlyarrived tiles are first displayed maximized, the rest are minimized. Only newly arrived (the last to arrive) is maximized.