[英]Which C# project type should I choose? Need UWP design features, but WPF functionality
I want to take advantage of the nice acrylic brush that is offered in UWP, but I also need to be able to access other process information and load DLLs for SDKs (eg Aura (needs dll) and Philips Hue (works without referencing dll) and detect system hibernation/wake (UWP cant't distinguish between going to the lock screen or going to hibernation or waking/logging in)). 我想利用UWP中提供的漂亮的丙烯酸画笔 ,但是我还需要能够访问其他过程信息并为SDK(例如Aura (需要dll)和Philips Hue (无需引用dll即可工作))加载DLL,并且检测系统休眠/唤醒(UWP无法区分进入锁定屏幕还是进入休眠或唤醒/登录)。
I tried to make this in UWP, but the sandbox is making it impossible. 我试图在UWP中做到这一点,但沙箱却使其无法实现。 I also tried in WPF, but I couldn't get as good and nice performing acrylic effect as UWP offered, only the aero blur which is not as strongly blurred.
我也在WPF中进行了尝试,但是我无法获得UWP所提供的丙烯酸效果那么好,仅是空气模糊不那么强。 I lastly tried to create a WPF project that uses the Microsoft.Toolkit.Wpf.UI.Controls Nuget package, however it doesn't seem to come with the acrylic brush for WPF.
我最后尝试创建一个使用Microsoft.Toolkit.Wpf.UI.Controls Nuget包的WPF项目,但是它似乎并未随WPF的丙烯酸画笔一起提供。
What are my alternatives in C#? 我在C#中有哪些替代选择?
Is it possible to run a uwp app as the UI and have a WPF app as a constant background task without delay, messaging back and forth? 是否可以将uwp应用程序作为UI运行,并将WPF应用程序作为恒定的后台任务而没有延迟,来回传递消息?
Is it possible to run a uwp app as the UI and have a WPF app as a constant background task without delay, messaging back and forth?
是否可以将uwp应用程序作为UI运行,并将WPF应用程序作为恒定的后台任务而没有延迟,来回传递消息?
Yes, sort of. 是的,有点。 You can add a desktop extension component to your UWP app.
您可以将桌面扩展组件添加到UWP应用。
@Stefan Wick has written a number of blog posts on the subject and also provided a code sample on GitHub that shows how to extend a UWP app with a "classic" .NET console desktop application that runs as a full trust process. @Stefan Wick在该主题上写了许多博客文章,并在GitHub上提供了一个代码示例,该代码示例显示了如何使用作为“完整”信任过程运行的“经典” .NET控制台桌面应用程序来扩展UWP应用程序。
Please refer to his blog for more information. 请参阅他的博客以获取更多信息。
The question is asked in a kind of odd shape... however in WPF you can achive blur effect linke this: 以一种奇怪的形状提出问题...但是在WPF中,您可以达到模糊效果链接此:
<Grid.Effect>
<BlurEffect Radius="4" KernelType="Gaussian"/>
</Grid.Effect>
The radius changes the "blurynes" 半径改变“ blurynes”
And no you cannot run seperate applications without any draw backs... 不,如果没有任何缺点,您将无法运行单独的应用程序...
you should also check out: Apply blur to everything behind a chosen container 您还应该检查一下: 对所选容器后面的所有内容应用模糊处理
I think you are looking for Application Packaging Project
in Visual Studio
. 我认为您正在
Visual Studio
中寻找Application Packaging Project
。 You can find the examples on MS blog: https://blogs.windows.com/buildingapps/2017/12/04/extend-desktop-application-windows-10-features-using-new-visual-studio-application-packaging-project/#KeIh8l8WoJ5OLGkE.97 您可以在MS博客上找到示例: https : //blogs.windows.com/buildingapps/2017/12/04/extend-desktop-application-windows-10-features-using-new-visual-studio-application-packaging -project /#KeIh8l8WoJ5OLGkE.97
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.