123456789101112131415161718192021222324252627282930313233 |
- 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 CyberX8_MainPages.Converters
- {
- public class IntToPathDataConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- 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;
- }
- }
- }
|