windows-runtime

How to hold up drawing of a UI element until rest of the page has loaded?

孤街浪徒 提交于 2019-12-12 01:42:17
问题 ListView is making the startup time of my app very long. First I see nothing and then the whole page with all of it's contents is drawn at once. How can I make the page draw up without the ListView (or an indeterminate progress ring at it's place) and only after that start drawing the ListView? Also the app need to be able to respond to a backey press during loading. Changing ListView.Visibility to collapsed at XAML and the to Visible on Page_Loaded does not have the desired effect; Only if I

Login-popup not working when rotating

£可爱£侵袭症+ 提交于 2019-12-12 01:33:30
问题 I have a code that looks like this <Popup IsOpen="True" Margin="200" Height="260" Width="900"> <Grid Height="250"> <TextBlock Style="{StaticResource HeaderTextStyle}" Text="Login" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Top" Height="50" /> <TextBlock Style="{StaticResource ResourceKey=SubheaderTextStyle}" Text="" Margin="0,63,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" /> <TextBox Name="InputUsername" Margin="0,63,0,0" HorizontalAlignment="Right" Height="40"

Share data among multiple users of a WinRT app

大憨熊 提交于 2019-12-12 01:06:55
问题 We developped a Windows Store app (Windows 8) that gets files from the internet and stores them locally to make them available offline. You can think of it as a one-way synchronization that the app does on a regular basis. The problem is the amount of files is huge (around 500Mb) and the application can be used by different users on the same device. As the app writes the synchronized files in its LocalFolder ( ApplicationData.Current.LocalFolder ), and as this location is not shared amoung

Can't activate projected type defined in IDL

浪子不回头ぞ 提交于 2019-12-12 00:52:04
问题 I was trying to define a Windows Runtime type in IDL, and consume its projected type. Going from a default-generated Blank App UWP project (called "Blank App" ), I added "MyControl.idl" : namespace BlankApp { [default_interface] runtimeclass MyControl : Windows.UI.Xaml.Controls.Control { MyControl(); } } Compiled the solution, then copied MyControl.h and MyControl.cpp from Generated Files/sources to the project root directory. I included the header for the projected type and added the

How to make DownloadOperation from BackgroundDownloader resumable

邮差的信 提交于 2019-12-11 23:46:52
问题 I am adding in functionality to download a large file into my application using the BackgroundDownloader / DownloadOperation functionality. I am using a PushStreamContent in a Web Api controller to serve the data that's being requested using a GET operation. I have added in the Accept-Ranges header to the response that's received from the Web Api controller, however the BackgroundDownloader doesn't seem to be recognising and attempting to resume downloads. If I call DownloadOperation.Pause()

WebView “disabled” in Windows 8.1

 ̄綄美尐妖づ 提交于 2019-12-11 23:34:13
问题 I just upgraded my app to Windows 8.1, but now pages that I am loading into the WebView are no longer interactive. I can't press any buttons or fill out any HTML form fields. My WebView looks like this <WebView x:Name="browser" ScrollViewer.ZoomMode="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled"></WebView> 回答1: I just created a new Windows Store app for Windows 8.1 based on the Blank App (XAML) template only putting the following line inside the Grid of MainPage.xaml :

Detect when your windows 8 app is uninstalled?

痴心易碎 提交于 2019-12-11 23:16:47
问题 How can I tell using c# or winjs when your app that the user downloaded is being uninstalled? Can you call home, or try to save the client by giving/redirecting them to a site with an exit poll? 回答1: Not supported. A key goal with the Windows Store is to make it seamless and painless for consumers to try apps. One result of this is that Store apps don't have any control over or hooks into install/uninstall processes. Bottom line is that the act of uninstall is not a time to try to exercise

UWP / WinRT: Detect when a popup is about to be closed

拜拜、爱过 提交于 2019-12-11 23:04:15
问题 How can I detect when a popup is about to be closed? The Popup class does not have a Closing event in UWP, unlike in WPF where such an event exists. I need this in order to persist the state of the Popup because the layout can be modified by the user. 回答1: As you already know, there is no Closing event. You might get lucky by registering to IsOpen property change (if IsLightDismissEnabled property is set to true...) this.popup.RegisterPropertyChangedCallback(Popup.IsOpenProperty, (d, e) => {

WRL Project Template not found for Visual Studio 2013

时光怂恿深爱的人放手 提交于 2019-12-11 21:54:43
问题 I am trying to follow these steps on MSDN for building a WRL-based C++ WinRT component. However in step #3, I am unable to find anything related to WRL in the results: In the Search online templates box in the upper right corner, type WRL Class Library. When the template appears in the search results, choose the OK button) How can I get the WRL Project Template for Visual Studio 2013? 回答1: Update : The template on the VS Gallery has now been updated and is now available for Visual Studio 2013

How do I convert a string color to a Brush in WinRT

橙三吉。 提交于 2019-12-11 19:54:56
问题 It seems like ConvertFromString is gone from WinRT. So I am having trouble finding a way to take a string in a combobox and using it set text foreground and a grid's background. Here is my latest attempt private void ColorDropBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e) { string backGroundColor = e.ToString(); SolidColorBrush newcolor = new SolidColorBrush(); newcolor = backGroundColor as SolidColorBrush; this.ContentRoot.Background = newcolor; } Any suggestions