win-universal-app

Navigate to a different page from ContinueFileOpenPicker method

杀马特。学长 韩版系。学妹 提交于 2019-12-23 05:17:24
问题 I'm using the FilePicker for Windows Universal apps and I'm trying to launch the File Picker from MainPage.xaml and then navigate to a different page (LoadPhoto.xaml) to render the selected image. I initially implemented my app so that I'd navigate to LoadPhoto.xaml and then, as part of loading the page, I'd call the File Picker. However that caused issues when resuming the app, so I moved the File Picker call out of the constructor. In the newest implementation, I call the file picker from

Looping FlipView for UWP

ⅰ亾dé卋堺 提交于 2019-12-23 05:09:19
问题 Is there any way to make a FlipView loop through items? From the last item, to the first and viceversa. I have seen this solution http://blogs.msdn.com/b/synergist/archive/2013/09/21/windows-8-flipview-looping-sample.aspx It works for W8, OK, but the same code throws under the Windows Universal Platform (Universal App). 回答1: The solution you've mentioned is right, you can refer to this solution to implement your own. But the sample linked in the article doesn't work because there is a minor

flipView and Page indicator UWP

故事扮演 提交于 2019-12-23 05:06:05
问题 I am facing a problem in synchronising the FlipView with the Page Indicator,this is my code: <Grid> <FlipView x:Name="flipView1"> <FlipView.ItemTemplate> <DataTemplate > <Grid Background="Transparent"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Button Grid.Column="0" Grid.Row="0"> <Image Source="{Binding Image}"/> </Button> </Grid> </DataTemplate> </FlipView.ItemTemplate> <

Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app?

梦想与她 提交于 2019-12-23 03:01:20
问题 This article from Microsoft: Guide to Universal Windows Platform (UWP) apps states that you can convert your classic desktop application (like Win32, Windows Forms, and WPF) or game to a Universal Windows Platform (UWP) app or game . Can the same be achieved for a Silverlight out-of-browser application? 回答1: Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. There are a

Show icon on SecondaryCommands (UWP)

安稳与你 提交于 2019-12-23 02:38:35
问题 I set the icons in my SecondaryCommand of CommandBar but aren't shown. Why? <CommandBar RelativePanel.AlignRightWithPanel="True" RelativePanel.AlignVerticalCenterWithPanel="True" Margin="0"> <CommandBar.SecondaryCommands> <AppBarButton Name="shareButton" Label="Condividi" x:Uid="condividi" Click="shareButton_Click" Icon="ReShare" /> <AppBarButton Name="contactButton" Icon="Contact" x:Uid="contatti" Label="Contatti" Click="contactButton_Click" /> </CommandBar.SecondaryCommands> </CommandBar>

Check if application is running from a background task

梦想与她 提交于 2019-12-23 02:32:40
问题 I'm creating an UWP application with a background task. I don't want to run the background when the real application is running or suspended. Is there some way to achieve that? I’ve looked on SystemConditionType but nothing fits what I'm looking for. 回答1: Since background tasks (except special ones) run in a separate process, there is not an elegant way to check if app is running or not since memory is not shared between the app and the background task. There are two ways that I implemented

Is there a way for a customer of a UWP app to rollback to a previous version?

…衆ロ難τιáo~ 提交于 2019-12-23 02:32:21
问题 For Universal Windows apps that are distributed via the Windows Store (i.e. not sideloaded), what should a customer be directed to do if your latest version causes them problems and they would like to essentially "undo" the update? 回答1: Once the app is updated to the latest version the customer can't take any action to roll back. If it is actually a problem with the app, you'll have to fix it as quickly as possible*, and if it's just a fluke your only option is to do your best to help them

How to use template selector within a ContentPresenter in Windows 8.1

烂漫一生 提交于 2019-12-23 02:31:49
问题 I have a Windows 8.1 application. I have a requirement of selecting different templates based on a certain value. For this purpose I'm using ContentPresenter in the xaml with a Static Resource TemplateSelector. Here's my datatemplates and templateselector in xaml resources <DataTemplate x:Key="template1"> <TextBox Text="Temp 1" /> </DataTemplate> <DataTemplate x:Key="template2"> <TextBox Text="Temp 2" /> </DataTemplate> <DataTemplate x:Key="template3"> <TextBox Text="Temp 3" /> </DataTemplate

UWP MediaElement source from http with authentication

一世执手 提交于 2019-12-23 01:13:12
问题 Is there a way to use a MediaElement Control, to stream e.g. a video or audio file from a remote (web)server, which needs authentication for accessing? To access this server, i am using Windows.Web.HttpClient, but i dont know how to easily access the source with a MediaElement. Best regards 来源: https://stackoverflow.com/questions/37540437/uwp-mediaelement-source-from-http-with-authentication

UWP - Font only applied in Designer

早过忘川 提交于 2019-12-22 18:43:29
问题 I have a class library (Imp.Dash.Cook) referenced by my main UWP app (Imp.Dash). In a page in said class library, I have the following XAML: <TextBlock Text="Banana" FontFamily="/Imp.Dash;component/Fonts/Portmanteau Regular.ttf#Portmanteau"/> <TextBlock Text="Banana" FontFamily="/Imp.Dash.Cook;component/Resources/Portmanteau Regular.ttf#Portmanteau"/> <TextBlock Text="Banana" FontFamily="Resources/Portmanteau Regular.ttf#Portmanteau"/><!-- Works in Designer--> <TextBlock Text="Banana"