iOS MonoTouch navigation middle buttons - button

Some Apps (like Facebook's) have buttons in the middle of the navigation section (instead of text title). How could I support right/left, and add middle button region the navigation menu, in MonoTouch?

You need to create a view or a toolbar or basically what you want that is a subclass of UIView, and add the following code.
(don't forget that you uiviewcontroller should be embedded in uinavigationcontroller)
this.NavigationItem.TitleView = YourTitleView;

Related

Color of icon in bottom menu don't changed when

I use navigation controller. For change color of icon in bottom menu i use "selector" with state_checked values.
Change color is operable when i navigate between navigation fragments described in navigation menu. Now the issue example:
Inside of fragment which described in bottom menu i navigate to other fragment which now is in back stack.
From this place i navigate to other fragment from bottom menu.
Then i back to fragment from point #1 and i see fragment which is in back stack.
The issue is that icon don't change color while i don't back to fragment from navigation menu.
Behavior of navigation you can see in gif video.
How save change color of navigation icon in bottom menu when i have other fragments in back stack and switch between menu?
behavior of navigation menu
I have a reference for a bottom-tab in Kotlin here.

Can you keep an element from moving when switching views besides a NavigationBar?

I am trying to have a UINavigation controller with a title view the logo for the app, and a UISegmentedControl below it, however, it is too tall to fit in the Navigation bar. Is there any way to have a toolbar with a UISegmentedControl that is under the navigation bar and doesn't move when you switch views by selecting a Segment? Thanks!
I solved this by setting animated to NO when switching views and keeping the same UIsegmentedcontrol within a toolbar under the NavigationBar on all three of my views

Info button ( i )

I'm trying to create an info button (the one that is round with an i in the middle) to appear on the right side of the navigation bar. I have seen the examples in the demo page of KendoUI mobile section and I see a button saying "Index" on the right side of some screens. Instead of displaying a button with a text inside, I would like to display the info button. Is that part of the KendoUI framework that I could just name that class and it will display that info button? If not, if I have the image, how will I be able to put that inside a button and that it will look good in iOS, Android and Windows phone?
It is possible in Kendo UI mobile framework itself.
If you want use 'info button' inside navigation bar then
you should use 'detailbutton' concept.
look at the following code
......
<div data-role="navbar">
<a data-role="detailbutton" data-icon="info" title="info button"></a>
</div>
.....
It will display a button as you said.(Button that is round with an 'i' symbol in the middle)
It will work on all the platforms that Kendo UI supports

my asp:menu control is hidden when it contains no items - how can I show it?

I added an asp:menu control (with a web.sitemap backend) to my app. For this particular app, when the user is not logged in, I don't want to show any menu items, but I do want the menu to have the same color as the bitmap header under it. However, when the menu is empty, I just end up with a blank rectangle. It's a static menu, 5 items, using CSS to style it. I've tried adding the background color to the menu, the staticmenu style, and the staticmenuitem style with no luck. Any ideas?
Why not wrap the menu control in a div to create a container that will always exist regardless and give it a background color?

ASP.NET horizontal menu with submenu appearing below, also horizontal

I've got a horizontal menu with UL/LI markup that I want to convert to an ASP:Menu in .net 3.5.
I'd like choices in the submenu to be rendered in a horizontal menu below the main menu when the main menu option is clicked. I also want to:
indicate which menu option is chosen by highlighting/bolding both the main menu and submenu,
check on rendering (or via some other mechanism) the role of the user to show only the proper menu options.
Use the CSS friendly adapters: http://www.asp.net/CssAdapters/
These will allow you to keep the ul/li markup and give you the ability to highlight via css and control the rendering just like you would with a normal asp:Menu with the roles.

Resources