protected override NWidget CreateExampleControls()
        {
            NStackPanel stack = new NStackPanel();

            stack.FitMode  = ENStackFitMode.First;
            stack.FillMode = ENStackFillMode.First;

            // Create the opened windows tree view
            m_TreeView = new NTreeView();
            m_TreeView.SelectedPathChanged += new Function <NValueChangeEventArgs>(OnTreeViewSelectedPathChanged);
            stack.Add(m_TreeView);

            // create some command buttons
            m_ButtonsStack = new NStackPanel();
            m_ButtonsStack.HorizontalSpacing = 3;
            m_ButtonsStack.Direction         = ENHVDirection.LeftToRight;
            m_ButtonsStack.Add(new NButton(ActivateButtonText));
            m_ButtonsStack.Add(new NButton(FocusButtonText));
            m_ButtonsStack.Add(new NButton(CloseButtonText));

            // capture the button click for the buttons at stack panel level
            m_ButtonsStack.AddEventHandler(NButton.ClickEvent, new NEventHandler <NEventArgs>(new Function <NEventArgs>(OnWindowActionButtonClicked)));

            m_ButtonsStack.Enabled = false;
            stack.Add(m_ButtonsStack);

            NGroupBox openedWindowsGroupBox = new NGroupBox("Opened Windows", stack);

            // Add the events log
            m_EventsLog = new NExampleEventsLog();

            // Add the opened windows group box and the events log to a splitter
            NSplitter splitter = new NSplitter(openedWindowsGroupBox, m_EventsLog, ENSplitterSplitMode.OffsetFromNearSide, 250);

            splitter.Orientation = ENHVOrientation.Vertical;
            return(splitter);
        }