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
2290
getting event when new title is added
posted

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

Parents
No Data
Reply
  • 5600
    Offline posted

    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)

                 {

                       .......

                 }

            }

     

     

     

Children