mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.6 KiB
1.6 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| How to: Animate Material Properties in a 3D Scene | 03/30/2017 |
|
229fd6eb-7401-4992-b0c9-8b28de230c0f |
How to: Animate Material Properties in a 3D Scene
This example shows how to animate the xref:System.Windows.Media.Brush.Opacity%2A property of the xref:System.Windows.Media.Media3D.Material applied to a 3D model.
The following code example defines the xref:System.Windows.Media.LinearGradientBrush used as the xref:System.Windows.Media.Media3D.Material applied to the 3D object.
[!code-xamlAnimation3DGallery_snip#AnimateMaterialExampleInline1]
The xref:System.Windows.Media.Brush.Opacity%2A property of this xref:System.Windows.Media.LinearGradientBrush is animated using the code example below.
[!code-xamlAnimation3DGallery_snip#AnimateMaterialExampleInline2]
Example
The following code shows the entire sample.
[!code-xamlAnimation3DGallery_snip#AnimateMaterialExampleWholePage]