mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
* Add article, redirects, toc * Update dotnet-desktop-guide/net/wpf/events/how-to-create-a-custom-routed-event.md Co-authored-by: Andy (Steve) De George <[email protected]> * Update dotnet-desktop-guide/net/wpf/events/snippets/how-to-create-a-custom-routed-event/csharp/CodeSample.csproj Co-authored-by: Andy (Steve) De George <[email protected]> * Update dotnet-desktop-guide/net/wpf/events/snippets/how-to-create-a-custom-routed-event/vb/CodeSampleVb.vbproj Co-authored-by: Andy (Steve) De George <[email protected]> * Update dotnet-desktop-guide/net/wpf/events/snippets/how-to-create-a-custom-routed-event/WpfControlLibraryCsharp/WpfControlLibrary.csproj Co-authored-by: Andy (Steve) De George <[email protected]> * Use local project references Co-authored-by: Andy (Steve) De George <[email protected]>
18 lines
744 B
XML
18 lines
744 B
XML
<!--<MainWindowXaml>-->
|
|
<Window x:Class="CodeSample.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:custom="clr-namespace:WpfControl;assembly=WpfControlLibrary"
|
|
Title="How to create a custom routed event" Height="100" Width="300">
|
|
|
|
<StackPanel Name="StackPanel1" custom:CustomButton.ConditionalClick="Handler_ConditionalClick">
|
|
<custom:CustomButton
|
|
Name="customButton"
|
|
ConditionalClick="Handler_ConditionalClick"
|
|
Content="Click to trigger a custom routed event"
|
|
Background="LightGray">
|
|
</custom:CustomButton>
|
|
</StackPanel>
|
|
</Window>
|
|
<!--</MainWindowXaml>-->
|