Inheritance: ToggleButton
Esempio n. 1
0
    void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
    {
        switch (connectionId)
        {
        case 1:
            this.CancelButton = ((Fluent.Button)(target));
            return;

        case 2:
            this.OKButton = ((Fluent.Button)(target));
            return;

        case 3:
            this.Grid1 = ((System.Windows.Controls.Grid)(target));
            return;

        case 4:
            this.RadioButton12 = ((Fluent.RadioButton)(target));
            return;

        case 5:
            this.AMPMCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 6:
            this.RadioButton24 = ((Fluent.RadioButton)(target));
            return;

        case 7:
            this.SecCheckBox = ((Fluent.CheckBox)(target));
            return;
        }
        this._contentLoaded = true;
    }
Esempio n. 2
0
    void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
    {
        switch (connectionId)
        {
        case 1:
            this.CloseButton = ((Fluent.Button)(target));
            return;

        case 2:
            this.TextBlock1 = ((System.Windows.Controls.TextBlock)(target));
            return;

        case 3:
            this.TextBlock2 = ((System.Windows.Controls.TextBlock)(target));
            return;

        case 4:
            this.ShowOnStartupCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 5:
            this.OnlineHelpButton = ((Fluent.Button)(target));
            return;

        case 6:
            this.GetPluginsButton = ((Fluent.Button)(target));
            return;

        case 7:
            this.WebsiteButton = ((Fluent.Button)(target));
            return;
        }
        this._contentLoaded = true;
    }
 /// <summary>
 /// Gets control which represents shortcut item.
 /// This item MUST be syncronized with the original 
 /// and send command to original one control.
 /// </summary>
 /// <returns>Control which represents shortcut item</returns>
 public override FrameworkElement CreateQuickAccessItem()
 {
     CheckBox checkBox = new CheckBox();
     checkBox.VerticalAlignment = VerticalAlignment.Center;
     BindQuickAccessItem(checkBox);
     return checkBox;
 }
Esempio n. 4
0
        private UIElement CreateCheckbox(object parameter, ToolbarElement element, bool isContextual, Func <object> getContext)
        {
            var command = element.Element as ICommand;

            if (command == null)
            {
                return(null);
            }

            var checkBox = new Fluent.CheckBox
            {
                Header    = !string.IsNullOrEmpty(element.Text) ? element.Text : command.Text,
                IsEnabled = command.CanExecute(parameter),
                IsChecked = command.IsChecked
            };

            if (!string.IsNullOrEmpty(command.ToolTip))
            {
                checkBox.ToolTip = command.ToolTip;
            }

            if (!string.IsNullOrEmpty(command.InputGestureText))
            {
                checkBox.KeyTip = command.InputGestureText;
            }

            checkBox.Click += delegate
            {
                var context = getContext();
                if (context == null)
                {
                    return;
                }

                if (command.CanExecute(context))
                {
                    command.Execute(context);
                }
            };

            if (!isContextual)
            {
                _toolbarButtons[checkBox] = command;
            }

            return(checkBox);
        }
Esempio n. 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.groupL = ((Fluent.RibbonGroupBox)(target));
                return;

            case 2:
                this.select = ((Fluent.Button)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.select.Click += new System.Windows.RoutedEventHandler(this.SelectButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.cobFF = ((Fluent.ComboBox)(target));
                return;

            case 4:
                this.cobFS = ((Fluent.ComboBox)(target));
                return;

            case 5:
                this.cobFC = ((Fluent.ComboBox)(target));
                return;

            case 6:
                this.colorGallery = ((Fluent.ColorGallery)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.colorGallery.SelectedColorChanged += new System.Windows.RoutedEventHandler(this.ColorGallery_SelectedColorChanged);

            #line default
            #line hidden
                return;

            case 7:

            #line 92 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.EraserButton_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 93 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ArrowButton_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 94 "..\..\MainWindow.xaml"
                ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PenButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Tools = ((Fluent.RibbonGroupBox)(target));
                return;

            case 11:
                this.toolsGallery = ((Fluent.InRibbonGallery)(target));

            #line 123 "..\..\MainWindow.xaml"
                this.toolsGallery.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.InRibbonGallery_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.gro = ((Fluent.RibbonGroupBox)(target));
                return;

            case 13:
                this.IsCheckBox14 = ((Fluent.CheckBox)(target));
                return;

            case 14:
                this.IsCheckBox15 = ((Fluent.CheckBox)(target));
                return;

            case 15:
                this.IsCheckBox16 = ((Fluent.CheckBox)(target));
                return;

            case 16:
                this.canvas = ((System.Windows.Controls.InkCanvas)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.canvas.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ink_MouseWheel);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 6
0
        /// <summary>
        /// Gets control which represents shortcut item.
        /// This item MUST be syncronized with the original 
        /// and send command to original one control.
        /// </summary>
        /// <returns>Control which represents shortcut item</returns>
        public virtual FrameworkElement CreateQuickAccessItem()
        {
            CheckBox button = new CheckBox();

            RibbonControl.Bind(this, button, "IsChecked", IsCheckedProperty, BindingMode.TwoWay);
            button.Click += ((sender, e) => RaiseEvent(e));
            RibbonControl.BindQuickAccessItem(this, button);
            
            return button;
        }
Esempio n. 7
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\..\MainWindow.xaml"
     ((WpfWebcamServer.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 15 "..\..\..\MainWindow.xaml"
     ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ConfigButton_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 16 "..\..\..\MainWindow.xaml"
     ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ConfigButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 17 "..\..\..\MainWindow.xaml"
     ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ConfigButton_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 32 "..\..\..\MainWindow.xaml"
     ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.cbxDevice = ((Fluent.ComboBox)(target));
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.cbxDevice.SelectionChanged += new System.EventHandler(this.cbxDevice_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.chkRecord = ((Fluent.CheckBox)(target));
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.chkRecord.Checked += new System.EventHandler(this.chkRecord_Checked);
     
     #line default
     #line hidden
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.chkRecord.Unchecked += new System.EventHandler(this.chkRecord_Checked);
     
     #line default
     #line hidden
     return;
     case 8:
     this.chkSound = ((Fluent.CheckBox)(target));
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.chkSound.Checked += new System.EventHandler(this.chkSound_Checked);
     
     #line default
     #line hidden
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.chkSound.Unchecked += new System.EventHandler(this.chkSound_Checked);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 36 "..\..\..\MainWindow.xaml"
     ((Fluent.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DetectButton_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.pnlWebcam = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 11:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     
     #line 51 "..\..\..\MainWindow.xaml"
     this.tabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 12:
     this.lstClient = ((System.Windows.Controls.ListBox)(target));
     return;
     case 13:
     this.lstStatus = ((System.Windows.Controls.ListBox)(target));
     return;
     case 14:
     this.videoPanel = ((System.Windows.Controls.WrapPanel)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 8
0
    void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
    {
        switch (connectionId)
        {
        case 1:
            this.OptionsDialog = ((OptionsDialog)(target));
            return;

        case 2:
            this.CancelButton = ((Fluent.Button)(target));
            return;

        case 3:
            this.OKButton = ((Fluent.Button)(target));
            return;

        case 4:
            this.ResetButton = ((Fluent.Button)(target));
            return;

        case 5:
            this.TabCell = ((System.Windows.Controls.TabControl)(target));
            return;

        case 6:
            this.GeneralTabItem = ((System.Windows.Controls.TabItem)(target));
            return;

        case 7:
            this.StartupGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 8:
            this.StartUpComboBox = ((Fluent.ComboBox)(target));
            return;

        case 9:
            this.ShowStartupDialogCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 10:
            this.ThemeGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 11:
            this.ThemeComboBox = ((Fluent.ComboBox)(target));
            return;

        case 12:
            this.EnableGlassCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 13:
            this.TextToSpeechGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 14:
            this.TTSComboBox = ((Fluent.ComboBox)(target));
            return;

        case 15:
            this.TTSSlider = ((Fluent.Spinner)(target));
            return;

        case 16:
            this.RecentDocumentsGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 17:
            this.ClearRecentButton = ((Fluent.Button)(target));
            return;

        case 18:
            this.RecentDocumentsCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 19:
            this.RulerMeasurementComboBox = ((Fluent.ComboBox)(target));
            return;

        case 20:
            this.GroupBox3 = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 21:
            this.Label3 = ((System.Windows.Controls.Label)(target));
            return;

        case 22:
            this.ComboBox1 = ((System.Windows.Controls.ComboBox)(target));
            return;

        case 23:
            this.CloseButtonGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 24:
            this.CloseButtonComboBox = ((Fluent.ComboBox)(target));
            return;

        case 25:
            this.SpellCheckGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 26:
            this.SpellCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 27:
            this.DefaultFontGroupBox = ((System.Windows.Controls.GroupBox)(target));
            return;

        case 28:
            this.FontFaceComboBox = ((Fluent.ComboBox)(target));
            return;

        case 29:
            this.FontSizeTextBox = ((Fluent.Spinner)(target));
            return;

        case 30:
            this.TabPlacementComboBox = ((Fluent.ComboBox)(target));
            return;

        case 31:
            this.TemplatesListBox = ((System.Windows.Controls.ListBox)(target));
            return;

        case 32:
            this.AddTemplateButton = ((Fluent.Button)(target));
            return;

        case 33:
            this.RemoveTemplateButton = ((Fluent.Button)(target));
            return;

        case 34:
            this.TemplatesFolderButton = ((Fluent.Button)(target));
            return;

        case 35:
            this.PluginsListBox = ((System.Windows.Controls.ListBox)(target));
            return;

        case 36:
            this.PluginAddButton = ((Fluent.Button)(target));
            return;

        case 37:
            this.PluginRemoveButton = ((Fluent.Button)(target));
            return;

        case 38:
            this.PluginsCheckBox = ((Fluent.CheckBox)(target));
            return;

        case 39:
            this.PluginsFolderButton = ((Fluent.Button)(target));
            return;

        case 40:
            this.Label6 = ((System.Windows.Controls.Label)(target));
            return;
        }
        this._contentLoaded = true;
    }
Esempio n. 9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbon = ((Fluent.Ribbon)(target));
                return;

            case 2:
                this.homeTabItem = ((Fluent.RibbonTabItem)(target));
                return;

            case 3:
                this.themesGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 4:
                this.silverThemeBtn = ((Fluent.Button)(target));

            #line 60 "..\..\MainWindowContent.xaml"
                this.silverThemeBtn.Click += new System.Windows.RoutedEventHandler(this.silverThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.blackThemeBtn = ((Fluent.Button)(target));

            #line 63 "..\..\MainWindowContent.xaml"
                this.blackThemeBtn.Click += new System.Windows.RoutedEventHandler(this.blackThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.blueThemeBtn = ((Fluent.Button)(target));

            #line 66 "..\..\MainWindowContent.xaml"
                this.blueThemeBtn.Click += new System.Windows.RoutedEventHandler(this.blueThemeBtn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DontUseDwm = ((Fluent.CheckBox)(target));

            #line 67 "..\..\MainWindowContent.xaml"
                this.DontUseDwm.Click += new System.Windows.RoutedEventHandler(this.DontUseDwm_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.memoryGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 9:
                this.releaseSelfMmryBtn = ((Fluent.Button)(target));
                return;

            case 10:
                this.releaseAllMmryBtn = ((Fluent.Button)(target));
                return;

            case 11:
                this.ViewTabItem = ((Fluent.RibbonTabItem)(target));
                return;

            case 12:
                this.displayRangeGroupBox = ((Fluent.RibbonGroupBox)(target));
                return;

            case 13:
                this.imageGallery = ((Hywire.ImageProcessing.ImageDisplayer.View.ImageGallery)(target));
                return;
            }
            this._contentLoaded = true;
        }