问题标签 [template10]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
127 浏览

winrt-xaml - BottomAppBar 覆盖汉堡菜单底部

实施并打开汉堡菜单窗格时,底部(设置)被 BottomAppBar 覆盖/隐藏。

0 投票
2 回答
269 浏览

template10 - Updating Microsoft.Xaml.Behaviors.Uwp.Managed to ver 1.1.0 breaks Template10 also Template don't pass windows store cert

after updating Microsoft.Xaml.Behaviors.Uwp.Managed to version 1.1.0 Template10 app doesn't build with error:

Also all Apps built with template10 including blank/hamburger/minimal templates (latest Template10 version 1.1.5) without any code added fail Windows app certification kit App prelaunch test.

0 投票
1 回答
1458 浏览

xaml - 在安装 Template10 build 1.1.7 后,我不断收到未设置为对象实例的对象引用错误

每次我尝试编译我的应用程序(Petrolhead - https://github.com/SupernovaApps/Petrolhead的源代码),升级到 Template10 1.1.7 后,我都会收到以下错误:1>C:\Program Files (x86 )\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(350,5):Xaml 内部错误错误 WMC9999:对象引用未设置为对象的实例。

有谁知道这意味着什么,我能做些什么?

(如果有人可以下载我的应用程序的源代码,并查看他们是否收到相同的错误,我将不胜感激。我目前正在测试 UWP 客户端)。

0 投票
1 回答
153 浏览

template10 - 如果我想包含模板 10 代码项目(不仅通过 GitHub),我该怎么做?

我想我必须只包含“模板 10(库)”文件夹中可用的项目(因为它是模板 10 解决方案中可用的示例项目),但如果我这样做并尝试编译它,我会得到这个与 Snippets 文件夹相关的错误:

严重性代码描述项目文件行抑制状态错误命令“调用“C:\Data\projects\GitHub\Template10\Template10(库)\Nuget\Build.cmd”“C:\Data\projects\GitHub\Template10\Template10(库)\bin\x86\Debug\" "Template10Library" "C:\Data\projects\GitHub\Template10\Template10 (库)\" call "C:\Data\projects\URBELOG PROJECTS\Urbelog10\Urbelog10\Snippets\InstallSnippets .cmd"" 以代码 1 退出。 Template10(库)

0 投票
2 回答
260 浏览

xaml - 无法将 ResourceDictionary 添加到 App.xaml

我目前正在使用 T10 开发一个简单的应用程序,使用空白模板。然后,我从 Hamburger 模板中看到您通过像这样添加Application.Resource将Custom.xaml 主题应用到 App.xamlApp.xaml

我在我的项目中做了同样的事情,但我得到了 XAML 异常。

这是来自异常的消息:

“对 COM 组件的调用已返回错误 HRESULT E_FAIL。”

我错过了什么?

nb:注意一点,当我尝试手动输入 Application.Resource App.xaml 时,Intellisense 没有捕捉到该 Application 部分,但后来显示当我尝试完成它时Resource

0 投票
1 回答
129 浏览

winrt-xaml - 如何在模板 10 的拆分视图中放置单独的视图?

基本上我希望 MainPageView 中的这个 splitview 加载包含其自己的 ViewModel 的 DepartmentView,该 ViewModel 具有 Observablecollection

但它必须与导航服务同步。因为我依靠 template10 的 OnNavigatedToAsync 来加载我的数据

0 投票
2 回答
593 浏览

c# - Template10 Resume running services after app suspension

I am developing a UWP template 10 (Hamburger) app which makes use of the Microsoft Band, I thought I had pretty much finished as I have all my services tied up to the Band (through a class library project) and the values are updating on screen perfectly. I then started testing app resume and came across a problem. When I restart an app the user is taken back to the values page but the values no longer update. Basically the connection to the band seems to still be valid but the readingchanged voids are no longer working.

So I added code in the MainPageViewModel OnNavigatedFromAsync method to stop all of the services no problem. But then I found that when resuming the OnNavigatedToAsync method does not get fired so I can't work out how to restart all the services.

I also tried adding the overrides for OnResuming and OnSuspendingAsync in app.xaml.cs but then can't work out how to call methods in the MainPageViewModel from there. Is there a proper way to handle things like this using Template10?

0 投票
2 回答
1913 浏览

winrt-xaml - 安装过程中的模板 10 错误 Application Insight 在命名空间中不存在

我已按照说明启动并运行模板 10,但我遇到了单个程序集错误 CS0234

错误 CS0234 命名空间“Microsoft”中不存在类型或命名空间名称“ApplicationInsights”(您是否缺少程序集引用?) WindowsApp1 C:\Users\Keshi\AppData\Local\Temporary Projects\WindowsApp1\App.xaml.cs

任何想法都是为什么缺少这个程序集。我已经安装了整个 VS 包。为什么会缺少这个程序集。

谢谢

0 投票
1 回答
1583 浏览

c# - 汉堡菜单按钮的动态列表

我想HamburgerMenu从项目的动态列表中创建一个,最好我想将ListBox带有模板的东西绑定到我的视图模型上的列表,并让菜单项动态显示。(见:http ://bit.ly/1Lac78E )。

尝试将任何内容添加到PrimaryButtons(或可能SecondaryButtons)集合中,而不是HamburgerButtonInfo导致错误。大概是因为这些集合被声明为:

那么是否可以使用 Template10 汉堡菜单来执行此操作,而无需使用以下问题中的代码隐藏:UWP Template 10 create a dynamic hamburgermenu

更新

澄清一下,我正在尝试创建一个类似于邮件和日历应用程序的导航菜单(使用汉堡菜单模板),其中有一个动态的文件夹列表和文件夹中的项目。

在此处输入图像描述

0 投票
1 回答
325 浏览

xaml - 在 App.xaml 上添加 BasedOn 样式在 App() { InitializeComponent(); 上崩溃;}

使项目适应Template10,我进入 App.xaml 中的继承样式正在崩溃。

它看起来像Template10,不支持继承或扩展样式。我试图从TitleStyle扩展SubTitleStyle ,但在XamlTypeInfo.g.cs中的GetXamlType上出现 COM 异常

我的 App.xaml.cs

我的应用程序.xaml

异常信息: