Inheritance: UiControl
Beispiel #1
0
        private object OnTextBox(TextBox textBox)
        {
            INiCommandBarTextBox command;

            ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarTextBox(
                                         textBox.Guid != Guid.Empty ? textBox.Guid : Guid.NewGuid(),
                                         textBox.Priority,
                                         out command
                                         ));

            command.ToolTip = _package.ResolveStringResource(textBox.ToolTip);
            command.Style   = Enum <NiCommandBarTextBoxStyle> .Parse(textBox.Style.ToString());

            return(command);
        }
Beispiel #2
0
        private object OnTextBox(TextBox textBox)
        {
            INiCommandBarTextBox command;
            ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarTextBox(
                textBox.Guid != Guid.Empty ? textBox.Guid : Guid.NewGuid(),
                textBox.Priority,
                out command
            ));

            command.ToolTip = _package.ResolveStringResource(textBox.ToolTip);
            command.Style = Enum<NiCommandBarTextBoxStyle>.Parse(textBox.Style.ToString());

            return command;
        }