I am having trouble getting xamtilemanager to change the tiles from minimized to maximized when single clicking them.
The default behaviour seems to be to change on a double click.
I tried handling the mousedown on the xamtile but it never seems to fire when clicking in the header area.
How can I accomplish this?
Greg
Hello Greg,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Answered my own question.. added a handler for each tile. Not sure this is the cleanest way but it works:
private void Tile_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (sender is XamTile)
((XamTile)sender).IsMaximized = true;
}
private void WIPTitlePane_Loaded(object sender, RoutedEventArgs e)
m_WIPTitlePane = sender as XamTile;
m_WIPTitlePane.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(Tile_MouseLeftButtonDown), true);