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.
Related
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
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.
I have a very simple scenario where I can focus an editable text box, the cursor appears inside the field, bt the keyboard will not show.
I have replicated this in a small sample app (Windows Phone 8.1 - Universal App). Very easy to recreate.
Create an 8.1 universal app. In the MainPage for phone add a text box and a button. The code for the button just sets the textbox to NOT read only. The default state of the textbox is ReadOnly.
Run app, select edit and then select the field. Cursor is present and keyboard opens. Close app.
Failure scenario:
Open app, touch read only text field. Note: No cursor is in box as it is read only.
Select Edit button. Tap the text field. Cursor is focused into field, but keyboard does not appear. I have a sample app with this behavior.
Any Resolutions?
This is a known issue in Windows Phone 8.1 which is fixed in current builds of Windows 10 Mobile.
Unfortunately I don't see any good workarounds for this on Windows Phone 8.1 other than "don't do that". Instead of switching a TextBox into and out of IsReadOnly mode try swapping between two TextBoxes (or a TextBox and a TextBlock).
I want to remove Page transitions completely from the page. I tried to search for this, but all I got was about Windows Phone 8 which doesn't work in WP8.1 environment.
I know with the help of this page that I can add Transitions in the UI components and tried to put it for Page too, but it doesn't work at all. I get to see default page transition animation and the custom animation both.
So is there a way to remove or change page transition animation in Windows Phone 8.1?
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.