public object Convert(object value, Type targetType, object parameter, string language) { Assert.That(value is EFetchState); EFetchState fetchState = (EFetchState)value; return(this.ExpectedStates.Contains(fetchState) ? Visibility.Visible : Visibility.Collapsed); }
public UpdatableFetchState(EFetchState initialStatus = EFetchState.Loading) { this.CurrentState = new EFetchState(); }
public FetchStateVisibilityConverter(EFetchState expectedState) : this(new EFetchState[1] { expectedState }) { }
public FetchStateChangedEventArgs(EFetchState oldValue, EFetchState newValue) { this.OldValue = oldValue; this.NewValue = newValue; }