Looking for a way to create a Yosemite-style toolbar but retain the default functionality of the titlebar of document based apps.
Here's one way to create a Yosemite-style titlebar:
macOS window with integrated title bar and toolbar?
Which requires hiding the titlebar. Is there a way to get this look and feel but retain the titlebar view which contains:
the filename
if the file has been edited
the fancy renaming popover?
These are the controls we'd like to retain:
Related
In Xamarin.Forms I have created a custom Navigation bar using a StackLayout and Labels for one of my pages. The other pages however are using the default navigation bar. I've tried to make the titles of the custom and default navigation bars look exactly the same but can't quite get it to match.
Is there a way to find out the font size and family of the default navigation bar in Xamarin.Forms?
Yes, there is! Xamarin.Forms is fully open-source, so you can inspect anything the code is doing on GitHub. The magic most likely happens inside the NavigationPage renderers, so check out Xamarin.Forms.Platform.[Target Platform]/Renderers/NavigationPageRenderer.cs.
But in your case this might be overkill, and you might be able to get the information you are interested in using the Xamarin Inspector while your app is running in debug mode.
I develop Xamarin.Forms app (latest version of Xamarin), I'm targeting only Android. I use TabbedPage which displays bar on the top of the screen. I want to make my custom visual item that will look like the TabbedPage bar. Where can I find out font size, font type, background color, margins etc so I can make my custom visual item that will look like TabbedPage bar?
As you said that you want to create tabbed page I think you should use Xamarin.forms controls (https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/navigation/tabbed-page/). But if you want to create custom tabbed then you have to use custom renderer for top navigation bar.
I am trying to get the below effect in OS X.
I found out the first step is to create a custom toolbar, then hide the window title.
I have managed to hide the window title but I am new to OS X development so I am not sure how to create a custom toolbar.
Here is the effect I am trying to create (toolbar with a search field and maybe some buttons).
You can easily customize the toolbar in Interface Builder. Click on the toolbar that you have dragged into the window. Now you can remove all the items in there and add the ones you would like to have. You can add anything from TextFields, Buttons to custom views.
Add items by dragging them from the object library into the "Allowed Toolbar Items" section. From there, drag them into the "Default Toolbar Items" section. Otherwise the control will be available to the user, but not in the toolbar until he customizes it.
You can align the controls by using the space and flexible space objects that can be found in the objects library of Xcode.
Aligning the controls works via drag and drop.
To center controls, simply add flexible spaces to the left and right of the control.
Are there any open source implementations of a tabbed scope bar like Xcode 4 has? I have seen MGScopeBar, but it doesn't have the icon tab appearance I'm looking for. It uses recessed buttons, while Xcode's tabs have a full-height highlight.
You might want to have a look at
DMTabBar:
DMTabBar is a simple segmented control / bar that mimics the XCode 4 Inspector segmented control.
CocoaControls also provides heaps of other great Open Source Cocoa controls.
You can also check DOTabbar and create your custom tabbar item cell.
Talking about Suggestion Bar as we can see here, I'd like to know if there's a way to show/hide this bar programmatically, and/or add/remove buttons in it programmatically?
That's Context Menu you are referring to. Checking this link for how to use Contextmenu in your app
WP7 ContextMenu in depth