-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
📌 seQUESTeredLabel to indicate an item has been imported.Label to indicate an item has been imported.Pri1High priority, do before Pri2 and Pri3High priority, do before Pri2 and Pri3doc-bugProblem with the content; needs to be fixed [org][type][category]Problem with the content; needs to be fixed [org][type][category]dotnet-desktop/svcwpf/subsvc
Description
[Enter feedback here]
The section Events and XAML code-behind refers to an old version of a snippet in the text - i.e. the snippet is
<Window x:Class="index.Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window2" Height="450" Width="800">
<StackPanel>
<Button Click="Button_Click">Click me</Button>
</StackPanel>
</Window>but the text refers to ExampleNamespace and ExamplePage instead of index.Window2:
Notice that the code-behind file uses the CLR namespace
ExampleNamespaceand declaresExamplePageas a partial class within that namespace. This parallels thex:Classattribute value ofExampleNamespace.ExamplePagethat was provided in the markup root.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 41391f13-7c61-97ac-e16e-ca1f280d79f6
- Version Independent ID: 12ab183d-74fa-e353-9761-fb5edc553e40
- Content: XAML overview - WPF .NET
- Content Source: dotnet-desktop-guide/net/wpf/xaml/index.md
- Product: dotnet-desktop
- Technology: dotnet-wpf
- GitHub Login: @adegeo
- Microsoft Alias: adegeo
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredLabel to indicate an item has been imported.Label to indicate an item has been imported.Pri1High priority, do before Pri2 and Pri3High priority, do before Pri2 and Pri3doc-bugProblem with the content; needs to be fixed [org][type][category]Problem with the content; needs to be fixed [org][type][category]dotnet-desktop/svcwpf/subsvc