Not sure if this is an issue or I'm just using it wrong....
I am trying to capture when a User "Clicks" a Tile in my Tile List and then perform an Action. The below works okay except that if one Tile is currently selected and you Click a new Tile the Event below will fire 3 times. Twice with the new Tile as an AddedItem thereby firing my Method twice.
How can I do this different so as to not have my method fire multiple times? Is there a different event I should look at? I was able to capture the Tile's MouseDoubleClick event but that isn't truly what I want to do.
This is a WPF 4.5 app using Telerik release(2013.1.403.45).
I am trying to capture when a User "Clicks" a Tile in my Tile List and then perform an Action. The below works okay except that if one Tile is currently selected and you Click a new Tile the Event below will fire 3 times. Twice with the new Tile as an AddedItem thereby firing my Method twice.
How can I do this different so as to not have my method fire multiple times? Is there a different event I should look at? I was able to capture the Tile's MouseDoubleClick event but that isn't truly what I want to do.
This is a WPF 4.5 app using Telerik release(2013.1.403.45).
<
telerik:RadTileList
x:Name
=
"AppLaunchPad"
GroupTemplate
=
"{StaticResource GroupTemplate}"
ScrollViewer.HorizontalScrollBarVisibility
=
"Visible"
cal:Message.Attach
=
"[Event SelectionChanged] = [Action OpenDoorway($eventArgs)]"
>
public
void
OpenDoorway(SelectionChangedEventArgs e)
{
var s = e.Source
as
RadTileList;
var t = e.AddedItems.Count;
if
(t > 0)
{
windowManager.Alert(
"Testing"
,
"This came from the Launcher: "
+ s.SelectedItem.ToString());
}
}