Example #1
0
        public Button CreateRibbonButton()
        {
            var fooCommand1 = new TestRoutedCommand();

            var button = new Button
            {
                Command   = fooCommand1.ItemCommand,
                Header    = "Foo",
                Icon      = new BitmapImage(new Uri(@"Images\Green.png", UriKind.Relative)),
                LargeIcon = new BitmapImage(new Uri(@"Images\GreenLarge.png", UriKind.Relative)),
            };

            this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
            return(button);
        }
        public Button CreateRibbonButton()
        {
            var fooCommand1 = new TestRoutedCommand();

            var button = new Button
            {
                Command = fooCommand1.ItemCommand,
                Header = "Foo",
                Icon = new BitmapImage(new Uri(@"Images\Green.png", UriKind.Relative)),
                LargeIcon = new BitmapImage(new Uri(@"Images\GreenLarge.png", UriKind.Relative)),
            };

            this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
            return button;
        }
        public Button CreateRibbonButton()
        {
            var fooCommand1 = new TestRoutedCommand();

            var button = new Button
            {
                Command = fooCommand1.ItemCommand,
                Header = "Foo",
                Icon = new BitmapImage(new Uri(@"pack://*****:*****@"pack://application:,,,/Fluent.Ribbon.Showcase;component/Images/GreenLarge.png", UriKind.Absolute)),
            };

            this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
            return button;
        }
Example #4
0
        public Button CreateRibbonButton()
        {
            var fooCommand1 = new TestRoutedCommand();

            var button = new Button
            {
                Command   = fooCommand1.ItemCommand,
                Header    = "Foo",
                Icon      = new BitmapImage(new Uri("pack://application:,,,/CognitiveLoop.Frontend;component/Images/Green.png", UriKind.Absolute)),
                LargeIcon = new BitmapImage(new Uri("pack://application:,,,/CognitiveLoop.Frontend;component/Images/GreenLarge.png", UriKind.Absolute)),
            };

            this.CommandBindings.Add(fooCommand1.ItemCommandBinding);
            return(button);
        }