uwp

Drag and drop item in same ListView

天大地大妈咪最大 提交于 2020-01-04 13:43:58
问题 I have following ListView <ListView Name="listAccounts" Width="300" AllowDrop="True" SelectionMode="Single" CanDragItems="True" CanDrag="True" CanReorderItems="True" Background="{ThemeResource myBackground}" DragItemsStarting="listAccounts_DragItemsStarting" Drop="listAccounts_Drop"> and defined my event handlers as private void listAccounts_DragItemsStarting(object sender, DragItemsStartingEventArgs e) { e.Data.SetData("itemIndex", (e.Items[0] as AccountList).Text.ToString()); } private

UWP Application Crash in Windows.UI.Xaml.dll

心已入冬 提交于 2020-01-04 09:08:52
问题 I'm porting a WP app to UWP having one page showing mainly multiple images (showing a map) within the Canvas of an ItemsControl. I'm using the manipulation and pointer wheel events on the canvas and data binding with data templates/template selector - and everything works fine. Unless sooner or later the app crashes in Windows.UI.Xaml.dll while I'm moving or scaling using Manipulation events: The crash always happens in CInteractionManager::ProcessManipulationInertiaInteraction (). The

DropShadowPanel and border corner radius

淺唱寂寞╮ 提交于 2020-01-04 09:05:33
问题 I want to make drop shadow effect with border control. I am using UWP toolkit. <controls:DropShadowPanel x:Name="dspShadow" BlurRadius="10" ShadowOpacity="0.8" OffsetX="0" OffsetY="0" Color="Black"> <Border x:Name="borderMain" Background="Red" CornerRadius="10"/> </controls:DropShadowPanel> But it doesn't recognize corner radius, the result is like this: And I need it to look like this: Any ideas how to achieve this? 回答1: You need to mask it. Currently you can only get the mask from TextBlock

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

UWP Template10 Hide hamburger button when menu is open

▼魔方 西西 提交于 2020-01-04 06:51:10
问题 I want to hide hamburger menu button automatically in order to display menu from the top to the bottom of the page. For this purpose I tried to bind HamburgerButtonVisibility to IsPaneOpen property: <controls:HamburgerMenu x:Name="Menu" VisualStateNarrowMinWidth="0" HamburgerBackground="White" HamburgerForeground="Black" NavAreaBackground="{StaticResource MenuBackground}" HamburgerButtonVisibility="{x:Bind Menu.IsOpen, Mode=OneWay, Converter={StaticResource ReverseBooleanToVisibilityConverter

Keyboard accelerator stops working in UWP app

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 06:32:12
问题 I'm trying to add a keyboard accelerator to a CommandBar menu item in a UWP app. This works fine when the app starts up, but after I open the overflow menu for the first time, the accelerator stops working. This doesn't appear to happen with primary commands (outside the menu), only secondary commands inside the overflow menu. Also, the menu item still works fine when clicked. XAML: <CommandBar> <CommandBar.SecondaryCommands> <AppBarButton Label="Test" Click="AppBarButton_Click">

How to access UWP application settings set by MDM?

可紊 提交于 2020-01-04 06:14:14
问题 I am using EnterpriseModernAppManagement CSP to install and set settings for some UWP app as defined here: https://msdn.microsoft.com/en-us/library/windows/hardware/dn904956(v=vs.85).aspx .../PackageFamilyName/AppSettingPolicy/SettingValue (only for ./User/Vendor/MSFT) Added in Windows 10, version 1511. The SettingValue and data represent a key value pair to be configured for the app. UWP app installs correctly and settings setup (via AppSettingPolicy) execute successfully. But how do I now

How to access UWP application settings set by MDM?

徘徊边缘 提交于 2020-01-04 06:11:24
问题 I am using EnterpriseModernAppManagement CSP to install and set settings for some UWP app as defined here: https://msdn.microsoft.com/en-us/library/windows/hardware/dn904956(v=vs.85).aspx .../PackageFamilyName/AppSettingPolicy/SettingValue (only for ./User/Vendor/MSFT) Added in Windows 10, version 1511. The SettingValue and data represent a key value pair to be configured for the app. UWP app installs correctly and settings setup (via AppSettingPolicy) execute successfully. But how do I now

Exception thrown: 'System.Exception' in mscorlib.ni.dll on UWP App Start

和自甴很熟 提交于 2020-01-04 05:50:15
问题 So when I start my UWP application I briefly get a splash screen and then an exception is thrown at: mscorlib.ni.dll!System.RuntimeTypeHandle.GetTypeByName(string name, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref System.Threading.StackCrawlMark stackMark, System.IntPtr pPrivHostBinder, bool loadTypeFromPartialName) mscorlib.ni.dll!System.RuntimeType.GetType(string typeName, bool throwOnError, bool ignoreCase, bool reflectionOnly, ref System.Threading.StackCrawlMark stackMark)

UWP access denied

本秂侑毒 提交于 2020-01-04 04:22:13
问题 Basically, I am having huge difficulty getting a text file to open by my UWP app. I have set the app permissions to be able to access files in 'my documents' and other options of known libraries like 'my pictures' but any attempt to open a file not located in these places is met by an 'Access Denied' error. From trawling the internet I know this is a known issue and has been asked a few times, but all threads seem to lead to the conclusion that you simply cannot access these files without