win-universal-app

ListView UWP Drag Reorder doesn't fire Drop events

大兔子大兔子 提交于 2020-01-04 07:01:16
问题 I am attempting to reorder a ListView in my UWP project. <ListView Grid.Row="1" Name="List" Margin="12, 0, 12, 0" ItemTemplate="{StaticResource ListDataTemplate}" SelectionMode="None" IsItemClickEnabled="True" ItemClick="List_ItemClick" AllowDrop="True" CanReorderItems="True" ReorderMode="Enabled" DropCompleted="List_DropCompleted" /> In Code behind: private void List_DropCompleted(UIElement sender,DropCompletedEventArgs args) { UseManualOrder = true; } The UI Works great. I can drag and

Can Windows 10 UWP run on Windows 8.1 Devices?

偶尔善良 提交于 2020-01-04 06:54:04
问题 I'm building a Windows 10 UWP app, and would like to know if it will run on Windows Phone 8.1 and/or Windows 8.1 Desktop. Windows 8.1 is still quite prevalent, and I would like to be able to reach these users with my app. 回答1: Windows 10 apps can only run on Windows 10 (and newer). If you want to target 8.1, you have to build a 8.1. A 8.1 should run on Windows 10 without any problems. 来源: https://stackoverflow.com/questions/35054932/can-windows-10-uwp-run-on-windows-8-1-devices

Copy to clip board from WebView

懵懂的女人 提交于 2020-01-04 06:30:30
问题 In an UWP App with a WebView control the user can: Select some text from the loaded html Right-click Choose "Copy" However, choosing "Copy" does not copy the text? What is missing? Some code to handle the "copy event", or...? 回答1: This is a known issue we have logged, I'm not sure the specific build version, but the fix should be available in future release. 来源: https://stackoverflow.com/questions/36479593/copy-to-clip-board-from-webview

MissingRuntimeArtifactException while changing IEnumerable to IQueryable in Universal Windows

点点圈 提交于 2020-01-03 16:56:07
问题 In Release mode, while changing the IEnumerable source to IQueryable using AsQueryable method which throws System.Reflection.MissingRuntimeArtifactException. This is code is working fine in Debug mode, please refer the below code snippet. ObservableCollection<object> data; IEnumerable source; public MainPage() { this.InitializeComponent(); data = new ObservableCollection<object>(); source = data as IEnumerable; } private void Button_Click(object sender, RoutedEventArgs e) { var querab1 = data

UWP - MessageDialog crashes the app on Windows Phone and tablet mode

佐手、 提交于 2020-01-03 15:33:06
问题 In a Windows 10 Universal app, I want to display a MessageDialog when the back button is pressed. The code of my page is the following : protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; SystemNavigationManager.GetForCurrentView().BackRequested += GamePage_BackRequested; } private async void GamePage_BackRequested(object sender,

UWP Game Capture on Xbox DirectX or MMF

时光总嘲笑我的痴心妄想 提交于 2020-01-03 06:39:11
问题 I'm investigating building a "Game Capture" App that works within UWP on Xbox One, as for capturing the actual content of the screen during game-play, it appears there are two ways to go within the wider eco-system of Microsoft libraries: DirectX (Now part of Windows API) Microsoft Media Foundation With that in mind, my assumption is that DirectX is natively accessible by UWP apps via the Windows Runtime API, and aside from limitations on the DirectX feature-sets and hardware, basic APIs

UWP: Upload large files to OneDrive using OneDrive SDK

限于喜欢 提交于 2020-01-03 05:50:28
问题 I can upload "small" files (< 100 MB) using the following code: await OneDriveClient .Drive .Special .AppRoot .Children["filename"] .Content .Request() .PutAsync<Item>(contentStream); For Large files (> 100 MB) I read that you have to create an Upload Session . Something like this? UploadSession uSession = await OneDriveClient .Drive .Special .AppRoot .Children["filename"] .CreateSession(VarChunkedUploadSessionDescriptor) .Request() .PostAsync(); I am not sure what steps are after this? (Or

Cannot Deploy Universal App on Microsoft Lumia 950 XL (Visual Studio Community 2015)

Deadly 提交于 2020-01-03 03:51:07
问题 I am getting this error when trying to deploy a blank universal application on Microsoft Lumia 950 XL: DEP0001 : Unexpected Error: DEP0001 : Unexpected Error: -1988946667 I am using Visual Studio Community 2015, Version 14.0.25123.00 Update 2 I have tried one proposed solution, but did not work: net start IpOverUsbSvc It's worth to note that I can see my device connected using the WinAppDeployCmd utility, and I can install my application manually as well: C:\Program Files (x86)\Windows Kits

Universal Windows Library (UWP) Way to take screenshot?

六月ゝ 毕业季﹏ 提交于 2020-01-03 02:25:13
问题 I would like to create a ScreenCaptureLib.dll which is intended to be built for Universal Windows. We already have the following using Windows.Forms: https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib Obviously none of the Windows Forms code does not work and I would like some pointers in the right direction to get started. 回答1: You may follow the official document for Record the screen with ScreenCapture, but please notice that: The ScreenCapture API is only available on

Disabling swipe gesture in Windows Phone 8.1 pivot control

孤街醉人 提交于 2020-01-02 23:04:40
问题 I am making a Universal app. For the windows phone part I have implemented a pivot page in it. Now I want the swipe gesture (for navigating through different pivot items) in pivot page to be disabled so that only when a button on the first PivotItem is tapped then it shows the second PivotItem. I tried setting the IsHitTestVisible property of the Pivot control to false but then all the PivotItem are blocked. 回答1: It goes against the WINDOWS UI Guide and shouldn't really be implemented.