This is a migrated thread and some comments may be shown as answers.

Maximise from code behind not working!

1 Answer 17 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Joe Bohen
Top achievements
Rank 1
Joe Bohen asked on 25 Feb 2012, 09:38 AM
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


1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 27 Feb 2012, 02:51 PM
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 >>
Tags
TileView
Asked by
Joe Bohen
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or