Dreamine.UI.Wpf 1.0.1
Dreamine.UI.Wpf 사용자 인터페이스 기능과 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
VisibilityToIntegerConverter.cs
이 파일의 문서화 페이지로 가기
1using System.Globalization;
2using System.Windows;
3using System.Windows.Data;
4
6
15public class VisibilityToIntegerConverter : IValueConverter
16{
25 public bool IsInversed { get; set; }
74 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
75 {
76 if (value is Visibility visibility)
77 {
78 return visibility == Visibility.Visible ^ !IsInversed ? 1 : 0;
79 }
80
81 return 0;
82 }
83
140 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
141 {
142 throw new NotImplementedException();
143 }
144}
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
object Convert(object value, Type targetType, object parameter, CultureInfo culture)