Comments (9)
Can confirm, same happens here. (Tested on Lumia 950, latest stable (not-insider) OS version.)
from windowscompositionsamples.
Thanks @JustinXinLiu @tomzorz. We'll get some folks to take a look at it.
Just to clarify:
Found on build(s): 10586, 14527
Repo Steps:
- Create an
ExpressionAnimation
with Conditional Operator Expression without parenthesis (like you have above) - Play the
ExpressionAnimation
on a Visual
Expected Results:
ExpressionAnimation
runs conditionally.
Actual Results:
Screen goes black and feels like a video card failure.
from windowscompositionsamples.
Yes that's right thanks @pgills!
from windowscompositionsamples.
Hey @JustinXinLiu!
Sorry for the delay on getting back to you on this. We have a hunch on what you're running into - to verify, can you try the following out for us: In your ternary operator, remove the parentheses you added in to make it work and add in your condition portion a sequence of nested 0's such as [...] + (0 + (0 + (0 + (0 + (0+0))))). (The more complex your "if true" and "if false" portions are, increase the number of nested 0's in the condition)
So in your example above, it will look like A < 0 + (0 + (0 + (0 + (0 + (0+0))))) ? B + C: B + D.
Let us know what happens. Thanks!
from windowscompositionsamples.
@patsiu you guys must have found the issue! After I added (0 + (0 + (0 + (0 + (0 + 0)))))
to all the conditional portions both my phone and PC are working. 👍
from windowscompositionsamples.
Awesome - thanks for verifying @JustinXinLiu !
We have a fix for this issue, which will come in a future insider build. Until then, use the nested 0's model as a temporary workaround (especially with more complex ternary operators).
from windowscompositionsamples.
Sure thanks guys! I will close the issue once the new build comes out.
from windowscompositionsamples.
Hey guys looks like the issue has been fixed in build 14267? I just updated my PC and it no longer crashes. So I am closing it now.
from windowscompositionsamples.
Thanks @JustinXinLiu.
from windowscompositionsamples.
Related Issues (20)
- I can't get my Projection Matrix to have a proper perspective for a Rotation animation HOT 5
- [Question] Is it possible to make Composition Animation running along with a path?
- GraphicsCaptureItem.CreateFromVisual has blur
- A little doubt about about code in ThumbnailLighting.xaml.cs HOT 3
- Build error in VS2019 and VS2019 preview HOT 3
- Does Windows.UI.Composition support Direct3D 12?
- how to apply effects to any shape of area of an xaml element or visual element? HOT 2
- AnimationController.Progress always return zero HOT 2
- Add sample for Snap points / Inertia modifiers
- Use Windows Community Toolkit library instead of custom code HOT 1
- Navigation Flow example crashing HOT 1
- Grammatical error HOT 1
- WindowsComposition Animation End Event missing. HOT 1
- Is Windows Composition API dead? HOT 4
- Channel 9 links on Resources page re-direct to the same Microsoft Docs page HOT 1
- Taking a screenshot of windows with AllowsTransparency="True" HOT 1
- Can we have C++ samples?
- Official DirectComposition Interop
- Looks like a bug in ImageLoader.cs
- Docs on IAnimationObject and CompositionAnimation.SetExpressionReferenceParameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowscompositionsamples.