Is there a default way to minimize/maximize and restore a panel or a window?

0 votes
asked Mar 20, 2017 in Help by danjakes (120 points)
I'm developing a certain desktop application which has this use case where the user needs to minimize/maximize and restore a panel or a window. Is there an in-built way to do this?

1 Answer

0 votes
answered Mar 24, 2017 by admin (31,720 points)
Hello!

Sorry but not, there's not builtin way to do that, but if you want to move the panel out of the screen, it should be pretty easy with some ease animation using for example DOTween http://dotween.demigiant.com/ or our own tween engine, with a reference to your panel, you can for example do:

TweenManager.TweenVector2(f => m_Parent.anchoredPosition = f, m_Parent.anchoredPosition, new Vector2(0, m_Parent.anchoredPosition.y), 0.5f);

This will move the anchoredPosition of the m_Parent RectTransform, from it's position, to a x position of 0.

~ Yohan
Welcome to MaterialUI support! Ask us anything :)
...