Dreamine.UI.Wpf 1.0.1
Dreamine.UI.Wpf 사용자 인터페이스 기능과 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
OffsetMarginConverter.cs
이 파일의 문서화 페이지로 가기
1using System;
2using System.Collections.Generic;
3using System.Globalization;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7using System.Windows.Data;
8using System.Windows;
9
11{
20 public class OffsetMarginConverter : IValueConverter
21 {
70 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
71 {
72 if (value is double width)
73 return new Thickness(width + 8, 0, 0, 0);
74 return new Thickness(0);
75 }
76
133 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
134 => throw new NotImplementedException();
135 }
136
137}
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)