Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public UpdatableFetchState(EFetchState initialStatus = EFetchState.Loading)
 {
     this.CurrentState = new EFetchState();
 }
Ejemplo n.º 3
0
 public FetchStateVisibilityConverter(EFetchState expectedState)
     : this(new EFetchState[1] {
     expectedState
 })
 {
 }
Ejemplo n.º 4
0
 public FetchStateChangedEventArgs(EFetchState oldValue,
                                   EFetchState newValue)
 {
     this.OldValue = oldValue;
     this.NewValue = newValue;
 }