A pivot item's "slide-in-from-the-side" animation is played not only when swiping, but also when clicking the pivot item's header with a mouse on a desktop.
How can i disable this animation? Either completely, or only for explicit clicks/taps on the header.
I think the one you are looking for is the new control TabView solves this issue. Please have a look. It supports from the min version 16299.
Added a image from Microsoft Docs for reference.
https://learn.microsoft.com/en-in/windows/communitytoolkit/controls/tabview
Related
I'm referring to the Safari 8's tabbar control (which looks almost exactly the same with Xcode 6's tabbar + the horizontal scrolling, if I'm not mistaken)
Is it available somewhere? How do I proceed?
P.S.: If the answer is something along the lines of "It's a custom control. But you can do it very easily by subclassing... everything there is to subclass", I'm prepared for it! lol
It is a custom control: ScrollableTabBarView. You can inspect it using F-Script
The closest visual match is the Yosemite style of MMTabBarView. This control however does not implement scrolling.
Also check out LITabControl and KPCTabsControl
It is just a Segmented / Tab bar with customized Radio buttons with added NSButton(this is for closing the tab).
You could check this using Accessibility Inspector.
And there is no straightforward control to achieve this, as you mentioned in P.S., you should go with customizing the controls.
What would be the best approach for creating a Window that is semi-transparent, has round corners and an outline around its border and the arrow, but without the the title bar and buttons.
The window will pop up from the Menu Bar when a use clicks on the menu bar icon.
I'm looking to have an effect similar to the "Applications" and "Downloads" windows:
I guess I will need to do the drawing myself. But I'm wondering what's the best way to do this and whether there is anything already built into Cocoa that can minimize the effort? Or maybe a 3rd party project that has already done that (couldn't find anything exactly like that)?
Thanks.
You can create your window with
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
with a style-mask of NSBorderlessWindowMask which will give an unadorned window. Its how the Dock does its mechanics too.
Note that you must init with this style , you can't change an already init'ed windows style.
Place a custom NSView via the contentView accessor with your desired background custom drawing at the top of the windows view stack.
You might need also to setOpaque to NO
What you are looking for has been done a lot. Too much really.
The classes you want to look into are as follows.
NSStatusItem
This is something that appears in the status bar section of the menu bar to the right side.
NSMenu
If you want this from a menu in the application menus, you'll need to do some clever things with views in menus.
NSWindow
As the other poster notes a borderless window is one way to achieve this.
NSPopover
This is another way. Combined with the above, a fancy technique is to use a clear window called a cover window then, when clicking on the menu or status menu, invoke a popover from a point below that in the clear cover window.
That should be enough to get you started with what you should look into.
Beyond that, peruse the Mac App Store and also look at cocoacontrols.com and GitHub.
What kind of controls are used in the photo in the link below i pointed to them with red arrows, its outline+ App, couldn't find any equivalent to it in Xcode.
Kindest Regards
https://dl.dropbox.com/u/49071490/onenote_note_app_outline_plus_for_ipad_1.jpg
The longer arrow left below most probably points to an UITableViewCell which represents one cell in the UITableView, used as a menu. It is customized, though. No control in Xcode that looks like that out of the box.
Concerning the other arrow, iOS does not provide tab bar controls like in a browser. They are custom built from the ground with what you see in Xcode. A lot of thinkable possibilities to achieve that.
When editing a storyboard in Xcode 4.3, when I select an element, either by double clicking on the item (such as a button) in the view or selecting from the list on the left of the storyboard, Xcode pans to the element and zooms in so much that I cannot see most of the view. This makes it very difficult to do much of anything. Is there a way to disable this zoom 'feature'?
Sorry, but through answering a similar question, I found out that this in fact, is not possible. See link.
https://stackoverflow.com/a/9563917/716216
in iOS5 (as we all know by now), Apple has introduced -webkit-overflow-scrolling which allows for native scrolling. My question is when applying sticky footer and headers - if you scroll up to the top/bottom part of the page - it will let you "bounce" outside the top header or footer.
Is there anyway to just have the INNER CONTENT bounce or be elastic and not the entire window? I'd like the header and footer to stay at the top not be able to see the grey are behind a "webapp".
Thanks,
Greg
It's currently a known issue with native div scrolling on iOS 5. More information and a partial fix here.
Apple is supposedly aware of the problem and I guess we are waiting on a fix.
I unfortunately haven't been able to find a way to do this while using -webkit-overflow-scrolling (as opposed to handling touchmove events where I'd just use the preventDefault method of the event object).