I'm doing a WP 8.0 compatible app, into that I need to put on a specific page a flyout menu.
Now, the Flyout element is only compatible with WP 8.1, so now I'm asking if there's an alternative compatible with WP8.
Specifically, I want a button which, after the user's Tap, shows off others elements that drop down under the button.
Maybe there's a solution that can be easily found online, but I'm italian and I really don't know how it's called that kind of menu in English.
Thank you.
For Silverlight for Phone, there's the Phone Toolkit (http://phone.codexplex.com or via Nuget) that provides the ContextMenuService.
The base variant only supports Menu-Items in the ContextMenu, but as it is open source, you can extend it to show any Xaml content.
Related
I tried searching for this everywhere, but I cannot find any solution.
I also tried looking at solution properties, project properties, visual studio preferences, Visual Studio extensions, change XAML xmlns definitions but I have no clue why this is not possible, and I think it should be standard simple functionality.
When you create a new Xamarin.Forms project that includes
, you would suspect that there is not only a way to see your XAML design on Android and iOS but also for any Windows platform you are targeting, such as W10 Desktop but also other Windows platforms that UWP supports and that supposedly Xamarin. Forms do support according to the website from Microsoft. You can easily build your project for these platforms, no problem. But I want to see what I am doing before I compile my work.
When opening your XAML design, instead of a simple Android / iOS and Windows tab in the design panel, Windows is nowhere to be found.
How am I supposed to see how my Windows screen is going to look without an option to see this? In WPF and plain UWP, this works fine, but somehow for Xamarin it only shows Android/IOS, but apparently, Xamarin has full support for Windows (desktop).
I am looking for multi-platform support to create a windows desktop application that is easily portable to iOS and Android. I thought Xamarin could do that, but if I am not able to see what I am doing on Windows in terms of layout, how am I supposed to develop a solid UI for the platform?
I am probably missing some kind of checkbox somewhere (I am hoping), but I cannot find any information about this. Yes, I tried to google. And Stack overflow. And Xamarin documentation from Microsoft. And watch YouTube videos about Xamarin for 20 minutes that supposed to explain the Xamarin multi-platform support. And after 20 minutes I find they only specifically explain iOS/Android but nothing about Windows. So yeah, getting pretty tired of searching and hope someone can be kind enough to help me out.
This is a limitation of Xamarin.Forms. Although it uses XAML, it has a custom XAML dialect which is not compatible with WPF/UWP, so the built-in UWP designer cannot handle it directly and it will require a custom designer implementation.
But if you want a first-class Windows development experience compatible with Android, iOS and even WebAssembly, try looking into the Uno Platform. This is a UWP bridge with full XAML compatibility with UWP XAML, so your app will look exactly the same on all platforms and provides full templating and styling support. In addition, Uno Platform provides bridge for many non-UI APIs as well, including things like Clipboard, Accelerometer and so on. In the end you will be able to just write a Windows app which will work everywhere with minimal changes.
You can use XAML adaptive triggers to make sure the app works well on each screen size and scales great from desktop to mobile.
If you want desktop version of you app just add UWP or WPF blank project to your solution.
For UWP it goes like this:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/windows/installation/
For WPF it goes like this:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/wpf
Right click on your "Project.UWP" or "Project.WPF" project and pick "Set as Startup Project"
and building your solution.
I have a Navigation Drawer in my Xamarin.Android app, it's menu items have icons that are coloured but when i run, they are greyed.
After searching on Stack, i've found ou that this is coursed by tinting - but all question handle how to disabling tinting in standard android projects. How do I achieve this in Xamarin.Android
Try:
navView.ItemIconTintList = null;
Note: If you are familiar with the Android SDK, to get an equivalent method in Xamarin.Android (usually) is matter of removing the set/get from the name as this is converted to a C# property.
Is it posible to implement an Hamburger menu (or similar) in Windows 8.1 and Windows Phone 8.1?
Thanks in advance
Windows 8.1 doesn't support Splitview which is mostly used to create a hamburger menu. You can however code it all, but that will be a big mess. I Suggest you take a look at UWP and the controls inside UWP, to easily create a hamburger menu. There is many tutorials on how to create one in UWP.
A really quick search brings up results like this one:
github.com/FrayxRulez/SplitView
This repository contains a porting of SplitView control available in
Windows 10 for Runtime 8.1 and Silverlight 8.X
Properties are the same, so if in future you want to port your app to
10 you have just to remove the Universal.UI.Xaml.Controls namespace.
Is there any SDK or frameworks to realise 'Pull To Refresh' feature in Windows Store App?
You need to customize on your own. There's no 3rd party UI control till now available for WinRT. This might help you.
How to detect when a user pulls down a ListView
I am working on a Windows Phone 8 app, and have a question about UI design. Please take a look at the image below:
What I am trying to add to my app is something like the above UI under "recent" tab. That is, some kind of live tile style thing with-in the app.
If anyone has experience about how to build such kind of in-app tiles, please share some idea or code sample.
Thank you
The Windows Phone Toolkit provides a Windows Phone HubTile control:
Here is a tutorial on the Nokia Wiki that explains how to use it.
Use HubTile control from Windows Phone Toolkit library.
There are couple tutorials about that control available, e.g.
http://igrali.com/2011/08/19/how-to-use-the-hubtile-control/,
http://www.developer.nokia.com/Community/Wiki/HubTile_in_Windows_Phone