| 12345678910111213141516171819202122232425262728 | 
							- using System;
 
- using System.Windows.Data;
 
- using System.Windows.Media;
 
- namespace CyberX8_MainPages.Converters
 
- {
 
-     public class IsOnlineToColorConverter:IValueConverter
 
-     {
 
-         public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             var item = (bool)value;
 
-             if (item == true)
 
-             {
 
-                 return new SolidColorBrush((Color)ColorConverter.ConvertFromString("#396293"));
 
-             }
 
-             else
 
-             {
 
-                 return new SolidColorBrush(Colors.Gray);
 
-             }
 
-         }
 
-         public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             return null;
 
-         }
 
-     }
 
- }
 
 
  |