UWP GridView drag drop not working - c#

I am moving my windows 8.1 app to Windows 10 UWP. I am able to port it fine. But the drag drop functionality with GridView / ListView seems to be not working.
I have got the CanDragItems="True" set on GridView and AllowDrop="True" on the target as specified in the documentation. This was working fine on windows 8.1 but not with Windows 10 UWP. I cant find any documentation related to this for any specific setting to be added for Window 10 UWP to enable this functionality. When I drag items from the view, it shows restricted icon while I drag the item.
Can someone advice how to fix this issue?
regards

Related

"Catastrophic failure" on MapControl tap with Windows Phone 10 SDK

I'm displaying a MapControl inside a Windows 10 application.
It's perfectly working on Windows 10 Desktop, but I get a weird "Catastrophic failure" exception with the Windows 10 Phone emulator if I tap the map.
Edit: I discovered something interesting. If I click on a different control (a Button or whatever), BEFORE I tap the map => No problem.
However, if I start the app and I firstly tap the map on Windows Phone => Crash. Weird!
Edit 2: I checked with the official sample from Microsoft, same thing! By default, the UI forces you to touch a split button to show the map. I changed the code to directly show the map at launch, and if I tap the map: BOOM. It crashes.
Problem not solved, but I discovered a bug with MapControl.
Use case:
Create a UWP app targeting Windows 10.
Inside the MainPage, put a MapControl
Start the app on Windows Phone
Tap the Map
Boom.
Protip: Place a control in the MainPage (like a Button). Then, if you focus this control then you tap the map, it's ok. The problem occurs if you tap the map prior focusing no other control.
Edit: Problem solved with Windows 10 build 10565.

What is this left side panel in Windows 8.1 Xaml App?

I am developing an app where I need a panel like the one shown below. The left panel shown in the second image slides in from the left when the user presses the plus icon next to the English dropdown.
What is this element and how can I recreate it?
This is a Windows 8.1 C# XAML app.
you should use Windows.UI.Xaml.Controls.SettingsFlyout control, here is a sample that shows you how to configure the settingflyout https://code.msdn.microsoft.com/windowsapps/App-settings-sample-1f762f49
thats what you are looking for
There is no standard control to do all of that. Use a Grid and define an animation for the fly-in is the easiest option.
UWP (Win10) has a control to do this, called a SplitView control. More information on that an how to use it can be found on MSDN.
Martin
For creating this menu for windows 8.1 need create own control, then create style for him and etc.
Please see this post:
How to create a hamburger menu control for Windows 8.1 and Windows Phone
But if you create WUP app it is very simple ;)
Windows 10 SplitView – Build Your First Hamburger Menu
p.s. if you need create hamburger menu for windows phone 8.1 existing more nu-get packages for him, like this: SlideView : Facebook-like panel for Windows Phone
Good luck.

Show a menuflyout from a button on another flyout Win 8.1 XAML

I've got a scenario in my app where I show a popup from a appbar button in Windows 8.x (using XAML/C#).
Prior to Win 8.1, I used Callisto to show the popup. In Win 8.1, I'm trying to use the built-in Flyout and MenuFlyout controls.
Simple flyouts and menu flyouts work - but when I try to show a menu flyout off of a button that is itself in a popup/flyout - it dismisses the previous flyout/parent flyout - which is not the desired behaviour.
Here is some code to reproduce the issue:
https://github.com/krishna-nadiminti/FlyoutTest
Any ideas on how to fix this?
Ideally - I don't want to go back to using Callisto in the Win8.1 project - because I want to use the same code as part of my framework to show flyouts and secondary flyouts in universal apps.

using web browser with other layout in visual studio 2012 for windows 8 phone

I want to use the web browser along with a header block in Windows phone 8. I am using Microsoft Visual Studio 2012. I played along and found that we can put browser on top and add items below that,but i need a header. I am new in Windows mobile programming, please help.
I have tried using Stackpanel and grid layouts, but got no result.
If tab like feel is what you are focusing at visually, pivot control would suffice your needs.
Panorama however will not be appropriate in this case.
Pivot has its own pivot items and a title field wherein you can get what you desire.
Thanks
you can use pivot or panorama.
Pivot:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff941103(v=vs.105).aspx
Panorama:
wp8 : how to insert map into PanoramaItem HeaderTemplate
Hope this helps.

Create an OutlookBar in MetroStyle app

I want to create a simple control that has 3 buttons and a ListView under each one. When I click on the buttons their ListView should show up and other ListViews should hide. A similar approach is presented in Microsoft Outlook and this tutorial however there is slight difference between XAML in MetroStyle apps and WPF.
How can I do this in Windows 8 MetroStyle app under WinRT?

Categories