uwp

Can I publish the StoreKey.pfx of an UWP application

孤者浪人 提交于 2019-12-09 07:03:22
问题 I have an open source windows store application (UWP). When I associate the application with the store a Package.StoreAssociation.xml and a <AppName>_StoreKey.pfx is created along with some modifications to my Package.appxmanifest (Identity Tag; Name and Publisher Attributes). Can I commit that information to a public git repository (the certificate must be in the repository because I want to build the package with AppVeyor)? Should I encrypt it? Could I revoke the certificate if it leaked?

Using x:Bind inside the GridView's ItemTemplate layout User Control in UWP

这一生的挚爱 提交于 2019-12-09 06:35:14
问题 In the Universal Windows Platform API, how do I use x:Bind inside of a User Control (intended to be the layout for a GridView's ItemTemplate) to bind to instance properties of a GridView's ItemSource? Background I'm trying to re-create the layout found in Windows 10 stock apps like Sports, News, Money, etc. I'm using a two GridViews for the main area of the app; one for "featured articles" (2 large photos w/ headlines) and one for all the other articles (smaller photos w/ headlines). I'm able

UWP app-installer auto update not working correctly

橙三吉。 提交于 2019-12-09 01:48:57
问题 I am trying auto update my UWP application from remote source. For this I followed these two blogs handling-auto-updates-for-sideloaded-uwp-and-desktop-bridge-apps & create-appinstallerfile-vs of MSDN. I got this working in Version 1803 (OS Build 17677.1000). But, I'm able to get auto update work on every other version (For example, if my first version is 0 and it is the version I install first then I get automatic update working for version 1 but not for version 2. And if I update version 2

How to use VisualState AdaptiveTrigger to change ListView Item FontSize

只愿长相守 提交于 2019-12-09 01:36:29
问题 I am using Visual State Adaptive Trigger to change page appearance depending on effective screen resolution. This works great, but I cannot get it to work for ListView Items. My ListView looks something like this: <ListView x:Name="listView" > <ListView.ItemTemplate> <DataTemplate> <TextBlock FontSize="20" Text="{Binding MyItem}"/> </DataTemplate> </ListView.ItemTemplate> </ListView> I can change the TextBlock font size statically in XAML. But I don't know how to reference this in VisualState

How can i change the Package family name in uwp windows 10

偶尔善良 提交于 2019-12-09 00:36:16
问题 I want to change the key mentioned in fig., when i change the certificate file it changes to the another temporary key, and the publisher folder is creating with this key as name. but i want it as a meaningful name. is it possible.? if anybody knows, please help me. 回答1: Together, these elements declare the identity of your app, establishing the "package family" to which all of its packages belong. Individual packages will have additional details, such as architecture and version. The package

Enumerating default UWP ThemeResources

雨燕双飞 提交于 2019-12-08 19:53:29
问题 I would like to get a list of the keys and values from the light and dark theme resources under UWP. Does anyone know where these can be found? 回答1: You can find all 24 system colors here. Also there are system high-contrast colors on the same page as well as a special SystemAccentColor At runtime, this resource ( SystemAccentColor ) gets the color that the user has specified as the accent color in the Windows personalization settings. Almost all the system brushes are defined here. Do take

How to use `MediaElement` to play sound in Android?

耗尽温柔 提交于 2019-12-08 19:51:29
I'm using MediaElement to play sound in an Uno-Platform project. It plays well in the UWP project but doesn't work in the Android project. The audio file is located in the shared project as Exclude from project , and is linked in the UWP project as Content and in the Droid project as AndroidAsset . XAML: <MediaElement Source="/Assets/MySound.wav"/> I've also tried accessing it programmatically set the Source to ms-appx:///Assets/MySound.wav with no success. MediaPlayerElement is now available in Uno (See MediaPlayerElement documentation) As of today, local resources are not supported for iOS

How can I bind to a null value inside a template in a Universal Windows App?

好久不见. 提交于 2019-12-08 19:18:31
问题 Before you answer, look at this post. Getting an answer for that first may resolve the issue below. This is a problem that just started with Windows 10 (Universal Apps). In Windows 8.1, and every other XAML technology, this technique worked flawlessly. Here's the setup in a blank universal app project: 1. Static class with Attached Property Create a class that houses an attached property of type Brush . Put this anywhere in the project. public static class MySettings { public static Brush

Unable to get some user account information in UWP app - In-premise active directory (Not Azure AD)

一笑奈何 提交于 2019-12-08 19:01:26
问题 In a UWP app, I have enabled the User Account Information capability. I need to get the username and the domain name (each of them separately) of the currently logged on user (The users are logged on with an in-premise Active Directory account - Not Azure AD ). For example, the user would log in to the Active Directory domain domain1 using the username user1 . i.e. domain1\user1 . I am using the following code to try to get the required details: IReadOnlyList<User> users = await User

When should I use Border over Grid?

醉酒当歌 提交于 2019-12-08 17:38:15
问题 The documentation for the Grid class states: Starting in Windows 10, Grid defines new border properties that let you draw a border around the Grid without using an additional Border element. The new properties are Grid.BorderBrush, Grid.BorderThickness, Grid.CornerRadius, and Grid.Padding. Does this make the Border class redundant? Why would I ever want to use a Border if I can do the same thing with a Grid and lay out children in a grid fashion if I so choose? EDIT I generally agree with