private void CreateControls()
        {
            m_grid_main = new Grid();
            m_grid_main.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(50.0, GridUnitType.Star) });
            m_grid_main.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(50.0, GridUnitType.Star) });

            m_comboBox_verbType =
                new ComboBox_VerbType()
                {
                    VerticalAlignment = System.Windows.VerticalAlignment.Top
                };
            m_comboBox_verbType.SetActiveAndRegisterForGinTubEvents(); // never unregister; we want updates no matter where we are
            m_comboBox_verbType.SelectionChanged += ComboBox_VerbType_SelectionChanged;
            m_grid_main.SetGridRowColumn(m_comboBox_verbType, 0, 0);

            ////////
            // Fin
            Content = m_grid_main;
        }
        private void CreateControls()
        {
            Grid grid_main = new Grid();
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });

            ////////
            // Id Grid
            Grid grid_id = new Grid();
            grid_id.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_id.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            grid_main.SetGridRowColumn(grid_id, 0, 0);

            ////////
            // Id
            TextBlock textBlock_id =
                new TextBlock()
                {
                    VerticalAlignment = VerticalAlignment.Center,
                    Text = (ActionId.HasValue) ? ActionId.ToString() : "NewAction"
                };
            Label label_id = new Label() { Content = "Id:", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            grid_id.SetGridRowColumn(textBlock_id, 0, 1);
            grid_id.SetGridRowColumn(label_id, 0, 0);

            ////////
            // VerbType Grid
            Grid grid_verbType = new Grid();
            grid_verbType.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_verbType.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(100.0, GridUnitType.Star) });
            grid_main.SetGridRowColumn(grid_verbType, 1, 0);

            ////////
            // VerbType
            m_comboBox_verbType = new ComboBox_VerbType();
            m_comboBox_verbType.SetActiveAndRegisterForGinTubEvents(); // never unregister; we want updates no matter where we are
            m_comboBox_verbType.SelectionChanged += ComboBox_VerbType_SelectionChanged;
            Label label_verbType = new Label() { Content = "Verb Type:", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            grid_verbType.SetGridRowColumn(m_comboBox_verbType, 1, 0);
            grid_verbType.SetGridRowColumn(label_verbType, 0, 0);

            ////////
            // Noun Grid
            Grid grid_noun = new Grid();
            grid_noun.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_noun.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(100.0, GridUnitType.Star) });
            grid_main.SetGridRowColumn(grid_noun, 2, 0);

            ////////
            // Noun
            m_comboBox_noun = new ComboBox_Noun(ParagraphStateId);
            m_comboBox_noun.SetActiveAndRegisterForGinTubEvents(); // never unregister; we want updates no matter where we are
            m_comboBox_noun.SelectionChanged += ComboBox_Noun_SelectionChanged;
            Label label_noun = new Label() { Content = "Noun:", FontWeight = FontWeights.Bold, VerticalAlignment = VerticalAlignment.Center };
            grid_noun.SetGridRowColumn(m_comboBox_noun, 1, 0);
            grid_noun.SetGridRowColumn(label_noun, 0, 0);

            ////////
            // Fin
            Content = grid_main;
        }