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

Support custom ImageView #98

Open
EricLVertiGIS opened this issue Mar 3, 2025 · 0 comments
Open

Support custom ImageView #98

EricLVertiGIS opened this issue Mar 3, 2025 · 0 comments
Assignees

Comments

@EricLVertiGIS
Copy link

Description

SfButton has the property ImageSource, which is then used to render the Image. The property for the image is ActualImage in ButtonBase.cs. Instead of specifying the source, I would like to be able to assign the ActualImage property directly in order to put our custom, child class of Image into ActualImage.

Additionally, are we able to specify the spacing between the text and the image ? Could we specify the max lines for the text ?

Public API Changes

Make ActualImage property public or protected. Or expose a property for users to configure the Image view in SfButton.

Intended Use-Case

For us, we created a child class of Image that has the ability to tint images. We would like to place the tinted image into the SfButton. But the current SfButton only allows us to specify a source.

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

No branches or pull requests

3 participants