win-universal-app

How to finish current page in Windows Universal

拥有回忆 提交于 2019-12-08 06:46:29
问题 How can I close the current active Page in UWP development? I want to start a new Page and close the current one, so the user cannot go back to that page. Is there any method in UWP similar to Android's method "finish()"? 回答1: I think you should be able to do this by removing last page from back stack after navigating to a new one. Sample code in OnNavigatedTo of a new page: protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); this.Frame.BackStack.RemoveAt

Access to file in UWP

喜夏-厌秋 提交于 2019-12-08 06:45:35
问题 I'm developing an video player for Windows Universal 10 (target version: 10.0.10240.0) I'm able to launch files from PC to my app and play video as well as I want. The problem starts with I want when I launch a video, subtitle with the same name of video in the folder get it in application, for example I have these files in somewhere in my pc: The.Originals.S03E14.480p.mkv The.Originals.S03E14.480p.srt I want when i Launched this mkv file, can access to srt file too. the code I used:

Get Extended Splashscreen With Circular ProgressBar Around Image

爱⌒轻易说出口 提交于 2019-12-08 06:36:10
问题 I am using template 10 and want my splash screen to look like this: I have got the circular progress Bar control Here and got it around a image through Grace Feng help from this code Link Now I want this round progress control into my splash screen so it look like like the above images but in the extended splash screen link tutorial they show it by canvas and i want to do it by Myprogress control any idea how to implement this control in extended splash screen.If i just use it in splash.xaml

Disable left/right/up/down hotkeys in flipview

走远了吗. 提交于 2019-12-08 06:33:33
问题 How to disable right/left/up/down arrows hotkeys in flipview? I have a textbox on a flipview and when I move cursor using keyboard arrows and reach the end of textbox, it doesn't stop but flips the page which is annoying and is not applicable for my case. The same is true for cursor reaching the beginning of the textbox. I've tried different solutions, but none of them work. <FlipView x:Name="flipView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsTabStop="False"> <FlipView

Why my UWP app can't call to Type.GetProperties method?

旧巷老猫 提交于 2019-12-08 06:18:51
问题 I need to access to Type.GetProperties in my UWP platform, but my Type class lags of that method. In my mind it's because of the subset methods we have in UWP, but trying to find information, I found this: Type.GetProperties() doesn't work in Release so that method really exists in UWP. If I go to the definition of Type, the first lines are like this: #region Assembly System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a // C:\Users\JoséÁngel\.nuget\packages

How to get the Download/Upload status(in %) from Http Client in Windows 8.1 Universal App?

喜夏-厌秋 提交于 2019-12-08 05:57:24
问题 I have a spec in which there is a need to ignore HTTPS certificates and also to get the status of Upload/Download. I am using HttpClient to ignore the certificate but i could not find the way to get the status of downloading/Uploading. I know it was there in WebClient Windows Phone 8 and Webclient not there in Windows 8.1. So please guide me to accomplish both these things. 回答1: For Download progress, You can return response stream from your Http request and can use below code to write to

UWP Problems Setting GridView Items source using x:Bind

蓝咒 提交于 2019-12-08 05:00:56
问题 I am trying to populate my gridview with Photos from the Pictures library using data virtualization and compiled binding. I've taken the Microsoft UWP (Data Virtualization Sample) and using its FileSource as my base, I modified it to use my own Picture object and tried to apply it to my UWP app. All I am getting is a blank page, and the designer is throwing an exception. I want to use x:Bind to bind to my data source object in my model as I am using MVVM and don't want code-behind. I couldn't

UWP How to get ListviewItem Currently clicked and Previously clicked

喜你入骨 提交于 2019-12-08 04:37:32
问题 I am developing UWP App, I have a Listview bind with a class, wherein upto 10 items. Listview have a DataTemplate and a Usercontrol is inside this DataTemplate. I want to click on any item so the animation (storyboard) should start and the ColorBand should expand toward right and when I click on another item now the expanded (previously clicked) ColorBand should collapse and the current clicked item's ColorBand should expand. This approach can be possible if I put this ColorBand inside the

BackgroundTaskRegistration trigger property is null

僤鯓⒐⒋嵵緔 提交于 2019-12-08 04:36:23
问题 Hi want to receive push notifications on background task for that i have created Portable library here is my Background task class using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using Windows.ApplicationModel.Background; using Windows.Data.Xml.Dom; using Windows.Networking.PushNotifications; using Windows.Storage; using Windows.UI.Notifications; namespace BackgroundTask {

UWP application not going to suspend state

点点圈 提交于 2019-12-08 04:23:31
问题 In my UWP application I am using app service as in process background task to communicate with the win32 application to get the information.My application is not even going to suspend state. It always stays in the running state.But when i kill my win32 application it is going to suspend state. For making application to suspend state followed steps in How to make UWP app to suspend and resume state I also tried with the Samples provided by microsoft in git https://github.com/Microsoft