Inheritance: UiControl
示例#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);
        }
示例#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;
        }