LoadingIndicators.WPF icon indicating copy to clipboard operation
LoadingIndicators.WPF copied to clipboard

Support variable size for all styles

Open kirilpopov opened this issue 9 years ago • 4 comments

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 avatar Oct 21 '16 08:10 kirilpopov

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

kirilpopov avatar Oct 21 '16 08:10 kirilpopov

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>

AlexanderHryk avatar Jan 12 '17 13:01 AlexanderHryk

@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 avatar Jan 13 '17 09:01 zeluisping

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 avatar Aug 01 '19 09:08 zeluisping