win-universal-app

Windows-10 CreateFile2 error (ERROR_NOT_SUPPORTED_IN_APPCONTAINER)

末鹿安然 提交于 2019-12-12 01:35:51
问题 CreateFile2 api is returning ERROR_NOT_SUPPORTED_IN_APPCONTAINER when the file is not present/available in the path. My code is as below CREATEFILE2_EXTENDED_PARAMETERS ms_param = {0}; ms_param.dwSize = sizeof(CREATEFILE2_EXTENDED_PARAMETERS); ms_param.dwFileAttributes = FILE_ATTRIBUTE_READONLY; ms_param.dwFileFlags = FILE_FLAG_NO_BUFFERING; ms_param.dwSecurityQosFlags = SECURITY_DELEGATION; ms_param.lpSecurityAttributes = NULL; ms_param.hTemplateFile = NULL; g_hfile = CreateFile2(filename,

Why pivot will cause crash when clicking and tapping(only Surface not desktop not phone), but swiping works fine in UWP?

无人久伴 提交于 2019-12-12 01:29:53
问题 I'm upgrading my app to UWP and found that when I swipe the pivot item it works fine while clicking|tapping will cause app crash. This only happens in SP not in desktop mode nor phone. I do think this style is broken, but have no idea why it will fail and how to fix it. Any idea? <Style x:Key="PivotStyle" TargetType="Pivot"> <Setter Property="Margin" Value="0"/> <Setter Property="Padding" Value="0"/> <Setter Property="Foreground" Value="{StaticResource XX.ColorBrush.BB1}"/> <Setter Property=

No Basic Camera UI for Windows Phone 8.1

三世轮回 提交于 2019-12-12 01:29:05
问题 OK. Questions. I know there is no CameraCaptureUI in Windows phone 8.1, so I have to use MediaCapture class. That's fine but what about UI? Do I have to make and position button in my screen from scratch?(like flash button, front camera button etc) About Nokia Imaging SDK. does it provide any UI? and can I use that API for taking picture instead of working directly with MediaCapture?. I tried to find out some information about initializing and taking picture using nokia imaging sdk, but I

How do we get workgroup name from windows 10 in uwp?

陌路散爱 提交于 2019-12-12 00:38:12
问题 How do we get workgroup name from windows 10 in uwp and all other attribute of user? 回答1: There is a User class available (UWP): https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.user.aspx There you can find the attributes of the user 回答2: You can use NetworkInformation class For example to get computer name use: var hostNames = NetworkInformation.GetHostNames(); var localName = hostNames.FirstOrDefault(name => name.DisplayName.Contains(".local")); var computerName =

Unhandled exception 0xC0000008: An invalid handle was specified in dynamic recompiler

送分小仙女□ 提交于 2019-12-12 00:35:45
问题 The code is a MIPS->ARM dynamic recompiler. After many times of running recompile_function(), it crashes at the condition clause of below code, though it can run this line of code without any issue during the earlier function running. void recompile_function(){ //recompilation code ...... if (out > (u_char *)((u_char *)base_addr + (1 << TARGET_SIZE_2) - MAX_OUTPUT_BLOCK_SIZE - JUMP_TABLE_SIZE)) out = (u_char *)base_addr; // other code ...... } Variable out is the pointer used to write the

How do I set the target Device Family for my Universal App Project

社会主义新天地 提交于 2019-12-12 00:29:02
问题 I made an Universal App but I only want to publish it for Desktops and not for Phones yet. I also have a Windows Phone 8 App of the same name that I want to keep for all windows phone 8.1 and windows phone 8 Users. How can I accomplish this? The store just doesn't seem to have any options to allow this. Any help? 回答1: Windows 10 Mobile is still in preview. Only Desktop has RTMed. When Mobile is available there should be a checkbox on the dashboard. See Device families at https://msdn

ContentControl won't use DataTemplates

我怕爱的太早我们不能终老 提交于 2019-12-12 00:25:53
问题 I have two models that i want to represent as directories and files. The models both implement an interface which contains a property string Name {get;} . public interface INode { string Name { get; } string Path { get; } } public class Directory : INode { public Directory(string name, string path) { this.Name = name; this.Path = path; } public string Name { get; } public string Path { get; } } public class File : INode { public File(string name, string path) { this.Name = name; this.Path =

MissingMetadataException when building UWP app with .Net native

你说的曾经没有我的故事 提交于 2019-12-11 23:27:50
问题 I have this UWP app that uses a project (UWP class library) which itself uses EF7 and SQLite. I tried to build the app in the Release mode using .Net native tool chain, the build completes successfully (after a good long time, and after eating as much memory as it can), but the application crashes just after leaving the splash screen. After following some advice on SO I tried the .Net native with Debug mode, the build finishes just like in the Release mode, but I get many errors on the output

Is there a way I can have an object take up multiple grids in Windows UA?

余生长醉 提交于 2019-12-11 23:08:33
问题 I'm trying to make my first app, and I'm having a little trouble with the grids. I'm trying to make the left side of the screen a map, and the right side 2 boxes/grids. I'm not sure if there is a way to have an object within multiple grids or how to just setup a layout like that (basically a + with the left line gone) So far, this is the code I gotten for the layout. <Grid.RowDefinitions> <RowDefinition Height= "*"/> <RowDefinition Height= "*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions>

System.Argument Exception in Visual Studio 2015

随声附和 提交于 2019-12-11 23:07:26
问题 I am trying to develop a windows universal app. Today, when I opened xaml editor I am facing the following issue. System.ArgumentException An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value,Boolean add) at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.CachedAppPackageInfo.DeserializeCacheMappings(String[] values) at Microsoft.VisualStudio