public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { Debug.Assert(targetType == typeof(Visibility)); bool animated = (bool)values[0]; TextureType currentTextureType = (TextureType)values[1]; return(animated && HorizontalFramesVisibleTypes.Contains(currentTextureType) ? VisibleObject : CollapsedObject); }
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { Debug.Assert(targetType == typeof(Visibility)); // todo: remove when animate in gui is supported return(CollapsedObject); bool animated = (bool)values[0]; TextureType currentTextureType = (TextureType)values[1]; return(animated && AnimateInGuiVisibleTypes.Contains(currentTextureType) ? VisibleObject : CollapsedObject); }