Fluent.CheckBox.CreateQuickAccessItem C# (CSharp) Method

CreateQuickAccessItem() public method

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
return System.Windows.FrameworkElement
        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;
        }