سؤال

I want to know if an expander is expanded or not. Something like this:

Boolean getExpanderStatus= myExpander.isExpanded()

But this does not work as "Non -invocable 'System.Windows.Controls.Expander.IsExpanded' cannot be used like a method.

I'm sure there'll be an annoyingly simple answer to this.

Thanks in Advance.

هل كانت مفيدة؟

المحلول

IsExpanded is a property, not a method.

Properties behave like variables; they don't use parentheses.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top