nmetulev / comet

Universal Windows Platform (UWP) toolkit library. Contains controls for creating great user experiences for Universal Windows Applications
MIT License
59 stars 12 forks source link

Binding MVVM command #8

Open priombiswas89 opened 8 years ago

priombiswas89 commented 8 years ago

private void listView_PullProgressChanged(object sender, Comet.Controls.RefreshProgressEventArgs e) { if (e.PullProgress < 0.5) transform.RotationX = 0; else transform.RotationX = 180 * ((e.PullProgress - 0.5) * 2);

        refreshText.Visibility = e.PullProgress < 1 ? Visibility.Collapsed : Visibility.Visible;
    }

this code is not working for me. No animation is occuring when i pull down the list box. A default Refresh Indicator should be added to the control. Otherwise the control is working great

nmetulev commented 8 years ago

Thanks for the feedback Priom. I'll take a look at this asap.

There is a default content for RefreshIndicatorContent that should be there if you don't specify your own, does it not show up for you? It should say "Pull to Refresh" and "Release to Refresh" as you pull.

priombiswas89 commented 8 years ago

It is showing up but a visual element like a refresh logo with spinning animation would be great as default refresh indicator content because implementing and animating using path geometry is not so easy for normal developers like us. Anyway thanks for your control. It works seamlessly.

nmetulev commented 8 years ago

I tried your code above and it seems to be working ok, the element is rotating as I'm pulling the content. Do you have a repro project you can send me that I can take a look at?

re: spinning animation, good feedback, I'll see if I can add it.

priombiswas89 commented 8 years ago

I don't have one right now. If you update the library with a default spinning animation that would be of great help.