uwp

Transparent tile but colored icon for the Windows Store

筅森魡賤 提交于 2019-12-07 06:25:59
问题 I want to have transparent square tile for my app, but in the Store it should have green background behind same icon. Is there any way to achieve that? In 8.1 we had (still have) 300x300 "App tile icon" which is used for the Store I believe, but now it seems store using image from Package.appxmanifest, and even if I explicitly set non-transparent image for "Store Logo", it doesn't work. Question is: is that at all possible to have transparent tile for start screen but solid-color background

Minimize UWP application to system tray

风流意气都作罢 提交于 2019-12-07 05:28:30
问题 Is there a way to minimize a windows 10 UWP application to the system tray. I've tried googling about this but all i can see is about wpf and windows forms. Thanks. 回答1: This isn't possible. However, according to your description in the comments it is not needed, Cortana will launch your app. You probably have some other problems in handling arguments and finding which methods to override, but as there is nothing specific in your question about that, I can only guess... 来源: https:/

Vibrate Phone in UWP

…衆ロ難τιáo~ 提交于 2019-12-07 05:23:37
问题 I'm trying to use the vibration on the device (Windows Phone), however I can't seem to find the appropriate API to achieve this for Windows 10. In Windows 8.x, I can use this, however this is no longer available in Universal Windows Platform. Can anyone point me in the right direction? 回答1: As of Jan 2016, you: Right-click References in your Solution, Add Reference->Extensions->Windows Mobile Extensions for the UWP Then you can using Windows.Phone.Devices.Notification; and actually use it by:

Can a Java Swing desktop application be converted to a UWP centennial app (AppX)?

流过昼夜 提交于 2019-12-07 05:09:44
问题 I have been reading about project centennial (https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-root#preparing-your-desktop-app-for-conversion-to-uwp), and it occurs to me that there are many legacy line-of-business apps that are written in Java (not to mention Python/Tkinter, insert language/gui toolkit here , etc). I can see a benefit in being able to market/distribute these through the Windows store (either internally for an enterprise or to the general public). I was wondering

Pass Parameter or Arguments to a Background task in Uwp

扶醉桌前 提交于 2019-12-07 04:14:02
问题 I am creating a uwp app in which I want to take some data from user say from a textbox and then pass it to a background task. But when I am trying to add project reference to the background task I am getting a circular reference error. So is there any way to pass arguments maybe a overload of run function or anything else. Thanks in advance. 回答1: Romasz has explained it perfectly but in your case you can get the user data from the textbox by doing these steps: 1.Declare this in MainPage.xaml

What is the 'right' way to resize a SymbolIcon?

社会主义新天地 提交于 2019-12-07 04:11:32
问题 I want to be able to define a style and set the style on the icon (or on the button that holds the icon). Setting the button h/w doesn't enlarge the symbol and adding a Viewbox works, but I can't figure out how to set that from a style. <Button x:Name="ZoomInButton" Style="{ThemeResource HeaderButtonStyle}" Grid.Column="1" Grid.Row="0" Click="ZoomInButton_Click"> <SymbolIcon Symbol="ZoomIn" /> </Button> Any help very much appreciated! Seems so easy, but I'm stumped! 回答1: In UWP apps, the

UWP App Won't Start

一世执手 提交于 2019-12-07 03:48:10
问题 I have a UWP app. I'm using Visual Studio 2017 15.4.1. The UWP app is a store app and has been deployed to the Microsoft Store. My app was working fine in the store, and it was also working fine when I hit play in Visual Studio. Then recently, an isolated storage issue started occurring so I went in to the app in "Apps & Features" and hit Advanced Options -> Reset. Somehow this has fried my app installation on my machine. Our app no longer shows up as an installed app, and when I try to

How can I watch for file changes in a UWP project?

ぃ、小莉子 提交于 2019-12-07 03:38:48
问题 I am porting my game to UWP from the full desktop .net and one thing I need to work out is how to live load texture, shaders etc... into the UWP version of the game. In the desktop version I use a FileSystemWatcher to do this but FileSystemWatcher doesn't exist in UWP, even on directory's that I have full control over. Is there an equivalent for UWP? What is the best way to implement this with the limited set of API's in UWP? 回答1: Is there an equivalent for UWP? You can subscribe the

Changing language in UWP doesn't change system features language - only on app restart

放肆的年华 提交于 2019-12-07 03:10:34
问题 I have a UWP application. And i have a need to change locale on the fly, so i have this for language changing: Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = language.FourDigitCode; ResourceContext.GetForViewIndependentUse().Reset(); ResourceContext.GetForCurrentView(); But there is a problem that system features language doesn't switch ( only after application relaunch ) how can i fix it? Here is an example: Now i run this code: Windows.Globalization

UWP - MediaPlayerElement vs MediaElement

对着背影说爱祢 提交于 2019-12-07 02:38:11
问题 MediaPlayerElement is replacement for "old" MediaElement. My question is Why ? What is the difference between MediaPlayerElement and MediaElement ? 回答1: Media Player element uses Media Playback Source in form of MediaSource class which has many methods so it can provide media source by several ways like Streams StorageFiles Uri and some more as well. It can also be rendered on any XAML surface like a grid or a button. these are main upgrades in Media Player element but you can read in detail