mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-05 16:06:10 +02:00
* Add article, redirects, toc * Add alternative event handler assignments (commented) * Update dotnet-desktop-guide/net/wpf/events/how-to-add-an-event-handler-using-code.md Co-authored-by: Andy (Steve) De George <[email protected]> * Update dotnet-desktop-guide/net/wpf/events/how-to-add-an-event-handler-using-code.md Co-authored-by: Andy (Steve) De George <[email protected]> * Further edits Co-authored-by: Andy (Steve) De George <[email protected]>
17 lines
611 B
XML
17 lines
611 B
XML
<Window x:Class="CodeSampleCsharp.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="How to add an event handler using code" Height="100" Width="300">
|
|
|
|
<!--<ButtonCreatedByXaml>-->
|
|
<StackPanel Name="StackPanel1">
|
|
<Button
|
|
Name="ButtonCreatedByXaml"
|
|
Click="ButtonCreatedByXaml_Click"
|
|
Content="Create a new button with an event handler"
|
|
Background="LightGray">
|
|
</Button>
|
|
</StackPanel>
|
|
<!--</ButtonCreatedByXaml>-->
|
|
</Window>
|