win-universal-app

Windows Phone 8.1 Sqlite-net foreign key relationship

百般思念 提交于 2019-12-08 04:05:37
问题 I have installed sqlite-net from NuGet package in my windows phone universal app. But it does not contain foreign key relationship attribute between tables. I searched the web and found that SQLITE-Net Extenstions can handle this by using attributes, But it can only be installed on Windows 8.1 app not on windows Phone 8.1. How can use this extension in windows phone 8.1 or is there any other solution for foreign key relationships in sqlite? Thanks! 回答1: There exists a PCL version of this

Template 10:Get the splash screen like the course in MVA

此生再无相见时 提交于 2019-12-08 03:18:36
问题 I just completed the course on template 10 in mva. Now I am working on this app and would like it to have the splash screen like this(of course the logo can be changed). Where should I get started to code(any tutorial)? Or if there's a sample code available. Screenshots: 回答1: I think it uses an extended splash screen. The extended splash screen in UWP is the same as it in a Windows 8.1 app. You can start with How to extend the splash screen (XAML), there is a 8.1 sample in this document, and

ControlChannelTrigger in UWP Windows 10 access denied

故事扮演 提交于 2019-12-08 03:15:17
问题 I am trying to implement background task with ControlChannelTrigger using WebSockets. In MSDN example I get an exception while running on Windows 10 Desktop in this place: channel = new ControlChannelTrigger(channelId, serverKeepAliveInterval,ControlChannelTriggerResourceType) Exception is "Access denied" However in Windows 10 mobile this line passes and I get an exception Access Denied in the last line of the following block: channel.UsingTransport(socket); var uri = new Uri(url); await

Write into file from assets folder uwp

爱⌒轻易说出口 提交于 2019-12-08 02:58:16
问题 I'd like to write text content into a file that is located Assets folder, so I access file but I don't have access to write into it, my code is: try { //get the file StorageFile storageFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///assets/test.txt")); //try to write sring to it await FileIO.WriteTextAsync(storageFile, "my string"); } catch (Exception ex) { Debug.WriteLine("error: " + ex); } and I get the error: Exception thrown: 'System.UnauthorizedAccessException

“GenerateAppxPackageRecipe” task was not given a value for the required parameter “AppxManifestXml”

戏子无情 提交于 2019-12-08 02:56:01
问题 Just updated to VS2015 Update 3 RC and now can't build UWP solution in Release configuration because of the following error: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2194,5): error MSB4044: The "GenerateAppxPackageRecipe" task was not given a value for the required parameter "AppxManifestXml" . It was fine a few minutes ago with VS2015 Update 2 and no any code changes since then. Anyone experience something like this after update

Change the style of content dialog button in windows phone universal application

﹥>﹥吖頭↗ 提交于 2019-12-08 02:40:03
问题 I have this content dialog box defined inside my xaml: <ContentDialog x:Name="AlertMessage" Background="#363636" IsSecondaryButtonEnabled="True" SecondaryButtonText="Cancel" IsPrimaryButtonEnabled="True" PrimaryButtonText="Ok" > <ContentDialog.Content> <StackPanel Name="rootStackPanel" Height="Auto" > <StackPanel Margin="0"> <StackPanel Margin="0,0,0,10" Orientation="Horizontal"> <TextBlock x:Name="HeadingText" x:FieldModifier="public" Style="{StaticResource ApplicationMessageBoxHeadingStyle}

WebRequest does not contain a definition for 'GetResponse' for Windows 10 Universal App

家住魔仙堡 提交于 2019-12-08 01:51:00
问题 I download a Console Application on GitHub and works fine. But I want to translate this C# Console Application to a Universal Windows 10 Application. The error on Visual Studio : Web Request does not contain a definition for... This is the code: private AccessTokenInfo HttpPost(string accessUri, string requestDetails) { //Prepare OAuth request WebRequest webRequest = WebRequest.Create(accessUri); webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.Method = "POST"; byte[]

Windows Store App drag and drop between ListViews

[亡魂溺海] 提交于 2019-12-08 01:10:30
问题 I am building a Windows Store App / Universal App targeting Windows 8.1 and Windows 10 and I would like to be able to drag and drop items between ListViews and be able to position the item in a specific spot in the ListView. The main problem I'm having is that I can't find a good way to determine the list index of where the item was dropped. I found a sample (XAML ListView reorder) but an important difference is that the items in my list have variable heights so the simple calculation this

FileNotFoundException in Windows 10 Universal App (UAP)

寵の児 提交于 2019-12-08 00:51:17
问题 I developed and published a Windows Universal App. To track exceptions and the app usage I enabled Application Insights and I can find FileNotFoundException's there with the following Call Stack: at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86bd63 --- End of stack trace from previous location where exception was thrown --- at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86d250 --- End of stack

Internal compiler error when UseDotNetNativeToolchain is true

妖精的绣舞 提交于 2019-12-07 23:29:31
问题 I have a UWP app that compiles successfully if I have UseDotNetNativeToolchain off. But when I turn it on, it gives me the cryptic error: Internal compiler error: Object reference not set to an instance of an object. UWPApp C:\Program Files (x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets 887 Build This is all it gives me. What could be causing this? How can I drill down on this. Using VS2015 Here is the full build output in case that helps: https://gist.github.com/shannah