We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to stretch an Icon to make it bigger in only one dimension?
If I try to make it 30x80 as below, it only enlarges the bounding box but the icon remains squared and centered
<MaterialIcon Kind="SubdirectoryArrowRight" VerticalAlignment="Stretch" Width="30" Height="80" Background="Red" />
The text was updated successfully, but these errors were encountered:
Hello, @alessandrofrancesconi
This can be achieved via style in Avalonia (and probably overriding a control theme in other frameworks):
<Style Selector="avalonia|MaterialIcon /template/ Viewbox"> <Setter Property="Stretch" Value="Fill" /> </Style>
Does it solve your problem?
Sorry, something went wrong.
No branches or pull requests
Is there a way to stretch an Icon to make it bigger in only one dimension?
If I try to make it 30x80 as below, it only enlarges the bounding box but the icon remains squared and centered
<MaterialIcon Kind="SubdirectoryArrowRight" VerticalAlignment="Stretch" Width="30" Height="80" Background="Red" />
The text was updated successfully, but these errors were encountered: