Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Opacity on Layers. #114

Merged
merged 2 commits into from
May 22, 2019
Merged

Handling Opacity on Layers. #114

merged 2 commits into from
May 22, 2019

Conversation

simeoncran
Copy link
Contributor

No description provided.

opacityNode.Children.Add(rootNode);
rootNode = opacityNode;

if (!layerOpacityPercent.IsAnimated)
Copy link
Contributor

@eliezerpMS eliezerpMS May 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!layerOpacityPercent.IsAnimated [](start = 20, length = 31)

Should this not have the "!"? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha... you mean for correctness. Ah, ok.


In reply to: 285322463 [](ancestors = 285322463)

rectangle.FillBrush = CreateAnimatedColorBrush(context, layer.Color, context.TrimAnimatable(layer.Transform.OpacityPercent));
// If the layer has masks then the opacity is set on a Visual in the chain returned
// for the layer from TryCreateContainerVisualTransformChain.
// If there no masks then the opacity needs to be animated on the brush.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[](start = 23, length = 1)

there is

@plaiMS plaiMS merged commit 3b0572d into master May 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the LayerOpacity branch May 22, 2019 04:21
@michael-hawker michael-hawker added this to the 6.0 milestone Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants