I have a user control that is a spinning "wait" graphic. I've added it to a form and I set-up a convention in Caliburn.Micro using the code from this thread
I then created a property following the naming convention and named this user control accordingly:
<uc:LoadSpinner x:Name="Authenticating" />
My property looks like this:
protected bool _authenticatingIsVisible = false;
public bool AuthenticatingIsVisible
{
get { return _authenticatingIsVisible; }
set
{
_authenticatingIsVisible = value;
NotifyOfPropertyChange(() => AuthenticatingIsVisible);
}
}
I can see the control get bound and when the form starts up, the spinner is invisible. However, when I set it visible it still doesn't appear. To simplify things and test the binding I then created a rectangle on the form and named it the same way. It appears/disappears as expected. So it seems like it's either something specific to a user control or animations.
I also tried wrapping the user control inside of a Border control and naming it the same way (the idea was if normal controls worked, then the contained user control should appear/disappear when the Border does). Nope.
Why isn't this working?