private void CreateControls(int? verbId, string verbName, int verbTypeId) { Grid grid_main = new Grid(); grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); Button button_modifyVerb = new Button() { Content = "Modify Verb" }; button_modifyVerb.Click += Button_UpdateVerb_Click; grid_main.SetGridRowColumn(button_modifyVerb, 0, 0); m_userControl_verb = new UserControl_Verb(verbId, verbName, verbTypeId, false); grid_main.SetGridRowColumn(m_userControl_verb, 1, 0); m_userControl_verb.SetActiveAndRegisterForGinTubEvents(); Border border = new Border() { Style = new Style_DefaultBorder(), Child = grid_main }; Content = border; }
private UIElement CreateControls(int? verbId, string verbName, int verbTypeId) { m_userControl_verb = new UserControl_Verb(verbId, verbName, verbTypeId, true); return m_userControl_verb; }