| 12345678910111213141516171819202122232425 | 
							- using System;
 
- using System.Windows;
 
- using System.Windows.Data;
 
- namespace CyberX8_MainPages.Converters
 
- {
 
-     public class BoolVisibilityConverter : IValueConverter
 
-     {
 
-         public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             if(value==null)
 
-             {
 
-                 return Visibility.Collapsed;
 
-             }
 
-             var item = (bool)value;
 
-             return item?Visibility.Visible:Visibility.Collapsed;
 
-         }
 
-         public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 
-         {
 
-             return null;
 
-         }
 
-     }
 
- }
 
 
  |