Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-material-properties-in-a-3-d-scene.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* 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
2020-09-04 09:46:28 -07:00

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
Material properties [WPF], animating in 3D scenes
animation [WPF], Material properties in 3D scenes
3D scenes [WPF], animating Material properties
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]

See also