uwp

Xbox 360 Wireless Controller is not working via C++/WinRT and Windows.Gaming.Input API in console application

烂漫一生 提交于 2020-06-13 07:06:59
问题 I trying to use Windows.Gaming.Input API via C++/WinRT from Windows Console Application and it is not working as supposed with Xbox 360 Wireless Controller (reported as Xbox 360 Wireless Receiver for Windows (0x045e:0x0000) ). I got GamepadAdded event, then trying to read gamepad state via gamepad.GetCurrentReading() and seems GamepadReading struct is not filled at all for Xbox 360 Wireless Controller . Also I found that there is some strange error message on MSVS debug console: onecoreuap

What are the famous apps that are built using UWP?

流过昼夜 提交于 2020-06-09 05:37:17
问题 I am building a UWP(universal windows platform) app, I am looking for famous apps that are built using UWP. I want to look at their UI etc for reference. I came to know that calculator app we are using in our PCs is a UWP app. I want to know some more famous UWP apps in market that are available in store or elsewhere to check them. twitter, flipkart used to be UWP apps previously. But they changed to (Progressive Web Apps)PWA. reference: https://www.windowscentral.com/twitter-updates-its

Can't use source code for deprecated control SlidableListItem

元气小坏坏 提交于 2020-06-01 05:07:08
问题 Microsoft has deprecated SlidableListItem in favour of SwipeControl. I tried SwipeControl using the XAML controls gallery - it does not let me swipe left and right with a mouse (I can using SlidableListItem). I think I need a touchscreen device for it to work. So I'd like to continue using SlidableListItem despite having updated to the latest nuget packages. I've copied the code for SlidableListItem into my project from WindowsCommunityToolKit branch 4.0.0. I get this crash when I try to use

How can I handle file activation from a WPF app which is running as UWP?

蓝咒 提交于 2020-05-30 07:31:29
问题 I have a WPF application where I want to handle file activation. I found solutions where adding specific values to the registry solves the issue. The problem is that the final app should be a UWP app and I'm using the desktop bridge to do this. If the app is running as UWP , it can't reach the registry to set these specific values. Is there any other way to handle file activation without using the registry? I also tried to create a UWP project, because in UWP is very easy to handle file

How to fill DataGrid with DataTable content in UWP c#

半城伤御伤魂 提交于 2020-05-29 11:17:06
问题 I'm creating a UWP app and trying to fill my DataGrid with a DataTable that contains data from my database, but with no success. I have already searched for solutions but just can't get rid of the error. XAML code: <StackPanel> <Button Content="Fill DataGrid" Click="Button_Click"/> <controls:DataGrid x:Name="dataGrid" Margin="30" AutoGenerateColumns="True"> </controls:DataGrid> </StackPanel> C# code: private static DataTable GetDataTable() { DataTable dt = new DataTable(); dt.Columns.Add("ID"

How to inspect the Visual Tree of any UWP app

天涯浪子 提交于 2020-05-27 11:34:09
问题 Is it possible to inspect the Visual Tree of any UWP application to see how it is rendered, in the same way that you can inspect the visual tree of the app that you're debugging in Visual Studio? It would be very beneficial to be able to see how the user interface of some applications are comprised. 回答1: Yes. Open Visual Studio with no project open. Choose "Debug" from the top menu, and "Attach To Process". Press the "Select" button next to the "Attach To" entry field, and choose "Native Code

broadFileSystemAccess for UWP not working

半城伤御伤魂 提交于 2020-05-17 07:42:31
问题 I'm writing an app which needs a permission for accessing a text file cuz without permission it throws an exception "access denied". I added to the Package.appxmanifest specific lines xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities "IgnorableNamespaces="uap mp rescap" And <rescap:Capability Name="broadFileSystemAccess" /> But still it doesn't work. Is there any other way to access specific file with picker? 回答1: Yes the behavior changed

Change VisualState through Dependency Property (UWP)

∥☆過路亽.° 提交于 2020-05-17 07:09:05
问题 I have a textbox inside a UserControl, I want to have two extra states for that textbox, Valid and Invalid. My code looks like this <UserControl.Resources> <Style TargetType="TextBox" x:Key="ExtendeTextBoxStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="TextBox"> <Grid> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="ValidationState"> <VisualState x:Name="InvalidState"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName=

StrokeDashArray not working with VisualStateManager (UWP)

流过昼夜 提交于 2020-05-17 06:12:14
问题 I want to have a dotted margin for Textbox if it is in Disabled state, My code looks like this <Page.Resources> <SolidColorBrush x:Key="TextBoxBackgroundThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxBorderThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="#FF000000" /> <SolidColorBrush x:Key="TextBoxForegroundHeaderThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxPlaceholderTextThemeBrush" Color="#AB000000" />

StrokeDashArray not working with VisualStateManager (UWP)

拈花ヽ惹草 提交于 2020-05-17 06:12:05
问题 I want to have a dotted margin for Textbox if it is in Disabled state, My code looks like this <Page.Resources> <SolidColorBrush x:Key="TextBoxBackgroundThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxBorderThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="#FF000000" /> <SolidColorBrush x:Key="TextBoxForegroundHeaderThemeBrush" Color="#FFFFFFFF" /> <SolidColorBrush x:Key="TextBoxPlaceholderTextThemeBrush" Color="#AB000000" />