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

Databind TileView and Border Height.

2 Answers 47 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Nemo
Top achievements
Rank 1
Nemo asked on 06 Mar 2012, 06:35 PM
I have a Popup with a Listbox, Button and RadTileView . The RadTileView's ItemSource is an ObservableCollection(Customers).  Is it possible to bind the Popup's Border Height with RadTileView item's count using IValueConverters? (for eg: when the TileView is empty,If Customers.Count==0, Height = 100, If Customers.Count<5, Height =150). Something like that. The popup Looks like this:

<Popup>
            <Border>
                <StackPanel x:Name="MainStackPanel" Orientation="Vertical">
                    <StackPanel x:Name="ListBoxStackPanel" Orientation="Horizontal" >
                        <ListBox/>
                        <Button/>
                    </StackPanel>
                    <telerik:RadTileView/>
                </StackPanel>
            </Border>
 </Popup>
 

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 09 Mar 2012, 04:41 PM
Hi Nemo,

 I prepared a project for you where the TileView and the Popup are bound to a common MainViewModel and the Height of the Border is bound to the Number of Items in the ViewModel's Collection.
Please let us know if this is what you need.

Regards,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Nemo
Top achievements
Rank 1
answered on 09 Mar 2012, 06:49 PM
Petar,

Thank you so much. This is exactly I was looking for.

Tags
TileView
Asked by
Nemo
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Nemo
Top achievements
Rank 1
Share this question
or