I'm trying to hide status bar in Windows Phone 8.1. I see a thread to do this (Hide Status bar in Windows Phone 8.1 Universal Apps), but this is C#. I would like to hide this status bar in XAML. Reason is that Expression doesn't detect the code in class constructor. When I launch the app all is working, but in Blend it still display the status bar, and so I can't make correctly the design...
My question is : Is there a way to hide status bar in XAML (via a property in Page tag or other) ? Or it is possible to force Blend to detect whatever I write in constructor ?
Thanks you
There is no way to hide the status bar in XAML.
But you can hide it in Expression Blend.
Look to the Device Tab and then unselect the Show Status Bar tick as shown in the picture.
Related
I would like to implement the OneNote app menu in my own UWP app. In the closed state, the menu only shows the 'hamburger' button, but when clicked a menu pane slides in from the left.
I have tried to use the SplitView, but it doesn't allow me to set the width to 0 when collapsed, always showing a narrow line on the left side. I also considered using the 8.1 Flyout control, but that doesn't see to animate the correct way.
So, what's the correct way to implement the OneNote menu behavior?
You need the SplitView, but don't mess with the width of its pane.
Instead, set the DisplayMode to Inline (or Overlay) and toggle the IsPaneOpen property.
I have a progress bar user control that I would like to act like a MessageDialog so that it blocks the screen until the progress bar is 100%. Does anyone have a suggested way of doing this or a good example? Thanks!
I ended up using the Callisto library with the Custom Dialog that mimics the MessageDialog behavior. Here is an example/reference: https://github.com/timheuer/callisto/wiki/CustomDialog
As far as I can understand you are using UWP (Windows 10), then you can use ContentDialog. You can put any content in it, including the progress bar.
I'm using a UIDocumentInteractionController in my universal app. On an iPhone, when a user is presented with the interaction controller and they select the "Mail" option, a native Mail composer window is presented that still shows the full status bar (carrier, the time and the battery life indicator). When the same code executes on the iPad version, the native Mail composer window slides up and then right when it reaches the top, the status bar goes completely black except for the green bar that is normally inside the battery.
Is there anything I can do to control the appearance of the status bar when the native mail composer window opens?
Here you can change your status bar style in you App info, Hope it will help for you.
There are certain elements of Win 8 Store App UI that change based on whether the user has a touch screen. For example, a ScrollViewer, when rendered on a non-touch screen shows a vertical scrollbar. On a touch screen, the scrollbar is hidden.
I would like to tailor my application UI, adding extra controls, for non-touch screen users. Does anyone know if it is possible to detect whether a user has a touch screen?
You can use the Windows.Devices.Input namespace to detect various capabilities (touch, keyboard, mouse, etc.). For example, the TouchCapabilities class has a TouchPresent property you could check to see if there's a digitizer available.
Take a look at the Input: Device capabilities sample to see them in action.
If you are using HTML/JS you can query it like this
var touchCapabilities = new Windows.Devices.Input.TouchCapabilities();
var isTouchCapable = touchCapabilities.touchPresent;
How can I show an NSWindow when clicking on an NSStatusItem, such that it shows over other applications when appearing, but without causing them to lose active status?
I have seen MAAttachedWindow, and it is neat but it does not show on top of other applications unless its own application is active.
I would check out this excellent tutorial and sample project:
Cocoa Popup window in the Status bar
That example shows how to "attach" a window to a status bar item, but you could position the window wherever you want. Basically, if you define your app as a LSUIElement you can display floating utility windows despite your app never activating or showing a dock icon, and other apps still remain key.
if you use MAAttachedWindow, you can set the winow level as NSStatusWindowLevel. Then it will show on top of other application.