Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Can Eto Create Accordion Controls/Dialogs? #665

Closed
8bitgentleman opened this issue Jan 12, 2017 · 3 comments
Closed

[Question] Can Eto Create Accordion Controls/Dialogs? #665

8bitgentleman opened this issue Jan 12, 2017 · 3 comments

Comments

@8bitgentleman
Copy link

I want to create a dialog that functions like this

photo1258206525175998431
photo1258206525175998430

So most options/values are hidden unless the button is pressed and then the dialog expands.

I've been looking through the controls page of your wiki and your documentation but haven't found a control that can do what I want.
Is this possible with Eto? If so, how and what control should I use?

@SlowLogicBoy
Copy link
Contributor

SlowLogicBoy commented Jan 13, 2017

Quick and dirty mock-up, sorry for non-standard coding style. Did this out of curiosity. Maybe someday good implementation/example could be added to Eto.Tests as an example (if there isn't already)

EDIT: removed my code. Use code provided by @cwensley below

@cwensley
Copy link
Member

A more complete example here. No need for a CollapserControl of sorts, you can just use the Visible property to show or hide the content.

Also created a python equivalent here.

@cwensley
Copy link
Member

I think this was answered, let me know if you have any problems with the example.

Cheers!
Curtis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants