using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Data; using System.Windows.Media; namespace Venus_MainPages.Converters { public class IntToPathDataConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) return Application.Current.Resources["Icon_Resume"] as Geometry; var item = (int)value; if (item == 4) { return Application.Current.Resources["Icon_Resume"] as Geometry; } else { return Application.Current.Resources["Icon_Pause"] as Geometry; } } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return null; } } }