1.) Is it possible to programmatically change the width/height of a tile2.) If the user manually resizes a tile, what events are generated
Problem:1.) I have tiles set to prefered width/height of 100x100, and would like to utilize a slider to increase/decrease the size of a tile - all tiles will resize at once
2.) The user can manually grab the side or bottom of a tile and resize - what event gets generated and how would I make the resize symmetric - ie, if the user resizes the height of a tile from 100 to 120, how would I make the width = 120 (for all tiles)
Thank you!
Terry,
If you are asking about a code snippet with slider control, I have not used it with slider control. My response was to point out the event that gets raised when a tile is resized. With that said, why you would you use additional slider control while you can resize the tiles with mouse button? unless I am misunderstanding your purpose of using the slider control.
If I misunderstood you, please clarify it for me.
Thank youSam
Thank you Sam for the pointers
I'd read those articles, but the explicit layout (1.) didn't really apply to explicit size unless I update each tile row/colum manually - defeating the nice job IG has done with the reposition animations (unless I've missed something)
Attaching the slider to the tile size only changes the tile content size, not the content container (ContentPresenter) size (the content was clipped after resize)
Could you point me to the code nippet in (2.)
I've managed to get the tiles to resize by attaching the slider to the TilesPanel.NormalModeSettings.TileConstraints.PreferredWidth and PreferredHeight
Hello,
1. The following article expalins how to explicitly change the tile size:http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamTilesControl_Explicitly_Arrange_Tiles.html
2. Tiles have "SizeChanged" event that gets raised when a tile is resized. So with your slider control you can manually reset the size of a tile or tiles. When a tile is resized the control recalculated to give optimum space for all tiles. There is code snippet in the help article that you can model from.
This article explains how to retrieve reference of the tiles.http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamTilesControl_Retrieve_a_Reference_to_a_Tile.html
I hope this information helps. Let me know if you have any question.
Thank you,Sam