ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / Accordion Class / AutoSwitch Property






In This Topic
    AutoSwitch Property (Accordion)
    In This Topic
    Gets or sets a value that determines whether the control should switch panes automatically when the user selects a pane using the arrow keys.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(True)>
    Public Property AutoSwitch As System.Boolean
    'Usage
     
    
    Dim instance As Accordion
    Dim value As System.Boolean
     
    instance.AutoSwitch = value
     
    value = instance.AutoSwitch
    [System.ComponentModel.DefaultValue(true)]
    public System.bool AutoSwitch {get; set;}
    public read-write property AutoSwitch: System.Boolean; 
    System.ComponentModel.DefaultValueAttribute()
    public function get,set AutoSwitch : System.boolean
    [System.ComponentModel.DefaultValue(true)]
    public: __property System.bool get_AutoSwitch();
    public: __property void set_AutoSwitch( 
       System.bool value
    );
    [System.ComponentModel.DefaultValue(true)]
    public:
    property System.bool AutoSwitch {
       System.bool get();
       void set (    System.bool value);
    }
    Remarks
    When AutoSwitch is set to true (the default value), pressing the arrow keys automatically switches panes. Pressing the tab key selects the next element in the panes sequence, which excludes non-selected pane headers. When AutoSwitch is set to false, pressing the arrow keys or the tab key moves the focus to the next or previous pane header, but does not switch panes. Pressing the Enter or Space keys is required to activate the pane that has the focus.
    See Also