windows-10-universal

Universal Windows App Background Task “has exited with code 1 (0x1)”

∥☆過路亽.° 提交于 2019-12-25 06:29:12
问题 Scratching my head on this one. I've got a background task in my UWP application which is registered to run every 15 minutes (using TimeTrigger ) and whenever the internet becomes available (using a SystemTrigger ). I know for a fact that these are registered correctly as both appear in the "Lifecycle Events" when debugging using visual studio. Nevertheless, my code for registering them is below: bool registered1 = false; bool registered2 = false; foreach (var task in

Error Xaml namespace

北城以北 提交于 2019-12-25 06:13:07
问题 I am following a tutorial to implement a value converter. I receive an error for this code: public class BooleanToVisibilityConverter : IValueConverter { // } <Application x:Class="TestApp10.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:TestApp10" RequestedTheme="Light"> <Application.Resources> <local:BooleanToVisibilityConverter x:Key="TrueToVisibleConverter" /> <local

Error Xaml namespace

淺唱寂寞╮ 提交于 2019-12-25 06:12:45
问题 I am following a tutorial to implement a value converter. I receive an error for this code: public class BooleanToVisibilityConverter : IValueConverter { // } <Application x:Class="TestApp10.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:TestApp10" RequestedTheme="Light"> <Application.Resources> <local:BooleanToVisibilityConverter x:Key="TrueToVisibleConverter" /> <local

Diasble button animation or effects xamarin-forms

亡梦爱人 提交于 2019-12-25 04:04:08
问题 I have a touch screen to start page, and would just want to navigate to the next page when tapped - no animations/color changing effects on hover, clicked/pressed. But there's a gray opaque box when clicked... Anyone know how to override it? P.S. I know there are more ways to do this but I decided to create the whole page as a button and reduced the opacity to almost transparent. 回答1: The easiest way to achieve this would be to remove the Button 's template: <Button Template="{x:Null}"> ...

UWP sqlite-net Async database access

北城以北 提交于 2019-12-25 03:13:13
问题 On my UWP app, I'm using sqlite-net to access the database. According to their GitHub Page I'm using Source Installation. Now I want to migrate to using the Nuget package (To get the latest updates) and they have mentioned getting the PCL package. When I add the PCL package I don't have Async operations available like it was on Source Installation. Please let me know how to proceed on this matter. When it comes to UWP and I want to use sqlite-net I see soo many nugets in VS 2015 Nuget Package

UWP sqlite-net Async database access

左心房为你撑大大i 提交于 2019-12-25 03:13:12
问题 On my UWP app, I'm using sqlite-net to access the database. According to their GitHub Page I'm using Source Installation. Now I want to migrate to using the Nuget package (To get the latest updates) and they have mentioned getting the PCL package. When I add the PCL package I don't have Async operations available like it was on Source Installation. Please let me know how to proceed on this matter. When it comes to UWP and I want to use sqlite-net I see soo many nugets in VS 2015 Nuget Package

Populate ComboBox items and SelectedValue in a ComboBox that is within a GridView DataTemplate

 ̄綄美尐妖づ 提交于 2019-12-24 21:19:34
问题 I am developing a Windows 10 Universal App and I have trouble getting items to populate in a ComboBox (both ComboBox items and SelectedValue) that is within a GridView DataTemplate. I don't seem to be able to find a way to do this. Here are the details: I have an object ( UserData ) that can contain multiple instances of another object ( List<VisitedCity> ). On the XAML page, the multiple instances of VisitedCity are shown on a vertical GridView. Each instance of VisitedCity can contain the

WriteableBitmap inside Windows 10 IBackgroundTask

痴心易碎 提交于 2019-12-24 20:33:14
问题 I am trying to crop an image from a Run method from Windows 10 app (UWP) IBackgroundTask. To achive that I'm using the WriteableBitmapEx but at the moment that I try to instantiate a new object, I got the exception: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)) I have tried to use some Dispatchers but other exception ocurred. Any idea? 回答1: WriteableBitmap is a UI object, and requires UI thread, which

Write to a .txt file using data from TextBox when UWP app is closed

耗尽温柔 提交于 2019-12-24 18:26:16
问题 When user closes the app, I believe the OnSuspending method in App.xaml.cs is called first before termination. So, I put my code in there in order to automatically save what the user wrote in the TextBox to a .txt file called TextFile1.txt. The program runs without errors but it doesn't save the user's data to the .txt file when app is closed. Code in App.xaml.cs : private MainPage mainFrame; private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e

VS2017 Page is not supported in a Windows Universal project

六月ゝ 毕业季﹏ 提交于 2019-12-24 17:25:03
问题 I have a rather unpleasant problem since yesterday... I cleared my NuGet chache because I couldn't get a NuGet-Package to work with one of my codes. But it didn't help and instead f***ed up the UWP apps I wrote before that. I get errors for every element I have in my code like this: In XAML it's mostly "XXX is not supported in a WIndows Universal project" and in the .cs files its a lot of "Cannot resolve symbol XXX" How can I repair this? I can compile and run my code just fine but I can't