ComponentFactory.Krypton.Toolkit.ButtonSpec.SetView C# (CSharp) Method

SetView() public method

Sets the current view associated with the button spec.
public SetView ( ViewBase view ) : void
view ViewBase View element reference.
return void
        public virtual void SetView(ViewBase view)
        {
            _buttonSpecView = view;
        }

Usage Example

        /// <summary>
        /// Destruct the previously created views.
        /// </summary>
        public void Destruct()
        {
            // Unhook from events
            _buttonSpec.ButtonSpecPropertyChanged -= new PropertyChangedEventHandler(OnPropertyChanged);

            // Remove buttonspec/view association
            _buttonSpec.SetView(null);

            // Remove all view element resources
            _viewCenter.Dispose();
        }
All Usage Examples Of ComponentFactory.Krypton.Toolkit.ButtonSpec::SetView