Kosta
❔ App.config: "special one" for testing/debugging
check this out:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-7.0
18 replies
❔ How does the execution pipeline works with interfaces that implement methods?
I mean chatgpt gave me this unsure if its correct:
The button knows to invoke the Execute method of the ICommand because that is the standard behavior defined by the WPF framework for buttons that are bound to a command. When you bind an ICommand implementation to a button in XAML, the framework automatically sets up the necessary event handlers and bindings to ensure that the button invokes the Execute method of the command when it is clicked.
The process works as follows:
The button's Click event is raised when the button is clicked by the user.
The framework looks for a command that is bound to the button via the Command property.
If a command is found, the framework invokes the Execute method of the command.
This is a standard behavior of the WPF framework, and it is defined in the Button class, which is the base class for all buttons in WPF. The implementation details of this behavior are part of the WPF framework code and can be found in the .NET source code, but you do not typically need to interact with these details directly in your own code.
5 replies