Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
820
Single click to maximize tile?
posted

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

 

Parents
  • 820
    Verified Answer
    posted

    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);

            }

Reply Children
No Data