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
We have uncovered an issue when adding a maximized tile in code. Although the tile is added to the collection it does not appear to be maximized in the UI.
I have submitted a development issue for this issue. We will be tracking the issue thru your case.
I think this is the property you will need first. The xamTIleControl’s MaximizedTileLimitProperty will set the number of Maximized tiles that you want to allow.
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=InfragisticsWPF4.Tiles.v10.3~Infragistics.Windows.Tiles.XamTilesControl~MaximizedTileLimit.html
This article includes a description of the behaviors when changing a tile’s state, which is very helpful to understand.
Change the State of a Tile
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamTilesControl_Change_the_State_of_a_Tile.html
You will also want to set the MinimizedTileExpansionMode to AllowMultipleExpandAllInitially for the MaximizedModeSettings
Modify Tile Behaviors in Maximized Mode
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamTilesControl_Modify_Tile_Behaviors_in_Maximized_Mode.html
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.
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)
.......
}