uwp

How to display static table/grid in UWP without using itemsource?

一世执手 提交于 2019-12-11 10:32:20
问题 For my project, I want to display a grid/table with 3 rows having 4 columns on each row in UWP applicatoin. All the columns will have a textbox control. I don't want to display any data on the grid rather I want to take the input from user. I've tried grid/gridview control. I'm not really sure how I can specify the xaml for displaying 3 rows and 4 columns with textbox control? Something like this picture. Any suggestion is highly appreciated. 回答1: XAML <Grid Background="{ThemeResource

Workaround for x:Shared in Universal Applications

别来无恙 提交于 2019-12-11 10:18:52
问题 I have a Style setter that sets the value to a resource. It works for a single element, but when the Style is applied to more than 1 element, an exception is thrown. This is what I have: <SymbolIcon x:Key="Star" Symbol="Star" /> <Style TargetType="ContentControl"> <Setter Property="Content" Value="{StaticResource Star}"/> </Style> I understand that only one instance will be created. Since I cannot create "multi-instance" resources , how could I make it work? 回答1: If you want to make couple

uwp commandbar more button not showing up with DynamicOverflowEnabled

被刻印的时光 ゝ 提交于 2019-12-11 10:14:07
问题 ok so I have a UWP app in which I am using CustomMediaTransportControls . within those controls I've added some extra buttons within the commandbar PrimaryCommands and have set IsDynamicOverflowEnabled=true according to the docs it should automatically send the primary commands to the overflow menu when the screen size is not enough for all the buttons. and it should drop them out accoridng to MediaTransportControlsHelper.DropoutOrder property on each appbarButton. Problem When screen size is

Webview: Bing Map tiles appear to be blurred compared to Google Maps ones

早过忘川 提交于 2019-12-11 09:57:47
问题 I'm doing a bit of a POC for the WP8.1 application written in HTML5/JS that includes the maps in the webviews. Scenario: I have 2 webviews with exactly the same HTML structure I'm referring the webviews to. In one webview I'm loading the bing.html that loads the bing maps. In other webview I'm loading the google maps map via the google.html. bing.html and google.html have the same HTML structure and that is: Bing.html <!DOCTYPE html> <html style="width:100%; height:100%; overflow:hidden;

System.Net.Http.HttpClient adding If-Modified-Since header

流过昼夜 提交于 2019-12-11 09:52:25
问题 I am attempting to issue an Http Get request from a windows universal app and seeing an odd behavior. (not sure if the fact that it is a universal app is related or not). The simplified code in question is this: var client = new HttpClient(); var response = await client.GetAsync("https://storage.googleapis.com/pictureframe/settings.json"); var s = await response.Content.ReadAsStringAsync(); In a unit test or console app that works as expected and the variable s contains the json content.

C# - Check if a UWP app is installed on Windows10

情到浓时终转凉″ 提交于 2019-12-11 09:36:17
问题 Question : Using C# how can we check if a UWP application is installed on Windows 10` Possible Goal : My real motivation is to develop an MS Office app in VS2017 using Microsoft.Office.Interop that interacts with a UWP app like this one explained here. But the office app would first check if the required UWP app is installed or not. For the old Windows 32bit and 64bit apps, we could check if an application is installed using various methods such as the following. I was wondering if there is

“Access is denied” In UWP (C#) when trying to run desktop extension App

扶醉桌前 提交于 2019-12-11 09:34:27
问题 I'm trying to run a tutorial code for FullTrustProcessLauncher, In order to run desktop Application from UWP (As I asked in Run python script from UWP). The source code is found here: UWP-FullTrust. Im running the first example: UWP_FullTrust_1. It's compiles all ok but when I run the console command (Click the button) I get in the line await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(); this exeption: "Access is denied. (Exception from HRESULT: 0x80070005 (E

How to avoid the flickering effect when dynamically changes the image source in uwp

与世无争的帅哥 提交于 2019-12-11 09:15:46
问题 I have set of images and I am replacing the image source in a button click event. I am getting the flickering effect when replacing the image source. How to resolve this ? Sample <StackPanel> <StackPanel Orientation="Horizontal"> <Image x:Name="image1" Height="200" Width="200" Source="ms-appx:///Assets/custom200.png"/> <Image x:Name="image2" Height="200" Width="200" Source="ms-appx:///Assets/custom201.png"/> <Image x:Name="image3" Height="200" Width="200" Source="ms-appx:///Assets/custom202

VS2019 + Xamarin.Forms = UWP/EXE dropped?

此生再无相见时 提交于 2019-12-11 09:04:22
问题 How do I get the UWP back into Xamarin.Forms Cross-Platform creation to have the templates ready to roll? After picking through the release notes, playing with VS2019's UI and a few hours of web searching, I have only found others posting about the problem in the preview versions. Some say UWP is gone forever, some say it just isn't included by default (so Microsoft can brag about how the install went from 23GB to 8GB or something like that) - but no help on HOW TO re-enable it, or add it to

Scope of Collections in Winrt And PhotoEditor example

牧云@^-^@ 提交于 2019-12-11 09:02:53
问题 Winrt::Windows::Foundation::Collection only has interfaces no concrete collection type. I have been told to use Platorm::Collections, but not sure how you get to that from Winrt::Windows::?????. I thought its only for C++/Cx 3.I have copied and used the Observable_Vector in PhotoEditor sample but am getting error on build saying my type in vector does not implement GetTrustLevel(). If i cannot use Platform::Collections in WInrt, that means currently there is only one example of how to use