Dreamine.UI.Wpf
1.0.1
Dreamine.UI.Wpf 사용자 인터페이스 기능과 구성 요소를 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
FormatToExampleConverter.cs
이 파일의 문서화 페이지로 가기
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Globalization;
4
using
System.Linq;
5
using
System.Text;
6
using
System.Threading.Tasks;
7
using
System.Windows.Data;
8
9
namespace
Dreamine.UI.Wpf.Converters
10
{
19
public
enum
InputFormat
20
{
29
ASCII
,
38
HEX
39
}
40
49
public
class
FormatToExampleConverter
: IValueConverter
50
{
99
public
object
Convert
(
object
value, Type targetType,
object
parameter, CultureInfo culture)
100
{
101
if
(value is
InputFormat
fmt)
102
{
103
return
fmt ==
InputFormat.ASCII
104
?
"예시: \\s123\\e\\n\\,실제텍스트"
105
:
"예시: 02 32 33 34 03,32"
;
106
}
107
return
""
;
108
}
109
166
public
object
ConvertBack
(
object
value, Type targetType,
object
parameter, CultureInfo culture)
167
=>
throw
new
NotSupportedException();
168
}
169
}
Dreamine.UI.Wpf.Converters
Definition
AddOffsetConverter.cs:10
Dreamine.UI.Wpf.Converters.InputFormat
InputFormat
Definition
FormatToExampleConverter.cs:20
Dreamine.UI.Wpf.Converters.InputFormat.HEX
@ HEX
Definition
FormatToExampleConverter.cs:38
Dreamine.UI.Wpf.Converters.InputFormat.ASCII
@ ASCII
Definition
FormatToExampleConverter.cs:29
Dreamine.UI.Wpf.Converters.FormatToExampleConverter
Definition
FormatToExampleConverter.cs:50
Dreamine.UI.Wpf.Converters.FormatToExampleConverter.Convert
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Definition
FormatToExampleConverter.cs:99
Dreamine.UI.Wpf.Converters.FormatToExampleConverter.ConvertBack
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Definition
FormatToExampleConverter.cs:166
Converters
FormatToExampleConverter.cs
다음에 의해 생성됨 :
1.17.0