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

Update FloatingMenu.xaml.cs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update FloatingMenu.xaml.cs #2

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2019

Currently, when a children command is triggered, the menu icon does not change.
Why not execute MainButton.OnClickCommand so the menu collapse properly ?

(Sorry, first PR ever so I might be missing something to say)

When the command on a children is triggered, execute MainButton.OnClickCommand so the menu collapse properly (icon now change to the one as defined as CloseIcon).
Copy link
Owner

@Polarts Polarts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply, it's only now that I found out this repo had a PR waiting for approval.
Please make the requested change and run it for a test,
Thank you for your contribution! I hope you're still interested in this PR :)

@@ -119,7 +119,7 @@ void ArrangeChildren(object sender, EventArgs evt)
Children[i].Scale = 0.7;
AbsoluteLayout.SetLayoutBounds(Children[i], new Rectangle(0, (60 * i), 60, 60));
Children[i].Rotation = 180;
((FloatingButton)Children[i]).ExtraCommand = new Command(() => { Collapse(AnimationTime); });
((FloatingButton)Children[i]).ExtraCommand = new Command(() => { MainButton?.OnClickCommand.Execute(null); });
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this? As far as I remember, if you remove Collapse(AnimationTime) the menu won't collapse when a child is clicked.
Please re-add Collapse(AnimationTime) and confirm that it keeps working as intended.

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

Successfully merging this pull request may close these issues.

1 participant