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

A little doubt about about code in ThumbnailLighting.xaml.cs #342

Open
songshizhao opened this issue Dec 24, 2019 · 0 comments
Open

A little doubt about about code in ThumbnailLighting.xaml.cs #342

songshizhao opened this issue Dec 24, 2019 · 0 comments

Comments

@songshizhao
Copy link

@songshizhao songshizhao commented Dec 24, 2019

I want to adapt your code to my own project, but in code
WindowsCompositionSamples/SampleGallery/Samples/SDK/14393/ThumbnailLighting/ThumbnailLighting.xaml.cs
I feel confused about the code:
in Page_loaded event there is a call for UpdateEffectBrush();
and then in UpdateEffectBrush() there is a call for SetImageEffect(image)
and then in SetImageEffect first Code:
CompositionEffectBrush brush = _effectFactory.CreateBrush();
problem is "_effectFactory" is an object without an instance.
Before this code I did not find any instantiations of this object.
Where did you complete the initialization before Page_loaded
Can you answer my confusion, Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant