How to add animation to my wpf controls with Material design?

0

Hello, Very Good Night, I have the following query I am working the interfaces of my project with WPF and Material Design in C# . My question is as follows How can I add animation to the controls that my form has and that it be executed when the window is opened I just started using Material Design and I do not know very well what animation it has or how to use them ..

Thank you for your attention and time.

    
asked by Joab 24.09.2017 в 09:32
source

1 answer

0

Let's say we have two UserControls (UC_1 and UC_2). In UC_1 you add a Grid where You will show UC_2.

Code for UC_1

XAML

<Grid x:Name="GridTerciario"/>

Code-Behind where the Incializador is added

GridTerciario.Children.Add( new UC_2());

Code for UC_2

XAML

<Grid>
    <materialDesign:TransitioningContent OpeningEffect="{materialDesign:TransitionEffect SlideInFromRight, Duration=0:0:0.8}">
    </materialDesign:TransitioningContent>
</Grid>

Note: You can see the documentation , there they describe other transitions.

    
answered by 13.12.2018 в 22:54