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