직접 근거
ClickMe source declaration
DreamineCommand generation maps ClickMe to ClickMeCommand.
[DreamineCommand] ClickMe() [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:190-191직접 근거
ControlsDemoRow.ClickMe source declaration
The ViewModel method is marked with DreamineCommand for ClickMeCommand.
[DreamineCommand] ClickMe() [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:190-191직접 근거
ControlsDemoRow.ClickMe source declaration
The DreamineCommand declaration forwards execution to Event.ClickMe.
[DreamineCommand("Event.ClickMe")] [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:190-191직접 근거
ControlsEvent.ClickMe source declaration
This Event target method contains the actual operation reached by the command.
ControlsEvent.ClickMe() public void ClickMe()
{
ClickCount++;
ActivityLog.Add($"[{DateTime.Now:HH:mm:ss}] Clicked ({ClickCount})");
Raise($"Button clicked {ClickCount} time(s)");
}
// ── RadioButton ───────────────────────────────────────
/// <summary>
/// \if KO
/// <para>Selected Radio 값을 가져오거나 설정합니다.</para>
/// \endif
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsEvent.cs:77-88직접 근거
ControlsPage.ClickMeCommand source declaration
XAML binds the control Command to ClickMeCommand.
Command="{Binding ClickMeCommand}"
<!-- ① Button -->
<VerticalStackLayout x:Name="TabButton" Spacing="12">
<Label Text="Button" FontAttributes="Bold" FontSize="16" />
<Button Text="{Binding ClickCount, StringFormat='Click Me ({0})'}"
Command="{Binding ClickMeCommand}"
BackgroundColor="#0d6efd" TextColor="White" />
<Label Text="Color Variants" FontAttributes="Bold" />
<HorizontalStackLayout Spacing="8">
<Button Text="Primary" BackgroundColor="#0d6efd" TextColor="White" WidthRequest="90" Clicked="OnVariantButtonClicked" />
<Button Text="Success" BackgroundColor="#198754" TextColor="White" WidthRequest="90" Clicked="OnVariantButtonClicked" />
<Button Text="Warning" BackgroundColor="#ffc107" TextColor="Black" WidthRequest="90" Clicked="OnVariantButtonClicked" />
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Maui/Views/ControlsPage.xaml:18-30직접 근거
DreamineCommand generated property naming rule source declaration
The source generator appends Command to the annotated method name.
return methodName + "Command"; {
return commandNameOverride!;
}
return methodName + "Command";
}
20_SOURCES/100. Library/Generators/DreamineCommandSourceGenerator.cs:300-305직접 근거
MAUI button command binding source declaration
The Click Me button binds its `Command` property to `ClickMeCommand`.
Command="{Binding ClickMeCommand}" <Label Text="Button" FontAttributes="Bold" FontSize="16" />
<Button Text="{Binding ClickCount, StringFormat='Click Me ({0})'}"
Command="{Binding ClickMeCommand}"
BackgroundColor="#0d6efd" TextColor="White" />
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Maui/Views/ControlsPage.xaml:21-25