windows-8

How to switch between webcams when using CaptureElement/MediaCapture? [closed]

拥有回忆 提交于 2019-12-06 08:56:08
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying to provide an option to switch between webcams used to display preview using CaptureElement/MediaCapture. Unfortunately I tried multiple combinations of call sequences and the preview only shows up for the first device I use. This is what I have been trying to do: XAML: <CaptureElement x:Name="captureElement" Stretch="UniformToFill" /> C#: MediaCapture mediaCapture; DeviceInformationCollection

Setting mailto: protocol handler programmatically in Windows 8

夙愿已清 提交于 2019-12-06 08:55:22
问题 Before Windows 8, the method of adding a mailto: protocol handler was straightforward (as outlined here Register Windows program with the mailto protocol programmatically) As of Windows 8, the old method no longer works. It would seem that Win8 enforces the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\URLAssociations\‌​MAILTO\UserChoice . It also appears the ProgID of the selected app is hashed and can't be forged, at least not that I can tell. Does anyone

RightTapped not fired on Metro ListViewItem if ListView in other than “None” selection mode

柔情痞子 提交于 2019-12-06 08:48:00
问题 The issue is practically the same as described here: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/542b827a-7c8e-4984-9158-9d8479b2d5b1 but I am not satisfied with the answer accepted there and feel that there must be a better solution... I am trying to implement a 'clasic' context menu on my list view (not via the AppBar but via PopupMenu) and that works fine, however only if I set the list view into the "None" SelectionMode. The link above correctly explains that

Detect touch events in Chrome on Windows 8 with touchscreen

随声附和 提交于 2019-12-06 08:47:50
I built a touch/mouse friendly jQuery plugin. It works on phones(ios, android...) and desktops browsers. But i have some issues with Windows 8 Chrome installed on laptop with touch screen. Unfortunately i dont have such a device and cant do any tests.Also IE10 works fine. Let me explain you what i have inside(very simplified code): 1.Check is touch device: base.isTouch = ("ontouchstart" in document.documentElement); 2.Get proper events if(base.isTouch === true){ //use touch events: "touchstart.owl", "touchmove.owl", "touchend.owl" } else { //usemouse events "mousedown.owl", "mousemove.owl",

How to check if a user rated my app

删除回忆录丶 提交于 2019-12-06 08:47:44
I developed a simple free game for Windows 8 Store and now I want to ask my users to give the game a rating and possibly write it a review. How can I check if they already did this (i.e. rated the game or wrote a review), so I do no not ask again? Jared has pretty much nailed it. I don't think you can unless there is a Windows Store API that provides that information to your app. The user information and his/her rate and review status and data is stored outside of your app and therefore you have to query the external data source (Windows Store in this case) to know whether he or she has rated

Bind resource file value strings in Windows Store App using C# and XAML

扶醉桌前 提交于 2019-12-06 08:46:40
问题 I have the resource file: Strings\en-US\Resources.resw I'm trying to bind to a string from this file like so: <TextBlock Text="{Binding Path=LocalizedResources.app_name, Source={StaticResource LocalizedStrings}}" /> I guess this approach is wrong because I get "The Resource 'TestString' could not be resolved.". How do I bind to a string from a resource file? PS: I have TestString in the resource file. PPS: I need to create Windows 8 store app with Studio 2012, not Windows 8.1 app. 回答1: You

API Failure Sqlite

被刻印的时光 ゝ 提交于 2019-12-06 08:36:48
I ran the Windows 8 App Certification Kit on my app and it says it will fail because of Sqllite. Am I referencing code incorrectly or can I ignore this problem? Here is the response: Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store certification requirements. API __CppXcptFilter in msvcr110.dll is not supported for this application type. sqlite3.dll calls this API. API __clean_type_info_names_internal in msvcr110.dll is not supported for this application type. sqlite3.dll calls this API. API __crtTerminateProcess in

How to refresh explorer after a registry change

假装没事ソ 提交于 2019-12-06 08:35:26
I'm trying to refresh the system (Windows 8) after changing a value in the registry, this value affects the explorer settings, Is the value to show/hide the checkboxes: Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Shown RegEdit.Set_Value("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", _ "AutoCheckSelect", "1", Microsoft.Win32.RegistryValueKind.DWord) End Sub And to refresh the system I use this: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click SHChangeNotify(HChangeNotifyEventID.SHCNE_ASSOCCHANGED,

Superscript or subscript in TextBlock

扶醉桌前 提交于 2019-12-06 08:31:12
<TextBlock Foreground="Black" FontSize="50" FontFamily="Segoe UI"> <Run>Normal Text</Run> <Run Typography.Variants="Superscript" Text="Superscript123"/> <Run Typography.Variants="Subscript" Text="Subscript123"/> </TextBlock> Below is my screen shot. It seems that certain characters are not allowed in super/sub script. Actually I want to put a ® symbol what I'm getting is and what I want is P.S. I found this answer https://stackoverflow.com/a/3435675/468724 but there is no such property as BaselineAlignment Either use Segoe WP font Or can do like this <StackPanel Orientation="Horizontal">

How to deserialize JSON text into a date type using Windows 8 JSON.parse?

↘锁芯ラ 提交于 2019-12-06 08:10:44
I'm building a Windows 8 Metro app (aka "Modern UI Style" or "Windows Store app") in HTML5/JavaScript consuming JSON Web Services and I'm bumping into the following issue: in which format should my JSON Web Services serialize dates for the Windows 8 Metro JSON.parse method to deserialize those in a date type? I tried: sending dates using the ISO-8601 format , (JSON.parse returns a string), sending dates such as "/Date(1198908717056)/" as explained here (same result). I'm starting to doubt that Windows 8's JSON.parse method supports dates as even when parsing the output of its own JSON