-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port and improve WPF controls overview #2011
base: main
Are you sure you want to change the base?
Conversation
@@ -47,6 +47,8 @@ items: | |||
href: windows/how-to-get-set-main-application-window.md | |||
- name: Controls | |||
items: | |||
- name: Overview | |||
href: controls/index.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
href: controls/index.md | |
href: controls/index.md | |
displayName: controls |
:::code language="csharp" source="./snippets/index/csharp/MainWindow.xaml.cs" id="ExampleAppCode"::: | ||
:::code language="vb" source="./snippets/index/vb/MainWindow.xaml.vb" id="ExampleAppCode"::: | ||
|
||
## Subscribing to Events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Subscribing to Events | |
## Subscribe to events |
|
||
#customer intent: As a developer, I want to understand WPF controls so that I know their capabilities, especially in ways they compare to other desktop technologies. | ||
--- | ||
# What are Controls? (WPF .NET) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# What are Controls? (WPF .NET) | |
# What are controls? (WPF .NET) |
|
||
:::image type="content" source="./media/index/xaml-example-property.png" alt-text="A screenshot of a WPF app with two text boxes labeled name and address. Two buttons are visible. One button is named 'Reset' and the other 'Submit.' The 'Submit' button has a gradient background that transitions from a blue to a lighter blue."::: | ||
|
||
### Creating a Style for a Control |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Creating a Style for a Control | |
### Create a style for a control |
|
||
Instead of applying the style to all controls of a specific type, they can also be assigned to specific controls by adding a key to the style in the resource dictionary, and referencing that key in the `Style` property of the control. For more information about styles, see [Styling and Templating](styles-templates-overview.md). | ||
|
||
### Creating a ControlTemplate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Creating a ControlTemplate | |
### Create a ControlTemplate |
|
||
For more information about how to take advantage of the unique features a template provides, see [Styling and Templating](styles-templates-overview.md). | ||
|
||
## Rich Content in Controls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Rich Content in Controls | |
## Rich content in controls |
Summary
Contributes to #1988
@gewarren
Internal previews