Why not try something simple like:
<Button x:Name="MyButton" Content="Button" Click="MyOnClickMethod" />
With an implemention of MyOnClickMethod in your code behind:
void Click="MyOnClickMethod"(object sender, RoutedEventArgs rea)
// Do your stuff
Horst Klein wrote:
> I have an idea, but I dont know how to realise it in XAML.
> The online dokumentation gives not really an anser to my problem.
> So, what will I do?
> I try to call a custom Class, Property or Methode (with whatever it works)
> with an Trigger (EventTrigger, ActionTrigger or whatever it works)
> <Button x:Name="MyButton" Content="Button">
> <EventTrigger RoutedEvent="Button.Click">
> How can I do that?
> Thanks for support.