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 variable size for all styles #4

Open
kirilpopov opened this issue Oct 21, 2016 · 4 comments
Open

Support variable size for all styles #4

kirilpopov opened this issue Oct 21, 2016 · 4 comments

Comments

@kirilpopov
Copy link

kirilpopov commented Oct 21, 2016

Hi,

Thanks for the great library!

How can I change the size of the indicator. I tried with setting Width, Height , but most of the styles don't play well (e.g Wave is moved to the right instead stretching) or ignore (ThreeDots) these settings.

Is this supported?

Thanks,
Kiril

@kirilpopov
Copy link
Author

The tree styles that work with sizes are:
Pulse
FlipPlane
DoubleBounce

@AlexanderHryk
Copy link

AlexanderHryk commented Jan 12, 2017

kirilpopov, You can use RenderTransform to any style of these indicators without distortion of animation effect

<loadin:LoadingIndicator HorizontalAlignment="Left" SpeedRatio="1.0" IsActive="true" Foreground="Red" Style="{DynamicResource LoadingIndicatorArcsStyle}">
            <loadin:LoadingIndicator.RenderTransform>
                <ScaleTransform ScaleX="0.5" ScaleY="0.5" />
            </loadin:LoadingIndicator.RenderTransform>
</loadin:LoadingIndicator>

@zeluisping
Copy link
Owner

zeluisping commented Jan 13, 2017

@kirilpopov Using render transform is a workaround. Soon I should have time to get back to this and fix it. Until then, please use the workaround provided by @AlexanderHryk Thank you for warning me about this issue and for your support. Best of luck with your projects and sorry for the late reply

@zeluisping
Copy link
Owner

It would be nice if all of the loading styles would support this through a property, if anyone is up for picking this up feel free to create a PR.

As of the time of writing PR #6 would most likely be what any new PR would want to be based on as it will most likely be merged into master.

@zeluisping zeluisping changed the title Indicator sizes Support variable size for all styles Apr 6, 2022
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