Maximise from code behind not working!

2 posts, 0 answers
  1. Joe Bohen
    Joe Bohen avatar
    62 posts
    Member since:
    May 2009

    Posted 25 Feb 2012 Link to this post

    Hi,
    I have a radtileview with a small number of tiles and I am attempting to loop through the tiles and maximse each one in turn form code behind. I get the  'Object reference not set to an instance of an object.' error when maximise is called. Can you put me right with this.
    Regards,
    Joe

    The Code:

     

    For I As Integer = 0 To Me.RadTileView1.Items.Count - 1

    Dim item As RadTileViewItem = TryCast(Me.RadTileView1.Items(6), RadTileViewItem)

    item.TileState =

     

    TileViewItemState.Maximized

    Thread.Sleep(5000)

    Next


  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 27 Feb 2012 Link to this post

    Hello,
    Could you please send us some code snippets from the XAML where you define the RadTileView(and it's items) because I wasn't able to reproduce your problem? I've attached the sample project which I used for testing so you could examine it and see if it helps you.

    Kind regards,
    Zarko
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top