问题标签 [windows-8.1-universal]

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 投票
1 回答
85 浏览

windows-store-apps - Windows 8.1 / 10 应用拼写检查语言

如何在 TextBox 上设置拼写检查语言?我试过这个:

但没有运气:(

有了这个,我只能得到丹麦语拼写检查。

(我使用的是丹麦语输入语言)

该应用程序的目标 Windows 8.1。

0 投票
1 回答
166 浏览

c# - 解析error.Primitives.RangeBase.Minimum

我正在尝试在 windows 通用 8.1 上放置一个滑块,但我不确定需要什么。我的错误是:

这段代码到底出了什么问题?这是第 22 行:

这是事件处理程序:

0 投票
1 回答
49 浏览

windows-store-apps - 如何从 PlayerFramework(Windows 应用程序)将 ListView 添加到播放器?

在此处输入图像描述

我从 PlayerFramework 向播放器添加了一个按钮,当单击该按钮时,会出现一个 ListView 用于选择视频质量。
但我不知道当用户单击 ListView 中的项目时如何实现 ItemClicked 事件来处理。任何人都可以帮助我吗?

我的代码:

娱乐.xaml

CustomInteractiveViewModel.cs

主页.cs

主页.xaml

0 投票
0 回答
269 浏览

windows-10-universal - 如何使用 C# 在 Windows 8 Universal App 中播放 google Widevine DRM

我必须为视频流构建一个 Windows 8 通用应用程序,并且我已经在其他平台(Android 和 iOS)上使用谷歌 Widevine DRM 来处理我的视频。那么,Windows 10 通用应用程序是否支持 Widevine DRM?如果可能,请分享详细信息。

0 投票
3 回答
582 浏览

c# - 选择 ListViewItem 时如何更改文本块颜色?

在 Windows 8.1 商店应用程序中选择 ListViewItem 时如何更改文本块的颜色?

0 投票
1 回答
40 浏览

c# - Universal Windows 8.1 Build simple tree structure

I am reletevely new to Windows Apps development. Not sure if I am right or wrong, but I believe that there is no tree structure in Windows 8.1 apps. If I am wrong or anyone has a solution how I could include a simple tree structure in my app would be really appreciated.

Note: I'm working with C#, Visual Studio 2015, WinRT (Windows Universal 8.1 / Windows Phone 8.1 [phone is not necessery at this point]).

Thanks for answers in advance!

0 投票
0 回答
276 浏览

c# - 在 Canvas Windows 10 通用应用程序上绘制形状时出错

我正在创建一个在画布上绘制形状的应用程序,这些形状使用https://github.com/phatware/WritePadSDK sdk 用于书写板被识别为字母。但问题是这个 api 代码在 windows 8.1 项目中使用时工作正常,但是当在 windows 10 通用应用程序中使用相同的代码时,它在我调试代码时会产生错误。xaml 的代码如下所示

下面给出了使用 sdk 识别形状的代码,该代码在 Canvas 的 PointerReleased 事件上执行:-

当我检查sdk中给出的方法时,即RecognizeStrokes进行重新殖民化时,我在调试时遇到了错误

在此处输入图像描述

由于此代码在 Windows 8.1 项目中运行良好,我认为这可能与 Windows 10 通用应用程序问题有关

Excelption详细信息如下: -

AccessKeyScopeOwner = 'new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0].AccessKeyScopeOwner' 引发了“System.InvalidCastException”类型的异常

AllowFocusOnInteraction = '((Windows.UI.Xaml.FrameworkElement)new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0]).AllowFocusOnInteraction' 引发了“System.InvalidCastException”类型的异常

AllowFocusWhenDisabled = '((Windows.UI.Xaml.FrameworkElement)new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0]).AllowFocusWhenDisabled' 引发了“System.InvalidCastException”类型的异常

ContextFlyout = 'new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0].ContextFlyout' 引发了“System.InvalidCastException”类型的异常

ExitDisplayModeOnAccessKeyInvoked = 'new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0].ExitDisplayModeOnAccessKeyInvoked' 引发了“System.InvalidCastException”类型的异常

FocusVisualMargin = '((Windows.UI.Xaml.FrameworkElement)new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0]).FocusVisualMargin' 引发了“System.InvalidCastException”类型的异常

FocusVisualPrimaryBrush = '((Windows.UI.Xaml.FrameworkElement)new System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0]).FocusVisualPrimaryBrush' 引发了“System.InvalidCastException”类型的异常

新 System.Collections.Generic.Mscorlib_CollectionDebugView(strokes).Items[0].IsAccessKeyScope

请帮我解决上面的问题。

下面给出了下载示例项目代码的链接,用于测试您可以在哪里看到问题

https://www.dropbox.com/s/1xbtxbxwyoyuf00/WindowsSDK.rar?dl=0

谢谢!

0 投票
0 回答
121 浏览

google-analytics - 谷歌分析未显示 Windows 8.1 通用应用程序

我正在使用 Windows 10 通用应用程序并添加了第三方 Google Analytics SDK,我正在使用下面的代码进行页面查看。

我在 Analytics.XML 文件中添加了跟踪 ID,但分析不起作用,我也在 Windows 10 通用应用程序中尝试它不起作用,我从这个 zip 文件中获取代码

Nuget 包

适用于 Windows 和... 1.3.0 的 Google Analytics SDK

项目主页

适用于 Windows 和 Windows Phone 的 Google Analytics SDK

0 投票
1 回答
69 浏览

c# - 从其 winrt 组件获取 Windows 8.1 通用应用程序状态/公共变量访问权限

我有一个通用 Windows 平台应用程序,我使用 winrt 组件(解决方案中的单独项目)进行背景检查。我正确注册它,系统每 15 分钟启动一次我的 winrt 课程。问题是我的应用程序使用相同的文件并进行与背景检查器相同的检查。所以我需要知道我的应用程序是否还活着(后台或前台)以跳过后台检查以避免多线程文件访问。有什么方法可以从 winrt 组件访问我的应用程序的状态,或者查询系统我的应用程序是否处于活动状态?

0 投票
1 回答
521 浏览

c# - 如何将屏幕截图上传到 Microsoft Store for Windows 8.1 Universal App

我使用相应的屏幕截图向商店发布了一个 Windows 10 应用程序。

我现在为 Windows 8.1 通用开发了相同的应用程序,并且屏幕截图与 Windows 10 应用程序不同。

如何上传 Windows 8.1 通用应用截图?