Hi,
I am using XamTileManager. I want all the tiles to be in some default height and width. Then dynamically i can change the tile size. This is my requirement. But once i set the size, i won't be able to resize it. How to do it ?
I am attaching a sample which i used.
Hello Kumaran,
Thank you for your post. I have been reading through it and I can suggest handling the SizeChanged event of the XamTile in order to determine when the size of the tiles is changed. To do that you can create a style without key and add it to the Resources of your XamTileManager. Here is an example on how you can implement this approach:
Xaml:
... <ig:XamTileManager.Resources> <ig:TileConstraints x:Key="tileConst"></ig:TileConstraints> <Style TargetType="{x:Type ig:XamTile}"> <EventSetter Event="SizeChanged" Handler="Tile_SizeChaged"/> </Style> </ig:XamTileManager.Resources> ...
C#:
private void Tile_SizeChaged(object sender, SizeChangedEventArgs e) { //Implement your logic here. }
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Krasimir,
I tried what you specified in the above reply. But the event doesn't firing. I am attaching the modified sample. Please check...