직접 근거
ClickMe 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
[DreamineCommand] ClickMe() [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:56-57직접 근거
ControlsDemoRow.ClickMe 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
[DreamineCommand] ClickMe() [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:56-57직접 근거
ControlsDemoRow.ClickMe 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
[DreamineCommand("Event.ClickMe")] [DreamineCommand("Event.ClickMe")]
private partial void ClickMe();
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsViewModel.cs:56-57직접 근거
ControlsEvent.ClickMe 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
ControlsEvent.ClickMe() public void ClickMe()
{
ClickCount++;
ActivityLog.Add($"[{DateTime.Now:HH:mm:ss}] Clicked ({ClickCount})");
Raise($"Button clicked {ClickCount} time(s)");
}
// ── RadioButton ───────────────────────────────────────
public string SelectedRadio { get; private set; } = "Option A";
public void SelectRadio(string? option)
{
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Shared/ViewModels/ControlsEvent.cs:26-37직접 근거
ControlsPage.ClickMeCommand 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
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 코드 선언
stable URI로 확인한 실제 선언 일부입니다.
return methodName + "Command"; {
return commandNameOverride!;
}
return methodName + "Command";
}
20_SOURCES/100. Library/Generators/DreamineCommandSourceGenerator.cs:300-305직접 근거
MAUI 버튼의 Command 바인딩 코드 선언
버튼이 `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" />
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Maui/Views/ControlsPage.xaml:18-25직접 근거
WPF 버튼의 Command 바인딩 코드 선언
DreamineButton 역시 `ClickMeCommand`에 바인딩됩니다.
Command="{Binding ClickMeCommand}" <StackPanel>
<TextBlock Text="기본 버튼 — Background / Foreground" Style="{StaticResource CardTitle}" />
<WrapPanel>
<ctrl:DreamineButton Content="Primary" Foreground="White"
Background="#FF1E90FF" Width="100" Height="34" Margin="0,0,8,8"
Command="{Binding ClickMeCommand}" />
<ctrl:DreamineButton Content="Secondary" Foreground="White"
Background="#FF2D4A6E" Width="100" Height="34" Margin="0,0,8,8"
Command="{Binding ClickMeCommand}" />
<ctrl:DreamineButton Content="Success" Foreground="White"
Background="#FF1B7A3E" Width="100" Height="34" Margin="0,0,8,8"
Command="{Binding ClickMeCommand}" />
<ctrl:DreamineButton Content="Warning" Foreground="White"
20_SOURCES/998. DEMO/000. Sample/050. CrossUi/SampleCrossUi.Wpf/Views/ControlsView.xaml:155-167