Add text below icons - c#

Some apps have the ability to show or hide an icon's name right under the icon in Windows 10 Mobile. The text's visibility is toggled when the user clicks on the 3 dots beside the icons - Photos, OneDrive, Outlook,...
Is that done by some ui element property or some other built in way, or was it just written to behave the same from scratch? My goal, of course, is to add that to my app.

I am assuming you are talking about the Command Bar control
You can read more on how to customize the AppBar in the official documentation

Related

Windows Mobile 6.5 Icons Menu

Is there an appropriate control to create an Icons Menu in Windows Mobile 6 or 6.5?
I am creating my own user control, but its hard to belive that such an important feature is missing.
This is the user control that I am developing:
Thanks in advance.
The native menu does not support icons or graphics, it always was text only.
You may have to mimic the native menu behavior and show your app in full screen to disable the standard menu bar.

How to add normal buttons to Appbar in Windows Phone 8?

I am aware of app bar icons and menu items in Windows phone. What I want it is an app bar similar to phone's default windows phone store where it shows up "try", "buy" and share in menu item... How can I achieve this? I looked into documentation of ApplicationBar, but it didn't help.
I want normal buttons to be inside application bar.. If that is not possible in appbar how can I mock something similar to the one which shows up in windows phone store..
Not sure that it is possible
Though, you may try to take a look at some custom appbars. For example, Cimbalino appbar is made as behavior (so it supports binding) - probably, you'd be able to set button's style either.

Changing taskbar button color on Windows

Multiple instances of the same application are running at the same time, and since each has multiple windows, it is not easy for the user to navigate between them. I help users by setting the titlebar color of different application instances to a different value. For example, all windows of the app instance started first will have red titlebar, all windows of the second instance will have a green one, etc.
It would also be useful to set the taskbar button color of app instances to the color I use for the titlebar. Is this possible? If not then I would be happy with a solution having similar differentiating effect, like setting the color of the text on the taskbar button, adding an overlay icon to it, etc.
The solution should work on Windows XP and later Windows versions. The language can be C/C++, C# or Delphi. Thank you very much in advance!
You cannot hope to achieve differently coloured taskbar buttons.
You could install your own shell and take complete control of the taskbar, but you can't expect your clients to do that.
You cannot expect to paint over the top of the Windows taskbar. The taskbar is animated. How are you going to keep up with that? How are you going to even know where the buttons are? I don't believe that there is a public API that will tell you that. I think you have to rule that idea out.
There is an API that allows you to change the colour of a taskbar button. It's the taskbar progress API added in Windows 7. You could use that to make your taskbar buttons yellow, green or red. I personally would not recommend that since the user will think you are showing progress.
The main options that are available to you are to change the window caption, and so the text that appears in the taskbar button. Or to change the icon.

what are controls .NET equivalent to this image?

in this picture,I can see: MenuStrip,??,TextBox
how do I an bar like this that have the enumeration?
I hope this clear. Thanks in advance.
If you're talking about the menu bar at the top of the window (just below the caption/title bar, which you should get for free from any Form object), then that is not a MenuStrip control.
The MenuStrip control doesn't use the native Windows menu bar, which means it's going to look very different on Windows Vista and later where the appearance of the standard menu bar was altered to be blue and plasticky. Since MenuStrip is drawn entirely in C# code, it's going to look permanently cheesy and stick out like a sore thumb.
If you want the standard Windows menu bar, you need to use the old MainMenu control. This is what everyone used back in the early days of .NET, but it's still available for backwards-compatibility and for people who care about what their apps look like. You'll probably have to add it to the toolbox manually because it's not there by default. Right-click on your toolbox and click "Choose Items", then find MainMenu in the list of available controls and ensure that it is checked.
As Blorgbeard suggested in the comments, if you're talking about the line numbers and the text editing control, they're not the standard TextBox control, either. In fact, they're not a standard Windows control at all. That's a custom control designed specifically for editing code, probably Scintilla.
You can find a .NET implementation here: http://scintillanet.codeplex.com/

How to automatically resize a Windows Mobile application when the keyboard appears?

I'm looking into Windows Mobile development but there is one thing which I haven't quite figured out yet. In all applications already installed on the device (Internet Explorer, configuration windows, etc) whenever the on-screen (soft?) keyboard appears, the user interface automatically resizes so the keyboard doesn't cover or obscure the user interface (and if necessary it adds scroll bars).
However when I simply add a text box to my Windows Mobile form, somewhere near the bottom, and test it, it's not automatically resized. The keyboard covers the text box and I can no longer see what I am typing.
Is there a way to automatically do this, or should I do this myself using an InputPanel control and listening for its event?
This is all with .NET (the compact framework, I believe), C# and Windows Mobile Professional 6.1, by the way.
Use the InputPanel component. It contains a EnabledChanged event.
Simply handle the event and resize/hide/show your controls. :)
Example code can be found at the MSDN.
You will have to set the Anchor property for the control respectively. The form will be resized automatically because it is full-screen, but unless you tell your control to be anchored to the bottom, it will not move but be "outside" the form.
Example: You have a "fill client area" ListView and two buttons below that ListView. To make the ListView adjust its size and move the buttons according to the new height, set the ListView's anchor property to "Top, Left, Bottom, Right" and the buttons` anchor property to "Bottom, Left" and "Bottom, Right". That way you also account for screen rotation in that the controls resize/move correctly.
You'd have to listen to the InputPanel events only in case you want to entirely restructure your layout when the SIP is shown/hidden.

Categories

Resources