SmartClient: Blue Box around ViewAndLayoutItem.Layout Rectangle control.

I have two rectangles in ViewAndLayoutItem.Layout. One has “blue box” around it (similar to the entire rectangle having the “focus” (for lack of a better name)).

QUESTION.1. What is the official name of the “blue box” ?

QUESTION.2. Our issue is: rectangle2 has webpage displayed. Rectangle1 has a treeview and textboxes in WPF. PROBLEM is: SETUP button displays the Properties of the webpage with the blue box around the whole rectangle. Once Webpage’s Rectangle has the blue box, then NO MATER WHERE I CLICK IN RECTANGLE1, the blue box doesn’t return to rectangle1. So I can’t get my Propeties to appear when the SETUP button is pushed. To do so, it seems the blue box needs to be around Rectangle1.

I believe we are refering to this as the selected view-item. Maybe the MIP Documentation should have a dictionary or similar, it does not have this.

What I suspect is missing in your plugin is in the samples. There is an event handler that pick up click events and ferry them on, like:

private void ViewItemUserControlMouseClick(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        FireClickEvent();
    }
    else if (e.Button == MouseButtons.Right)
    {
        FireRightClickEvent(e);
    }
}
 
private void ViewItemUserControlMouseDoubleClick(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        FireDoubleClickEvent();
    }
}

Hope it fits.