How to add a menu in Windows Phone 8.1? - c#

I want to add a menu, like the Instagram's one, where the user can go to the main page of Windows Phone application, or go to the settings page. How can I do in C# for Windows Phone 8.1 ? Is the menu always there in all page, or must be coded ? Are there any Windows icon available in the SDK ?
UPDATE
I'm looking for something similar to the red one. What is the difference between the red and the cyan one ?

You mean bottom appbar? If so, you should read https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh781232.aspx and focus on Page.BottomAppBar, TopAppBar is in "big windows" only.

Related

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.

Windows Phone Textbox - Keyboard does not show

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).

How to achieve Windows Phone 8 News App layout

I am wondering how does the News app on Windows Phone achieve its layout. I am taking about the main page when the app is first launched. It is not a pivot because you can see the next section on the current section. It is not a panorama because the background is not moving, and that it is a universal app so Panorama is not available. It is not a Hub because Hub does not allow you to wrap from the first to last, or vice versa.
I notice this layout is very similar, almost identical to the layout of the Fitbit app. I like this kind of layout a lot and I would like to use that on my own app. If there is a control for it please let me know, if not, how do I do what the developer have done on those apps.
The app is using the Panorama/Hub control. It does not set the title of the control and it does not have an image for it. The first Page/Section does have an image for the main article. this image is only set for that Page/Section. The first section also does not have a Header set (it's blank).
Hope that helps!

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.

wp8 cant find a built-in options menu

Does anybody know if this control comes with the windows phone 8 SDK or if I must program it?
This screen appears when I go to people => click + icon. There are many very similar screens in windows phone but I don't know if they're ready controls or custom ones.
What I need is a screen that hides all background and just shows a list of options upon clicking a certain button, and I want to handle application overflow depending on the option the user chose.
Any ideas?
You can use the CustomMessageBox from toolkit http://phone.codeplex.com
it takes a Content that can be a listbox or user control.
and you can make it take the full screen.
check this: http://shawnoster.com/2012/10/welcome-custommessagebox-to-the-windows-phone-toolkit/
and this: https://stackoverflow.com/a/15944006/1423885

Categories