mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
36 lines
2.6 KiB
Markdown
36 lines
2.6 KiB
Markdown
---
|
|
title: "Walkthroughs: Create a Custom Animated Button"
|
|
ms.date: "03/30/2017"
|
|
helpviewer_keywords:
|
|
- "custom animated buttons [WPF]"
|
|
- "buttons [WPF]"
|
|
- "animation [WPF], buttons [WPF]"
|
|
ms.assetid: e9532c72-460f-4898-9332-613fa21d746a
|
|
---
|
|
# Walkthroughs: Create a Custom Animated Button
|
|
As its name suggests, Windows Presentation Foundation (WPF) is great for making rich presentation experiences for customers. These walkthroughs show you how to customize the look and behavior of a button (including animations). This customization is done using a style and template so that you can apply this custom button easily to any buttons in your application. The following illustration shows the customized button that you will create.
|
|
|
|

|
|
|
|
The vector graphics that make up the appearance of the button are created by using [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)]. [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)] is similar to HTML except it is more powerful and extensible. [!INCLUDE[TLA#tla_xaml](../../../includes/tlasharptla-xaml-md.md)] can be typed in manually using Visual Studio or Notepad, or you can use a visual design tool such as Blend for Visual Studio. Blend works by creating underlying XAML code, so both methods create the same graphics.
|
|
|
|
## In This Section
|
|
[Create a Button by Using Microsoft Expression Blend](walkthrough-create-a-button-by-using-microsoft-expression-blend.md)
|
|
Demonstrates how to create buttons with custom behavior by using the designer features of Expression Blend.
|
|
|
|
[Create a Button by Using XAML](walkthrough-create-a-button-by-using-xaml.md)
|
|
Demonstrates how to create buttons with custom behavior by using [!INCLUDE[TLA2#tla_xaml](../../../includes/tla2sharptla-xaml-md.md)] and Visual Studio.
|
|
|
|
## Related Sections
|
|
[Styling and Templating](styles-templates-overview.md)
|
|
Describes how styles and templates can be used to determine the appearance and behavior of controls.
|
|
|
|
[Animation Overview](../graphics-multimedia/animation-overview.md)
|
|
Describes how objects can be animated by using the WPF animation and timing system.
|
|
|
|
[Painting with Solid Colors and Gradients Overview](../graphics-multimedia/painting-with-solid-colors-and-gradients-overview.md)
|
|
Describes how to use brush objects to paint with solid colors, linear gradients, and radial gradients.
|
|
|
|
[Bitmap Effects Overview](../graphics-multimedia/bitmap-effects-overview.md)
|
|
Describes the bitmap effects supported by WPF and explains how to apply them.
|