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

Spin property still doesn't work during runtime #45

Closed
Elvaron opened this issue Apr 23, 2017 · 6 comments
Closed

Spin property still doesn't work during runtime #45

Elvaron opened this issue Apr 23, 2017 · 6 comments
Labels
Milestone

Comments

@Elvaron
Copy link

Elvaron commented Apr 23, 2017

My ViewModel contains:
public ObservableCollection<LogEntry> LogEntries { get; } = new ObservableCollection<LogEntry>();

with a UserControl for log entries:
UserControl.xaml.txt

which is added to a MetroWindow via a TransitioningContentControl.

Everything works - Text binding, icon binding, color binding - as far as the icons themselves are concerned, but they don't spin. Even if I change the binding to a static value of in the .xaml like Spin="True".

LogEntry class for reference, just in case, but it shouldn't make any difference:
LogEntry.cs.txt

@punker76
Copy link
Member

@Elvaron Which version do you use?

@punker76
Copy link
Member

@Elvaron Can you create a working sample app on GitHub? Thx.

@Elvaron
Copy link
Author

Elvaron commented Apr 24, 2017

Sorry for the delay, I'll supply an example in a few minutes.
Version is 1.9.0

@Elvaron
Copy link
Author

Elvaron commented Apr 24, 2017

Example project:
https://github.com/Elvaron/MahApps.Metro.IconPacks.IssueExample

Sorry about it being a bit more than strictly necessary, but extracting from existing code this way was easier than writing something from scratch.
In this case it's a command line application, my actual project is a VSIX Project, so the MetroWindow gets created from a context-menu entry click in Visual Studio.

Steps to reproduce: Clone, build, run, hit OK button. It creates a new log entry with 2 icons, one having static Spin="True" in the XAML, the other using Spin="{Binding Path=Spin}"

@punker76 punker76 added the Bug label Apr 24, 2017
@punker76 punker76 added this to the 1.9.1 milestone Apr 24, 2017
@punker76
Copy link
Member

@Elvaron I'll publish this with 1.9.1

@Elvaron
Copy link
Author

Elvaron commented Apr 24, 2017

Awesome! Thanks a lot for the fast response, and a great set of plugins!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants