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