[UWP] EasingFunctionBase UWP:如何? [英] [UWP]EasingFunctionBase UWP: How to?

查看:54
本文介绍了[UWP] EasingFunctionBase UWP:如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试为我拥有的组件开发一些动画,我想使用自己的函数而不是通过API提供的默认值。据我所知,有一个名为"EasingFunctionBase"的类。我将通过我自己的
类扩展,然后添加我自己的代码。我的问题是我不能! Visual Studio输出一个错误,指出"EasingFunctionBase"和"EasingFunctionBase"。没有无参数的构造函数我无法做任何事情。


任何帮助?

解决方案

您好TGPT I Alves,


"EasingFunctionBase "文档说明了" EasingFunctionBase不可扩展。它提供基类
支持Windows运行时缓动函数类,例如ExponentialEase。当您在Windows运行时缓动函数类上调用Ease时,您将获得该缓动函数类的特定缓动行为。除了EasingMode之外,还可能有类
的属性修改Ease行为。
"。


此外,  欢迎
到开发环球Windows应用论坛!


请阅读粘贴帖子,尤其是

发布指南:主题行标签

Windows 10 SDK和工具的已知问题 
 


这次我为你添加了标签,下次你需要自己为标题添加标签。



最好的问候,


Xavier Eoro


Hello,

I'm trying to develop some animation to a component I have, and I wanted to use my own function instead of the defaults available through the API. As far as I could tell, there's a class called "EasingFunctionBase" which I would extend by my own class then add my own code. My problem is that I can't! Visual Studio outputs an error stating that "EasingFunctionBase" has no parameterless constructor which I cannot do anything about it.

Any help?

解决方案

Hi TGPT I Alves,

The "EasingFunctionBase" documentation has explained "EasingFunctionBase is not extensible. It provides base class support for the Windows Runtime easing function classes, for example ExponentialEase. When you call Ease on a Windows Runtime easing function class, you get the specific easing behavior of that easing function class. There may also be properties of the class other than EasingMode that modify the Ease behavior.".

In addition, Welcome to the Developing Universal Windows apps forum!

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools  

I have added tag for you this time, and you would need to add tag to title by yourself next time.

Best Regards,

Xavier Eoro


这篇关于[UWP] EasingFunctionBase UWP:如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆