Open.Core.Controls.Buttons.ButtonView.TemplateForState C# (CSharp) Method

TemplateForState() public method

Creates a Template with the specified selector and adds it as content for the given state.
public TemplateForState ( int layer, ButtonState state, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void
layer int The layer the state is rendered on (0 lowest, higher values fall in front of lower values)
state ButtonState The state the template applies to.
templateSelector string The CSS selector where the template can be found.
enabledCondition EnabledCondition The enabled-related conditions for which button content applies.
focusCondition FocusCondition The focus-related conditions for which button content applies.
return void
        public void TemplateForState(int layer, ButtonState state, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition)
        {
            TemplateForStates(layer, new ButtonState[] { state }, templateSelector, enabledCondition, focusCondition);
        }

Same methods

ButtonView::TemplateForState ( int layer, ButtonState state, string templateSelector ) : void