win-universal-app

Access raw keyboard input in Universal Windows App (IoT)

99封情书 提交于 2019-12-10 11:51:41
问题 I'm trying to build an app that will accept keyboard input from a remote control that emulates a keyboard. I need to capture all keys from the remote, including volume up/down (it emulates a multimedia keyboard, fwiw). I can't figure out how to do that in a UWA. I've tried Windows.UI.Input.KeyboardDeliveryInterceptor and Windows.UI.Core.CoreWindow.GetForCurrentThread().KeyDown, which capture some input, but not all keys (it doesn't capture the special keys). I don't plan to include this app

What does the following Azure Notification Hub REST response mean: 'The specified resource description is invalid.'?

本秂侑毒 提交于 2019-12-10 11:38:50
问题 I am trying to register my Windows Universal App for notifications from the Azure Notification Hub through our Java backend service. I debugged the app from Visual Studio, while it was running on my Windows Phone device. The app could properly get a ChannelUri and passed it along to our Java backend. (I ran the backend on my local PC.) The Java backend generated the following request for a template registration and tried to send it to the Azure REST Api: <?xml version="1.0" encoding="utf-8"?>

Windows Universal App SetTitleBar

依然范特西╮ 提交于 2019-12-10 11:38:35
问题 I have a question about the Title'Bar sample from Microsoft's GitHub repository(https://github.com/JustinXinLiu/FullScreenTitleBarRepo/tree/master/FullScreenTitleBarRepo): In the AddCustomTitleBar function,there has a line: customTitleBar.EnableControlsInTitleBar(areControlsInTitleBar); EnableControlsInTitleBar is here: public void EnableControlsInTitleBar(bool enable) { if (enable) { TitleBarControl.Visibility = Visibility.Visible; // Clicks on the BackgroundElement will be treated as clicks

Universal Windows Application & System.Security.Cryptography

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 11:23:41
问题 I currently am developing an app for Windows 10 and have come across a problem. I am using JS and HTML for the UI and was hoping on using C# for code behind. From the limited documentation of this platform, my understanding is that I must use a Windows Runtime Component which then will get referenced by the JS project so that I can call the managed code from it. I then also need to create a Universal Class Library that the Runtime Component will reference. The problem that I am having is that

Disable pivot swipe during scrolling on UWP app

瘦欲@ 提交于 2019-12-10 11:15:36
问题 I'm developing Universal Window App on Windows 10 platform and my page looks like this example : Main page contain a pivot control with 4 pivot items (PAGE 1, PAGE 2, ...). PAGE 1 contain a red stackpanel which contain a listview with horizontal scrolling. My problem is, when i want to scroll my red listview horitontaly, my pivot swipe to next page. I want to disable pivot swipe during listview scrolling ( But only during listview scrolling ). I tried to get scrollviewer from listview and to

Goto VisualState in Listivew item DateTemplate windows phone 8.1

百般思念 提交于 2019-12-10 11:15:22
问题 My requirement: when tapped on the border in ListViewItem(DataTemplate) an overlay should appear on top of it with animation. In my listview data template I defined a visual state at the root. I want to goto the visual state when user taps on the border. I have tried following xaml but it is not working <DataTemplate x:Key="MyTemplate"> <Grid Background="{Binding ItemBackground}" Margin="0,0,0,5" Height="auto"> <VisualStateManager.VisualStateGroups> <VisualStateGroup > <VisualState x:Name=

UWP: icon size in app bar/command bar

江枫思渺然 提交于 2019-12-10 11:09:19
问题 What icon sizes should I use for the app bar/command bar? I couldn't find something in Guidelines for tile and icon assets or in UWP App Visual Assets. Other names: navigation bar (iOS), app bar/action bar (Android), toolbar (Xamarin.Forms) 回答1: Image size The default icon size should be 20 pixels for app bar image at 100% scaling, but you should also provide additional image assets to ensure it looks great on all screens: appbaricon.scale-100.png - 20 px appbaricon.scale-125.png - 25 px

How to use CalenderView in UWP MVVM

断了今生、忘了曾经 提交于 2019-12-10 10:48:13
问题 I want to bind the selected Calender View Item and set it to a DateTime Variable. My CalenderView Xaml looks like: <CalendarView Grid.Row="6" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/> I have an DateTime item in the Datacontext class: private DateTime _DueDate; public DateTime DueDate { get { return this._DueDate; } set { if (this._DueDate != value) { this._DueDate = value; base.PropertyOnChanged("DueDate"); } } } And the DateTimeConverter:

Sharing target Universal Apps Template10 approach in Windows 10

巧了我就是萌 提交于 2019-12-10 10:19:43
问题 My app is a target app for sharing and am facing issues when the app is running and the user wants to share content. I can't use a frame from the running application because then i get a "marshalling thread" exception. The application called an interface that was marshalled for a different thread.\r\n\r\nFailed to initialize the application's root visual My OnStartAsync method in App.xaml.cs looks like this. public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args

Need to get mouse events inside webview Win 10 UWP

放肆的年华 提交于 2019-12-10 10:06:02
问题 I am creating a win 10 UWP application. <Grid> <WebView x:Name="WebViewElm"/> </Grid> I have added a webview in it and I need to get the mouse right click and drag drop events for the webview element. But now it is taking the events for the browser. How I can handle the input events in the webview 回答1: Sample of how to drag element from XAML to WebView. It's not complete solution, but might be helpful for you. XAML: <StackPanel Orientation="Vertical" Background="{ThemeResource