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
Related
I've been playing around with creating a Menu Bar app for macOS.
The app consists of an icon along with a title. The title displays additional context and can be dynamic width.
I've noticed that when the Menu Bar does not have enough room to display the icon AND context, it hides the whole app completely (icon and context) until there is space once again to show it.
Is it possible to prevent it from doing this somehow? Or at the very least maintain the icon visibility without the title, if room doesn't allow?
Unfortunately no, NSStatusItem lacks methods to indicate visibility or occlusion. The functionality you want might be possible via notification, but that is up to Apple to implement.
You may use two separate NSStatusItem. Looks like after creation they should be adjacent, until user reorders them with Cmd-drag.
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:
I want to create an application bar like IE has in Windows Phone 7.1 ... it has a textbox in it instead of buttons, and it still works as the application bar with menu items under it.
Is this possible. I don't see anything under the Shell namespace, and just adding a Grid to the Application bar is not working.
No, the application bar is not derived from UIElement. So you cannot add other UIElements to it.
The closest you can get is to add a Grid along the bottom of your phone screen, color it like the application bar and add a TextBlock to it. I wouldn't recommend this approach though, because it makes your app non-standard compared to all other apps available for the platform.
If you are to go this route, you can use the PhoneChromeBrush theme resource to set the color to match the application bar.
In my ebook app, I wanted to show current page number as as textBlock on Application bar.
I couldn't find a way to add textBlock to the application bar.
Unfortunately you cannot modify the application bar itself. To build something like you'd need to create your own application bar style control.
I'm not entirely sure if this is a good thing because it would be inconsistent with the rest of the phone and could possibly violate some style guides.
You can also check this: Bindable Application Bar Extensions for Windows Phone 7
Some Cocoa applications (for instance, Mail and Automator) have a special control usually in the bottom of their window:
alt text http://img150.imageshack.us/img150/9084/picture2vm3.png
Could you share the best practices of making the same action bar with standard images and popup buttons?
Thanks.
You probably want BWToolkit