Inheritance: UiControl
Example #1
0
        private object OnLabel(Label label)
        {
            INiCommandBarLabel command;

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

            command.Text    = _package.ResolveStringResource(label.Text);
            command.ToolTip = _package.ResolveStringResource(label.ToolTip);

            return(command);
        }
Example #2
0
        private object OnLabel(Label label)
        {
            INiCommandBarLabel command;
            ErrorUtil.ThrowOnFailure(_commandManager.CreateCommandBarLabel(
                label.Guid != Guid.Empty ? label.Guid : Guid.NewGuid(),
                label.Priority,
                out command
            ));

            command.Text = _package.ResolveStringResource(label.Text);
            command.ToolTip = _package.ResolveStringResource(label.ToolTip);

            return command;
        }