Dreamine.UI.Wpf.Controls 1.0.1
Dreamine.UI.Wpf.Controls 사용자 인터페이스 기능과 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector 클래스 참조

더 자세히 ...

Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector에 대한 상속 다이어그램 :
Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector에 대한 협력 다이어그램:

Public 멤버 함수

 DreamineCheckSelector ()

정적 Public 속성

static readonly DependencyProperty CommandProperty
static readonly DependencyProperty IsCheckedProperty
static readonly DependencyProperty IsLeftCheckedProperty
static readonly DependencyProperty IsRightCheckedProperty
static readonly DependencyProperty CheckTextProperty
static readonly DependencyProperty LeftRadioTextProperty
static readonly DependencyProperty RightRadioTextProperty
static readonly DependencyProperty GroupNameProperty
static readonly DependencyProperty AxisMaxProperty

속성

ICommand? Command [get, set]
bool IsChecked [get, set]
bool IsLeftChecked [get, set]
bool IsRightChecked [get, set]
string CheckText [get, set]
string LeftRadioText [get, set]
string RightRadioText [get, set]
string GroupName [get, set]
string AxisMax [get, set]

이벤트

RoutedEventHandler ValueChanged = null!

Private 멤버 함수

void OnCheckedChanged (bool isChecked)
void RememberRadio (bool left)
void RaiseValueChanged ()

Private 속성

bool _lastLeftChecked = true
bool _lastRightChecked = false

상세한 설명

체크박스, 좌우 라디오 버튼과 축 최대값 입력을 하나로 묶은 선택 컨트롤입니다.

DreamineCheckSelector.xaml.cs 파일의 15 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ DreamineCheckSelector()

Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.DreamineCheckSelector ( )
inline

구성 요소를 초기화하고 내부 컨트롤 이벤트를 구독합니다.

DreamineCheckSelector.xaml.cs 파일의 88 번째 라인에서 정의되었습니다.

89 {
90 InitializeComponent();
91
92 PART_CheckBox.Checked += (s, e) => OnCheckedChanged(true);
93 PART_CheckBox.Unchecked += (s, e) => OnCheckedChanged(false);
94
95 PART_RadioLeft.Checked += (s, e) => { RememberRadio(true); RaiseValueChanged(); };
96 PART_RadioRight.Checked += (s, e) => { RememberRadio(false); RaiseValueChanged(); };
97
98 PART_AxisMaxBox.LostFocus += (s, e) => RaiseValueChanged();
99 PART_AxisMaxBox.KeyDown += (s, e) => { if (((KeyEventArgs)e).Key == Key.Enter) RaiseValueChanged(); };
100 }

다음을 참조함 : OnCheckedChanged(), RaiseValueChanged(), RememberRadio().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 함수 문서화

◆ OnCheckedChanged()

void Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.OnCheckedChanged ( bool isChecked)
inlineprivate

체크 상태에 따라 마지막 라디오 선택을 복원하거나 현재 선택을 해제합니다.

매개변수
isChecked체크박스가 선택되었는지 나타냅니다.

DreamineCheckSelector.xaml.cs 파일의 118 번째 라인에서 정의되었습니다.

119 {
120 if (isChecked)
121 {
122 if (IsLeftChecked || IsRightChecked)
123 {
124 _lastLeftChecked = IsLeftChecked;
125 _lastRightChecked = IsRightChecked;
126 }
127 else
128 {
129 IsLeftChecked = _lastLeftChecked;
130 IsRightChecked = _lastRightChecked;
131 }
132 }
133 else
134 {
135 _lastLeftChecked = IsLeftChecked;
136 _lastRightChecked = IsRightChecked;
137
138 IsLeftChecked = false;
139 IsRightChecked = false;
140 }
141 RaiseValueChanged();
142 }

다음을 참조함 : _lastLeftChecked, _lastRightChecked, IsLeftChecked, IsRightChecked, RaiseValueChanged().

다음에 의해서 참조됨 : DreamineCheckSelector().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ RaiseValueChanged()

void Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.RaiseValueChanged ( )
inlineprivate

ValueChanged 이벤트를 발생시키고 구성된 명령을 현재 컨트롤과 함께 실행합니다.

DreamineCheckSelector.xaml.cs 파일의 174 번째 라인에서 정의되었습니다.

175 {
176 // 기존 RoutedEvent
177 ValueChanged?.Invoke(this, new RoutedEventArgs());
178
179 // MVVM Command 실행
180 if (Command?.CanExecute(this) == true)
181 Command.Execute(this);
182 }

다음을 참조함 : Command, ValueChanged.

다음에 의해서 참조됨 : DreamineCheckSelector(), OnCheckedChanged().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ RememberRadio()

void Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.RememberRadio ( bool left)
inlineprivate

나중에 복원할 좌우 라디오 선택 상태를 저장합니다.

매개변수
left왼쪽이 선택되었으면 true입니다.

DreamineCheckSelector.xaml.cs 파일의 160 번째 라인에서 정의되었습니다.

161 {
162 _lastLeftChecked = left;
163 _lastRightChecked = !left;
164 }

다음을 참조함 : _lastLeftChecked, _lastRightChecked.

다음에 의해서 참조됨 : DreamineCheckSelector().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ _lastLeftChecked

bool Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector._lastLeftChecked = true
private

마지막 좌측 라디오 선택 상태를 저장합니다.

DreamineCheckSelector.xaml.cs 파일의 59 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : OnCheckedChanged(), RememberRadio().

◆ _lastRightChecked

bool Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector._lastRightChecked = false
private

마지막 우측 라디오 선택 상태를 저장합니다.

DreamineCheckSelector.xaml.cs 파일의 68 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : OnCheckedChanged(), RememberRadio().

◆ AxisMaxProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.AxisMaxProperty
static
초기값:

문자열 축 최대값 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 368 번째 라인에서 정의되었습니다.

◆ CheckTextProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.CheckTextProperty
static
초기값:
=
DependencyProperty.Register(nameof(CheckText), typeof(string), typeof(DreamineCheckSelector), new PropertyMetadata("체크"))

체크박스 표시 텍스트 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 268 번째 라인에서 정의되었습니다.

◆ CommandProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.CommandProperty
static
초기값:
=
DependencyProperty.Register(
nameof(Command),
typeof(ICommand),
new PropertyMetadata(null))
new ICommand Command
Command get/set.

내부 값이 변경될 때 실행할 명령 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 29 번째 라인에서 정의되었습니다.

◆ GroupNameProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.GroupNameProperty
static
초기값:
=
DependencyProperty.Register(nameof(GroupName), typeof(string), typeof(DreamineCheckSelector), new PropertyMetadata("AxisSelectorGroup"))

라디오 버튼 상호 배타 그룹 이름 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 343 번째 라인에서 정의되었습니다.

◆ IsCheckedProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsCheckedProperty
static
초기값:
=
DependencyProperty.Register(nameof(IsChecked), typeof(bool), typeof(DreamineCheckSelector), new PropertyMetadata(false))

체크박스 선택 상태 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 193 번째 라인에서 정의되었습니다.

◆ IsLeftCheckedProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsLeftCheckedProperty
static
초기값:
=
DependencyProperty.Register(nameof(IsLeftChecked), typeof(bool), typeof(DreamineCheckSelector), new PropertyMetadata(false))

왼쪽 라디오 선택 상태 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 218 번째 라인에서 정의되었습니다.

◆ IsRightCheckedProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsRightCheckedProperty
static
초기값:
=
DependencyProperty.Register(nameof(IsRightChecked), typeof(bool), typeof(DreamineCheckSelector), new PropertyMetadata(false))

오른쪽 라디오 선택 상태 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 243 번째 라인에서 정의되었습니다.

◆ LeftRadioTextProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.LeftRadioTextProperty
static
초기값:
=
DependencyProperty.Register(nameof(LeftRadioText), typeof(string), typeof(DreamineCheckSelector), new PropertyMetadata("LEFT"))

왼쪽 라디오 표시 텍스트 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 293 번째 라인에서 정의되었습니다.

◆ RightRadioTextProperty

readonly DependencyProperty Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.RightRadioTextProperty
static
초기값:
=
DependencyProperty.Register(nameof(RightRadioText), typeof(string), typeof(DreamineCheckSelector), new PropertyMetadata("RIGHT"))

오른쪽 라디오 표시 텍스트 종속성 속성입니다.

DreamineCheckSelector.xaml.cs 파일의 318 번째 라인에서 정의되었습니다.

속성 문서화

◆ AxisMax

string Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.AxisMax
getset

텍스트 입력에 바인딩할 축 최대값 문자열을 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 379 번째 라인에서 정의되었습니다.

380 {
381 get => (string)GetValue(AxisMaxProperty);
382 set => SetValue(AxisMaxProperty, value);
383 }

◆ CheckText

string Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.CheckText
getset

체크박스 옆에 표시할 텍스트를 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 279 번째 라인에서 정의되었습니다.

280 {
281 get => (string)GetValue(CheckTextProperty);
282 set => SetValue(CheckTextProperty, value);
283 }

◆ Command

ICommand? Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.Command
getset

내부 값 변경 시 실행할 명령을 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 44 번째 라인에서 정의되었습니다.

45 {
46 get => (ICommand?)GetValue(CommandProperty);
47 set => SetValue(CommandProperty, value);
48 }

다음에 의해서 참조됨 : RaiseValueChanged().

◆ GroupName

string Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.GroupName
getset

라디오 버튼 그룹 이름을 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 354 번째 라인에서 정의되었습니다.

355 {
356 get => (string)GetValue(GroupNameProperty);
357 set => SetValue(GroupNameProperty, value);
358 }

◆ IsChecked

bool Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsChecked
getset

체크박스가 선택되어 있는지 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 204 번째 라인에서 정의되었습니다.

205 {
206 get => (bool)GetValue(IsCheckedProperty);
207 set => SetValue(IsCheckedProperty, value);
208 }

◆ IsLeftChecked

bool Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsLeftChecked
getset

왼쪽 라디오 버튼이 선택되어 있는지 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 229 번째 라인에서 정의되었습니다.

230 {
231 get => (bool)GetValue(IsLeftCheckedProperty);
232 set => SetValue(IsLeftCheckedProperty, value);
233 }

다음에 의해서 참조됨 : OnCheckedChanged().

◆ IsRightChecked

bool Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.IsRightChecked
getset

오른쪽 라디오 버튼이 선택되어 있는지 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 254 번째 라인에서 정의되었습니다.

255 {
256 get => (bool)GetValue(IsRightCheckedProperty);
257 set => SetValue(IsRightCheckedProperty, value);
258 }

다음에 의해서 참조됨 : OnCheckedChanged().

◆ LeftRadioText

string Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.LeftRadioText
getset

왼쪽 라디오 버튼의 표시 텍스트를 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 304 번째 라인에서 정의되었습니다.

305 {
306 get => (string)GetValue(LeftRadioTextProperty);
307 set => SetValue(LeftRadioTextProperty, value);
308 }

◆ RightRadioText

string Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.RightRadioText
getset

오른쪽 라디오 버튼의 표시 텍스트를 가져오거나 설정합니다.

DreamineCheckSelector.xaml.cs 파일의 329 번째 라인에서 정의되었습니다.

330 {
331 get => (string)GetValue(RightRadioTextProperty);
332 set => SetValue(RightRadioTextProperty, value);
333 }

이벤트 문서화

◆ ValueChanged

RoutedEventHandler Dreamine.UI.Wpf.Controls.VsCustomControls.DreamineCheckSelector.ValueChanged = null!

내부 체크박스, 라디오 버튼 또는 텍스트 값이 변경될 때 발생합니다.

DreamineCheckSelector.xaml.cs 파일의 78 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : RaiseValueChanged().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: