Git Product home page Git Product logo

loadingindicators.wpf's Introduction

LoadingIndicators.WPF

Demo

LoadingIndicators.WPF is a collection of 8 animated loading indicators for WPF compatible with MahApps.Metro.

Styles

  • Arcs
  • Arcs Ring
  • Double Bounce
  • FlipPlane
  • Pulse
  • Ring
  • Three Dots
  • Wave

Features

  • Variable Animation Speed
  • Easy activation/deactivation
  • Easy change of theme using resources
  • Out of the box MahApps.Metro compatibility

Usage

  • Include Namespace
<Window ...
        xmlns:li="http://github.com/zeluisping/loadingIndicators/xaml/controls">
  • Add Loading indicator and select mode
<li:LoadingIndicator Grid.Column="0" Grid.Row="0" SpeedRatio="{Binding SpeedRatio}" IsActive="{Binding IsArcsActive}" Mode="Arcs" />

Note: Waves mode will be selected by default if left empty

loadingindicators.wpf's People

Contributors

sigmarsson avatar victorprocure avatar zeluisping avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loadingindicators.wpf's Issues

Single Arc Docs

The new loading indicator added with #13 needs to be added to the README

  • bonus: update gif also to include the new style

Small size doesn't work for most of styles

It would be nice if the loading indicators worked in small sizes...

For example, setting Height=20 and Width=20 for Arc, ArcsRing, Ring doesn't matter: the control doesn't respect that size.

Is there a easy way to fix that?

The property "Mode" does not exist in the XML namespace

When attempting to use the assembly from Nuget I get the following error...

The property 'Mode' does not exist in XML namespace 'clr-namespace:LoadingIndicators.WPF;assembly=LoadingIndicators.WPF'.

When Inspecting the assembly in the Object Browser, it is correct; The "Mode" property does not exist.

Invalid namespace

The URL in the README section:

<Window ...
        xmlns:li="http://github.com/zeluisping/loadingIndicators/xaml/controls">

Points to a 404 error, and the app can't recognize the namespace.

Support variable size for all styles

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

Unable to perform action because the specified Storyboard was never applied to this object for interactive control.

Hi,

thanks for the library, works awesome. Just wanted to ask you something. When i use your loading indicator, i get the following warning in output window:

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='SetSpeedRatio'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55397001'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Controls.Border'; TargetElement.HashCode='36423148'; TargetElement.Type='System.Windows.Controls.Border'

"IsActive" property is done with binding, but SpeedRatio is just hardcoded in xaml and set to "2.0". Any thoughts on this?

All the best,
Bane

Property "Mode" missing, resource styles not imported

Using the available nuget packages,

the loading indicators will not show up.

As a workaround we can add the resource dictionaries from the referenced library like this: In App.xaml add

<ResourceDictionary Source="pack://application:,,,/LoadingIndicators.WPF;component/styles/LoadingThreeDots.xaml"/>

and then we can use the style keys

<wpf:LoadingIndicator Style="{StaticResource LoadingIndicatorThreeDotsStyleKey}"/>

LoadingIndicator is not showing on top of other controls

Loading Indicator control is not coming on top of ContentControl.
I tried two different approaches but still it is not showing on top.

Example 1:

<ContentControl>
    <ContentControl.Template>
        <ControlTemplate TargetType="ContentControl">
            <Grid>
                <ContentPresenter />
                <loadin:LoadingIndicator SpeedRatio="{Binding SpeedRatio}" IsActive="{Binding IsBusy}" Style="{DynamicResource LoadingIndicatorArcsStyle}"/>
            </Grid>
        </ControlTemplate>        
    </ContentControl.Template>
</ContentControl>

Example 2 using Adorner:

    <ContentControl>
        <ContentControl.Template>
            <ControlTemplate TargetType="ContentControl">
                <Grid>
                    <fsx:AdornedControl IsAdornerVisible="{Binding IsBusy}">
                        <fsx:AdornedControl.AdornerContent>
                            <loadin:LoadingIndicator SpeedRatio="{Binding SpeedRatio}" IsActive="{Binding IsBusy}" Style="{DynamicResource LoadingIndicatorArcsStyle}"/>
                        </fsx:AdornedControl.AdornerContent>
                        <ContentPresenter />
                    </fsx:AdornedControl>
                </Grid>
            </ControlTemplate>
        </ContentControl.Template>
    </ContentControl>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.