SampleCrossUi.Maui
1.0.0.0
SampleCrossUi.Maui 사용 방법을 보여 주는 예제 프로젝트입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
PopupPage.xaml.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.UI.Maui.Popup;
2
3
namespace
SampleCrossUi.Maui.Views
;
4
13
public
partial class
PopupPage
: ContentView
14
{
23
public
PopupPage
()
24
{
25
InitializeComponent();
26
}
27
52
private
async
void
OnShowMessageBoxClicked
(
object
? sender, EventArgs e)
53
{
54
var result = await DreamineMessageBox.ShowAsync(
55
"DreamineMessageBox 데모입니다.\n버튼을 클릭하거나 기다리면 자동으로 닫힙니다."
,
56
"MessageBox Demo"
,
57
autoClickDelaySeconds: 5);
58
ResultLabel.Text = $
"Last result: MessageBox → {result}"
;
59
}
60
85
private
async
void
OnShowBlinkOkClicked
(
object
? sender, EventArgs e)
86
{
87
var result = await DreamineBlinkPopup.ShowAsync(
new
BlinkPopupOptions
88
{
89
Title =
"작업 완료"
,
90
Message =
"작업이 성공적으로 완료되었습니다."
,
91
UseBlink =
false
,
92
Color1 = Color.FromArgb(
"#0D1B3E"
),
93
Color2 = Color.FromArgb(
"#0D1B3E"
),
94
ForegroundColor = Colors.White,
95
OkText =
"확인"
96
});
97
ResultLabel.Text = $
"Last result: BlinkPopup(OK) → {result}"
;
98
}
99
124
private
async
void
OnShowBlinkAlarmClicked
(
object
? sender, EventArgs e)
125
{
126
var result = await DreamineBlinkPopup.ShowAsync(
new
BlinkPopupOptions
127
{
128
Title =
"⚠ ALARM"
,
129
Message =
"설비 이상이 감지되었습니다.\n운영자 확인이 필요합니다."
,
130
UseBlink =
true
,
131
BlinkIntervalMs = 400,
132
Color1 = Color.FromArgb(
"#B41E1E"
),
133
Color2 = Color.FromArgb(
"#500A0A"
),
134
ForegroundColor = Colors.Yellow,
135
OkText =
"확인"
,
136
CancelText =
"취소"
137
});
138
ResultLabel.Text = $
"Last result: BlinkPopup(Alarm) → {result}"
;
139
}
140
}
SampleCrossUi.Maui.Views
Definition
ControlsPage.xaml.cs:3
SampleCrossUi.Maui.Views.PopupPage.OnShowBlinkOkClicked
async void OnShowBlinkOkClicked(object? sender, EventArgs e)
Definition
PopupPage.xaml.cs:85
SampleCrossUi.Maui.Views.PopupPage.PopupPage
PopupPage()
Definition
PopupPage.xaml.cs:23
SampleCrossUi.Maui.Views.PopupPage.OnShowMessageBoxClicked
async void OnShowMessageBoxClicked(object? sender, EventArgs e)
Definition
PopupPage.xaml.cs:52
SampleCrossUi.Maui.Views.PopupPage.OnShowBlinkAlarmClicked
async void OnShowBlinkAlarmClicked(object? sender, EventArgs e)
Definition
PopupPage.xaml.cs:124
Views
PopupPage.xaml.cs
다음에 의해 생성됨 :
1.17.0