Gast
#6321839
Hallo,
ich habe folgendes Codebespiel:
WPF:
<example:ViewModelControl Example="{Binding Start}"
.... />
C#:
public class ViewModelControl : ContentControl
{
public static readonly DependencyProperty ExampleProperty =
DependencyProperty.Register (
nameof (Example), typeof (ExampleViewModel), typeof
(ViewModelControl ), new
FrameworkPropertyMetadata(default(ExampleViewModel),
ExamplePropertyChanged) { BindsTwoWayByDefault = true});
public ExampleViewModel Example
{
get => (ExampleViewModel )GetValue (ExampleProperty );
set => SetValue (ExampleProperty , value);
}
}
.....
public async Task AddCommandExecuteAsync(object arg){
hier!!!!
}
Die Frage ist ich möchte in AddCommandExecuteAsync per Reflection oder
ähnliches den Namen "Start" auslesen (siehe Binding object WPF). Ist das
möglich und wie geht das ?
Gruß