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

Any way to add a button to where the icon would be? #110

Open
hjavaher opened this issue Apr 2, 2019 · 3 comments
Open

Any way to add a button to where the icon would be? #110

hjavaher opened this issue Apr 2, 2019 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@hjavaher
Copy link

hjavaher commented Apr 2, 2019

Is there any way to add a button to the advancedEntry. I would love to put a button where the icon would be on the right hand of the entry. Is there any way?

@enisn enisn added enhancement New feature or request question Further information is requested labels Apr 2, 2019
@enisn
Copy link
Owner

enisn commented Apr 2, 2019

@hjavaher
That would be awesome feature.
I'm adding that TODO List and will include into InputKit.


Until I'll release new version you may try following steps:

XAML file

//...

            <input:AdvancedEntry
                x:Name="advEntry"
                Title="This is Title"
                Placeholder="SamplePlaceholder" />
//...

CS file

var advFrame = advEntry.Children.FirstOrDefault(x => x is Frame) as Frame;
advStackLayout = (advFrame.Content as Grid).Children.FirstOrDefault(x => x is StackLayout) as StackLayout;

advStackLayout .Children.Add(new Button
{
	Text = "My Button",
	BackgroundColor = Color.Accent,
	TextColor = Color.Accent.ToSurfaceColor()
});

Output
InputKit Button in AdvancedEntry

@hjavaher
Copy link
Author

hjavaher commented Apr 2, 2019

Man, buddy, you're on top of this. I don't know any other project that the owner is this responsive. Thank you and I will for sure try that!

@enisn
Copy link
Owner

enisn commented Apr 2, 2019

Man, buddy, you're on top of this. I don't know any other project that the owner is this responsive. Thank you and I will for sure try that!

Thank you for your interest 😄
I'll add this button option as a feature in future versions. But you can use that solution for now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants