1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- namespace GDNXFD.Alert.Config.Converters
- {
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Data;
-
-
-
- public class IdToVisibilityConverter : IValueConverter
- {
-
-
-
-
-
-
-
-
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- int val = System.Convert.ToInt32(value);
- if (val>0)
- {
- return Visibility.Visible;
- }
- return Visibility.Collapsed;
- }
-
-
-
-
-
-
-
-
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
- }
|