Slide Transitions

I am having difficulties getting Slide Transitions to work. Is their any example code available?

Dear Chrons,

I’m sorry, we don’t have any examples for Slide Transition yet.
I will write and publish it today or tomorrow.

Dear Chrons,

Probably you had a problems with slide transition effects because it was possible only read and change slide effects. Please try 1.6.5 hot fix. Now you can define new effects even if slide didn’t have it before.

Thanks that solved that problem; however is the same true for shape entry effects? I am having difficulties getting them to work as well.

Dear Chrons,

For the shape entry effects you should define new Shape.AnimationSettings.EntryEffect at first.
After that effect will be created and you will have possibility to change other properties.
If you set EntryEffect to None then effect will be deleted and other properties will be unavailable again.

I am still not getting the shape entry effects to work. Do you have any example code?

Thanks.

Dear Chrons,

I’m sorry, it was my fault. I used wrong default values for creating internal animation records.
Please check 1.6.6 hot fix.

For example you have some PictureFrame (pf) on a slide:
// At first you should define new entry effect
pf.AnimationSettings.EntryEffect = ShapeEntryEffect.FlyFromBottom;
// Set number of slides where shape will be animated. It’s a new property.
pf.AnimationSettings.AnimationSlideCount = 1;
// Set advance mode. For example on mouse click
pf.AnimationSettings.AdvanceMode = ShapeAdvanceMode.AdvanceOnClick;
pf.AnimationSettings.AdvanceTime = 0;
// And set animation order
pf.AnimationSettings.AnimationOrder = 1;

Hello once again...

Thanks for that hot fix, it works great. Although I have one more problem I hope that you can address. In the example above you used
pf.AnimationSettings.AdvanceMode = ShapeAdvanceMode.AdvanceOnClick;
I can not find anything like SlideAdvanceMode
.AdvanceOnTime to set (an instance of a slide).AnimationSettings.AdvanceMode equal to. Am I just not looking in the right spot?

I am sure I am becoming a bother by now but thanks in advance.


Dear Chrons,

Slide can have both advance modes in one time. Please use something like this:
// Set advance on time mode active
slide.SlideShowTransition.AdvanceOnTime = true;
// Set advance time to 10 seconds
slide.SlideShowTransition.AdvanceTime = 10.0;

I think that I may have found a bug.
I am trying to set a slides background to a patter style with the following code.

Slide slide2 = GetSlideByPosition(pres, 2);
slide2.FollowMasterBackground = false;
slide2.Background.FillFormat.ForeColor = Color.Red;
slide2.Background.FillFormat.BackColor = Color.Green;
slide2.Background.FillFormat.Type = FillType.Pattern;
slide2.Background.FillFormat.PatternStyle = PatternStyle.Divot;

What happens is that slide 2 get the Divot style background; however the backcolor is always Dark Blue and the ForeColor is which ever I set last, in my example code above “Green” would be the ForeColor. But if I restructured my code like so:

slide2.Background.FillFormat.BackColor = Color.Green;
slide2.Background.FillFormat.ForeColor = Color.Red;

Red would be the ForeColor.Indifferent

Thanks.

Dear Chrons,

It’s not a bug.
After changing FillFormat.Type other properties are reset to the default values.

Alexey,

Even when I change my code to the following the background is the color that is set last for example:

Slide slide2 = GetSlideByPosition(pres, 2);
slide2.FollowMasterBackground = false;
slide2.Background.FillFormat.Type = FillType.Pattern;
slide2.Background.FillFormat.PatternStyle = PatternStyle.Divot;
slide2.Background.FillFormat.BackColor = Color.Yellow;
slide2.Background.FillFormat.ForeColor = Color.Red;

Yields a slide with the Divot pattern, a Red fore ground and a dark Blue background.

The code in the follow example:

Slide slide2 = GetSlideByPosition(pres, 2);
slide2.FollowMasterBackground = false;
slide2.Background.FillFormat.Type = FillType.Pattern;
slide2.Background.FillFormat.PatternStyle = PatternStyle.Divot;
slide2.Background.FillFormat.ForeColor = Color.Red;
slide2.Background.FillFormat.BackColor = Color.Yellow;

Yields a slide with the Divot pattern, a Yellow foreground and a Dark Blue background.

Why do I always end up with a Dark Blue background?

Thanks for your help,
Chrons

Dear Chrons,

Please check 1.6.8 hot fix:
https://blog.aspose.com/category/aspose-blogs/alexey-zhilin/