我正在尝试获取对Windows中使用SwapChainPanel创建的C#中创建的SharpDX的原生COM对象的引用。
我用WinUI 3和.Net 6将我的项目从UWP迁移到了更新的Windows,除了创建SwapChainPael之外,一切都正常工作。
UWP:
新Windows:
有上述错误的部分是这个CRenderer:71(ctor)
// Obtain a reference to the native COM object of the SwapChainPanel.
using (var nativeObject = ComObject.A
我使用的教学提示控制来自WinUi 2.4在UWP,想改变背景颜色。但我在xaml中给出的背景值并没有反映在控制中。
<winui:TeachingTip x:Name="ToggleThemeTeachingTip2"
Title="Change themes without hassle"
Subtitle="It's easier than ever to see control samples in both light and dark theme!"
PreferredPlacement="Auto
我在Uno-platform上遇到了WinUI-template的问题。例如,当从Microsoft.UI.Xaml.Data命名空间实现INotifyPropertyChanged接口时(我猜这应该是正确的),应用程序可以在UWP上工作,但不能为Droid目标构建。使用System.ComponentModel命名空间(对于WinUI应该是过时的),应用程序为Droid目标构建和运行,但它不能在UWP目标上工作(这意味着通知不是由UI处理的)。 似乎在提供的解决方案模板中有关于不同目标的混淆。我使用以下说明创建了解决方案:Templates for Uno Platform 此外,我在目标
我正在尝试开发一个使用Windows Template Studio,Caliburn.Micro和导航视图的UWP解决方案。问题是,当我添加一个新页面时,我得到一个"System.NullReferenceException:'Object reference not set to a object instance‘“。尝试导航时出错。
我注意到在这个方法中:
private void OnItemInvoked(WinUI.NavigationViewItemInvokedEventArgs args)
{
if (args.IsSettingsI