Skip to content

Outdated text in XAML overview #1542

@jacksonriley

Description

@jacksonriley

[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 ExampleNamespace and declares ExamplePage as a partial class within that namespace. This parallels the x:Class attribute value of ExampleNamespace.ExamplePage that was provided in the markup root.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 52209

Metadata

Metadata

Assignees

No one assigned

    Labels

    📌 seQUESTeredLabel to indicate an item has been imported.Pri1High priority, do before Pri2 and Pri3doc-bugProblem with the content; needs to be fixed [org][type][category]dotnet-desktop/svcwpf/subsvc

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions