示例#1
0
        public Fluent.Button CreateRibbonButton()
        {
            Fluent.Button button      = new Fluent.Button();
            FooCommand1   fooCommand1 = new FooCommand1();

            button.Command = fooCommand1.ItemCommand;

            button.Text = "Foo";

            this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
            return(button);
        }
 public Fluent.Button CreateRibbonButton()
 {
     Fluent.Button button = new Fluent.Button();
     FooCommand1 fooCommand1 = new FooCommand1();
     button.Command = fooCommand1.ItemCommand;
     
     button.Header = "Foo";
     
     this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
     return button;
 }