4 Answers, 1 is accepted
0
Hi sunkilla,
There is no SelectedItem property in the RadTileView because there's no concept of a selected item in that control. You can try to use the MaximizedItem property or you can add a handler for the MouseLeftButtonDown() event and check if the click was inside the RadTileViewItems header bar like that:
If you have further questions feel free to ask. Sincerely yours,
There is no SelectedItem property in the RadTileView because there's no concept of a selected item in that control. You can try to use the MaximizedItem property or you can add a handler for the MouseLeftButtonDown() event and check if the click was inside the RadTileViewItems header bar like that:
public
MainPage()
{
InitializeComponent();
this
.AddHandler(RadTileView.MouseLeftButtonDownEvent,
new
MouseButtonEventHandler(myTileView_MouseLeftButtonDown),
true
);
}
private
void
myTileView_MouseLeftButtonDown(
object
sender, MouseButtonEventArgs e)
{
if
((e.OriginalSource
as
Border).ParentOfType<RadTileViewItem>() !=
null
)
selectedItemText.Text = (e.OriginalSource
as
Border).ParentOfType<RadTileViewItem>().Header.ToString();
}
If you have further questions feel free to ask. Sincerely yours,
Zarko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Clint
Top achievements
Rank 1
answered on 25 Oct 2011, 11:48 PM
How would I use the MaximizedItem property to get the value of the selecteditem header? Example?
0
Hi Clint,
Petar Mladenov
the Telerik team
These properties are different by design and are used for different purposes. You can examine this blog post describing the Selection feature in RadTileView. The e.OriginalSource in the SelectionChanged event will give you the selected RadTileViewItem and you will be able to access its header. Is this suitable for you ?
Greetings,Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Clint
Top achievements
Rank 1
answered on 28 Oct 2011, 06:49 PM
Perfect. Wasn't aware you guys added those options. Thanks!