uwp

Transparent icon in start menu for universal app

那年仲夏 提交于 2019-12-13 05:18:57
问题 I'm developing a universal app. I have a list of icons in the manifest. The icon on the taskbar is fine, transparency works. The start menu icon doesn't have transparent edges. No edges. The list of icons that I have. How would I make the edges transparent? Should I add any other icons? 回答1: This is by design as the background (behind the tile itself) may be colored quite differently. In the start menu, there's a dark background whereas there's a white background in the Cortana search. Maybe

DesktopAppConverter woes, Windows 10 v.17134

*爱你&永不变心* 提交于 2019-12-13 05:17:11
问题 I'm trying to convert my Win32 app from its MSI into UWP appx package using Desktop App Converter, so that I can update it in the Windows Store. Here's the steps. When I downloaded the Windows_BaseImage_DAC_17134.wim file and tried to install it, I got this at the end (I'm not sure if it means anything): Here's the same as a text: VERBOSE: Removing any pre-existing NAT network Get-NetNat : Invalid class At C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe

Parent does not contain a constructor that takes 0 arguments

天大地大妈咪最大 提交于 2019-12-13 05:10:41
问题 My code is namespace classlibrary { public class numerictext : EditText { //My code } When I try to inherit a edit text control in a class library, I'm getting the error: Parent does not contain a constructor that takes 0 arguments. I understand the problem is that Parent has no constructor with 0 arguments. But how to inherit a control in a class library? 回答1: You need to call one of the base constructors in your derived class. Assuming you are using the Android EditText widget: public class

UWP WebView await navigate

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:06:09
问题 I'm trying to get some content on a website which is rendered by JavaScript. So I'm running a WebView with Visibility=Collapsed . I want to wait unitl NavigationCompleted and run some JavaScript then return the value. The code look like: private async void Foo() { // Want to get value here var content = await GetContent(); } private async Task<string> GetContent() { string content; async void handler(WebView sender, WebViewNavigationCompletedEventArgs args) { content = await webView

How can I register only numbers in TextBox?(i dont have KeyPress event)

匆匆过客 提交于 2019-12-13 05:05:28
问题 I am trying to allow to register only numbers in TextBox, C# UWP XAML and i dont have the KeyPress Event what should i do? The WinForms equivalent of what I want to do is this: private void txtbox1_KeyPress(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)) { e.Handled = true; } } 回答1: You can use KeyDown and KeyUp events. I tested this code on UWP app on Windows 10 OS. Working fine. <TextBox InputScope="NumberFullWidth" KeyDown="TextBox_KeyDown"

Find currently active user in xbox one UWP

≡放荡痞女 提交于 2019-12-13 04:33:10
问题 Using the below code I am able to get the list of all signed in users. Is there a way to know which is the current active user? IReadOnlyList<User> users = await Windows.System.User.FindAllAsync(); 回答1: I recently ran into this problem myself, and posted about it here. Someone responded there, and gave me some pretty big hints, which in turn helped me to get this solved. Here is the quick and dirty (my UWP is HTML/JavaScript based BTW): First, include the WinJS library in your project, if you

Application life cycle on a physical device without Lifecycle Events

天涯浪子 提交于 2019-12-13 04:33:05
问题 Is there a solution that will allow me to run and test the application life cycle on a physical device? Without the use of "Lifecycle Events" built-in Visual Studio 2015? I wanted to be able to call the appropriate methods of life cycle as Suspend and Resume after pressing the physical buttons on the device (arrow return, windows icon, etc.) and if possible get a message about calling this method something like: private async void Application_Suspending(object sender, SuspendingEventArgs e) {

'ToastNotification' does not contain a definition for 'Data' on Windows Server 2016

浪子不回头ぞ 提交于 2019-12-13 04:22:51
问题 I unable to build my Toast Progress Bar solution on a build server after succesful build locally. Errors on build server: Error CS0117: 'ToastNotification' does not contain a definition for 'Data' Error CS0246: The type or namespace name 'NotificationData' could not be found (are you missing a using directive or an assembly reference?) Error CS1061: 'ToastNotifier' does not contain a definition for 'Update' and no accessible extension method 'Update' accepting a first argument of type

Multiple partial results in a UWP app service

两盒软妹~` 提交于 2019-12-13 04:22:46
问题 I am trying to use an UWP app service to provide some non-UI processing service to other app including the host app . For responsiveness, I want to return the result progressively. Think about grep -ping a folder for files containing a certain string: It would be better to report the files as we found it instead of reporting everything at the end. So my question is: Can this scenario be achieved with the current UWP technology? (I think it is probably possible via polling using the multiple

How to refresh a Telerik datagrid using UWP and MVVM Light

风流意气都作罢 提交于 2019-12-13 04:09:10
问题 Thanks for visiting. I am having trouble refreshing a Telerik grid when the Refresh button is clicked. In other words, if the user changes the data and decides not to save it, clicking the refresh button should reload the grid with the original values. Here is my XAML in the View for the Refresh: <Button Content="Refresh" Grid.Row="1" Margin="92,5,0,11" Command="{x:Bind ViewModel.RefreshDataCommand}"/> Here is my XAML in the View for the Grid: <tg:RadDataGrid ColumnDataOperationsMode="Flyout"