Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Problem positioning tiles when some are collapsed

$
0
0

Addendum:  Visibility/Collapsed of individual tiles does not ​have anything to do with recreating the problem as I first thought.  Is seem that while the control is initializing it is ignoring tile positioning from code behind, once it is fully initialized everything works as expected.  My problem is I don't know when it is done 'initializing'.  I have animation off so annimationcompleted never fires.  TilePositionChanged does fire, once for each tile on load, so this code does work, but it is only a slight improvement over the timer, in that I need to know the order the tiles load and move tiles only after they have been initially positioned.

PrivateSubTileView_TilePositionChanged(sender AsObject, e AsTelerik.Windows.RadRoutedEventArgs) HandlesTileView.TilePositionChanged
 
    System.Diagnostics.Debug.WriteLine(DirectCast(e.Source, Telerik.Windows.Controls.RadTileViewItem).Name)
    IfDirectCast(e.Source, Telerik.Windows.Controls.RadTileViewItem).Name = "Tile3"Then
        If_firstTime Then
            _firstTime = False
            Tile2.Position = 0 'this is honored
        EndIf
    EndIf
EndSub

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>