Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1030
XamTileManager - How to capture XamTIle resizing
posted

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.

TileMgrSample.zip
Parents
No Data
Reply
  • 30945
    Offline posted

    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

Children