Dreamine.UI.Maui 1.0.1
Windows(WinUI)의 네이티브 `CheckBox`는 `WidthRequest`로 줄일 수 없는 거대한 최소 너비를 가져서 라벨과의 간격이 벌어지는 문제가 있어, 처음부터 직접 그려서 만들었습니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.UI.Maui.DreamineExpander 클래스 참조

더 자세히 ...

Dreamine.UI.Maui.DreamineExpander에 대한 상속 다이어그램 :
Dreamine.UI.Maui.DreamineExpander에 대한 협력 다이어그램:

Public 멤버 함수

 DreamineExpander ()

정적 Public 속성

static readonly BindableProperty HeaderProperty
static readonly BindableProperty IsExpandedProperty
static readonly BindableProperty ExpanderContentProperty

속성

string Header [get, set]
bool IsExpanded [get, set]
View? ExpanderContent [get, set]

이벤트

EventHandler? ExpandedChanged

Private 멤버 함수

void OnHeaderTapped (object? sender, TappedEventArgs e)
void ApplyExpandedState ()

상세한 설명

머리글 탭으로 콘텐츠를 펼치거나 접을 수 있는 MAUI 컨트롤입니다.

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

생성자 & 소멸자 문서화

◆ DreamineExpander()

Dreamine.UI.Maui.DreamineExpander.DreamineExpander ( )
inline

확장 컨트롤 UI를 초기화하고 현재 확장 상태를 적용합니다.

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

111 {
112 InitializeComponent();
113 ApplyExpandedState();
114 }

다음을 참조함 : ApplyExpandedState().

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

멤버 함수 문서화

◆ ApplyExpandedState()

void Dreamine.UI.Maui.DreamineExpander.ApplyExpandedState ( )
inlineprivate

현재 확장 상태에 맞게 콘텐츠 표시와 화살표를 갱신합니다.

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

155 {
156 ContentHost.IsVisible = IsExpanded;
157 ArrowLabel.Text = IsExpanded ? "▼" : "▶";
158 }

다음을 참조함 : IsExpanded.

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

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

◆ OnHeaderTapped()

void Dreamine.UI.Maui.DreamineExpander.OnHeaderTapped ( object? sender,
TappedEventArgs e )
inlineprivate

머리글 탭에 응답하여 확장 상태를 전환하고 변경 이벤트를 발생시킵니다.

매개변수
sender이벤트를 발생시킨 객체입니다.
e탭 이벤트 인수입니다.

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

141 {
142 IsExpanded = !IsExpanded;
143 ExpandedChanged?.Invoke(this, EventArgs.Empty);
144 }

다음을 참조함 : ExpandedChanged, IsExpanded.

멤버 데이터 문서화

◆ ExpanderContentProperty

readonly BindableProperty Dreamine.UI.Maui.DreamineExpander.ExpanderContentProperty
static
초기값:
= BindableProperty.Create(
nameof(ExpanderContent), typeof(View), typeof(DreamineExpander), null,
propertyChanged: (b, _, n) => ((DreamineExpander)b).ContentHost.Content = (View?)n)

ExpanderContent 바인딩 가능 속성을 식별합니다.

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

◆ HeaderProperty

readonly BindableProperty Dreamine.UI.Maui.DreamineExpander.HeaderProperty
static
초기값:
= BindableProperty.Create(
nameof(Header), typeof(string), typeof(DreamineExpander), string.Empty,
propertyChanged: (b, _, n) => ((DreamineExpander)b).HeaderLabel.Text = (string)n)

Header 바인딩 가능 속성을 식별합니다.

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

◆ IsExpandedProperty

readonly BindableProperty Dreamine.UI.Maui.DreamineExpander.IsExpandedProperty
static
초기값:
= BindableProperty.Create(
nameof(IsExpanded), typeof(bool), typeof(DreamineExpander), true,
defaultBindingMode: BindingMode.TwoWay,
propertyChanged: (b, _, n) => ((DreamineExpander)b).ApplyExpandedState())

IsExpanded 바인딩 가능 속성을 식별합니다.

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

속성 문서화

◆ ExpanderContent

View? Dreamine.UI.Maui.DreamineExpander.ExpanderContent
getset

펼쳤을 때 표시할 내부 콘텐츠를 가져오거나 설정합니다.

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

87 {
88 get => (View?)GetValue(ExpanderContentProperty);
89 set => SetValue(ExpanderContentProperty, value);
90 }

◆ Header

string Dreamine.UI.Maui.DreamineExpander.Header
getset

확장 영역의 머리글 텍스트를 가져오거나 설정합니다.

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

59 {
60 get => (string)GetValue(HeaderProperty);
61 set => SetValue(HeaderProperty, value);
62 }

◆ IsExpanded

bool Dreamine.UI.Maui.DreamineExpander.IsExpanded
getset

콘텐츠가 펼쳐져 있는지 여부를 가져오거나 설정합니다.

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

73 {
74 get => (bool)GetValue(IsExpandedProperty);
75 set => SetValue(IsExpandedProperty, value);
76 }

다음에 의해서 참조됨 : ApplyExpandedState(), OnHeaderTapped().

이벤트 문서화

◆ ExpandedChanged

EventHandler? Dreamine.UI.Maui.DreamineExpander.ExpandedChanged

사용자 입력으로 확장 상태가 변경될 때 발생합니다.

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

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


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