Welcome, Guest  :: Login 

ActionSet.Navigators Namespace

SimpleNavigator MDI Component

SimpleNavigatorMDI is simplified MDI implementation as known from Access 2007. Control has the left side navigation and right side where screens for each item are being shown.

PureComponents made usage easier for you and with override of a single event you can provide the content for the page being shown. Content is being requested upon the click on the item. Once user clicks the item, then event SimpleNavigatorMDI.MDIControlContentRequest is fired.

Check the sample code below to illustrate the situation.

Adding content

We have SimpleNavigatorMDI1 as the instance of SimpleNavigatorMDI and UserControl1 as the user control we want to show inside the MDI area for each of the items that will be double-clicked by the user.

private void SimpleNavigatorMDI1_MDIControlContentRequest(object sender,
PureComponents.ActionSet.Navigators.MDIControlContentRequestEventArgs e)
{
  UserControl1 myUserControl = new UserControl1();
  e.Content = myUserControl;
  e.IsMDI = true;
  myUserControl.Label1.Text = e.Item.Text;
}

As you can see it is pretty easy. There are however several points of interest. Setting the IsMDI property of the event args to false will shown the content as modal dialog. This is useful when some items in the navigation are of type "once-off" actions.

See also

SimpleNavigator Component