Is it possible to tie into the begin and end events of the panels changing between states? I need to hide the contents of the panel (its a html host) when the panel is moving about. Begen and End drag works great! but the transition between min and max is unavailable.
Hi, neo.I apologize for answering you so late.Yes, it is possible to this for all the TilePanes.In fact, you need to this only with visible tiles.void panel_AnimationStarted(object sender, EventArgs e){ foreach (TilePane tile in tileView1.VisibleTiles) { tile.Tag = tile.Content; tile.Content = "The animation is in progress ..."; }}void panel_AnimationCompleted(object sender, EventArgs e){ foreach (TilePane tile in tileView1.VisibleTiles) { tile.Content = tile.Tag; }}bool IsInitialized;private void tileView1_MaximizedStateChanging(object sender, TileStateChangingEventArgs e){ TilePane tile = e.Element as TilePane; panel = tile.Parent as TilePanel; if (panel != null && !IsInitialized) { IsInitialized = true; panel.AnimationCompleted += panel_AnimationCompleted; panel.AnimationStarted += panel_AnimationStarted; }}Marin
it is possible to do this for all the TilePanes Not just the one indexed at 2 like in the same code?
Perfect!! Thx.
Hi neo,Yes, you can use animation events.This is a small sample that can help you:TilePanel panel = null;object oldContent = null;void panel_AnimationStarted(object sender, EventArgs e){ tileView1.Items[2].Content = null;}void panel_AnimationCompleted(object sender, EventArgs e){ tileView1.Items[2].Content = oldContent;}private void tileView1_MaximizedStateChanging(object sender, TileStateChangingEventArgs e){ TilePane tile = e.Element as TilePane; panel = tile.Parent as TilePanel; if (panel != null) { oldContent = tileView1.Items[2].Content; panel.AnimationCompleted += new EventHandler<EventArgs>(panel_AnimationCompleted); panel.AnimationStarted += new EventHandler<EventArgs>(panel_AnimationStarted); }}Regards,Marin