Is it possible to adjust the height of ApplicationBarMenuItem in Windows Phone 8 - xaml

I have searched for quite a while to find the answer.
Unfortunately, there is not even single one answer can be found on the Internet.
I only have one ApplicationBarMenuItem inside the ApplicationBar which is "About". And after I saw the effect of the "opened" ApplicationBar, I think it is too "fat" (the height of the item is too much, or maybe the line spacing/margin-top and margin-bottom/padding-top and padding-bottom etc...I'm trying to create an image for you, because I don't know how to get a screen shot for that, but anyway I'm sure you know what I mean :))
So here again is the question, is it possible to change the height of ApplicationBarMenuItem in Windows Phone 8?
Many thanks.

No, you can't change the AppBar menu item height.
But... i think this is the way the appbar looks in any system application you can take a look at, and the user isn't going to be dissapointed by the size, is just the expected size. Only my two cents, but i don't think you need to worry about that.

Related

change height of a client window?

I was wondering if there was a way that I could resize window height in awesome. sort of like how I could make the master wider or narrower, is there a way to make a window lower in the stack taller or shorter? Documentation has not helped, so I figured I'd ask here before just giving up.
I think you might be looking for window factors. The relevant API docs (that don't say much) are here:
https://awesomewm.org/doc/api/classes/client.html#awful.client.setwfact
https://awesomewm.org/doc/api/classes/client.html#awful.client.incwfact

Positioning items dynamically for different screensizes

Good morning!
I'm currently trying to create a view similar to this mockup.
I have put down 3 different screen sizes so you can see the issue.
I have a header background image (grey box) with an angled bottom. On the right I want to display an image, which obviously needs to be positioned.
Positioning it horizontally is no issue but how can I position the image vertically? I have it positioned fixed for one screen size but obviously need to make it flexible.
Any ideas? Help would be much appreciated!
David
You can definitely use measure as #rajesh pointed out, or you can use Dimensions. As far as getting the layout consistent across devices, using position absolute and measuring the device height should allow you to get consistency across these devices.
Check out this example I set up, it should be a good starting point at least.
https://rnplay.org/apps/pSzCKg

Xcode trouble with constraints for buttons

I am creating a painting/drawing app. I am trying to make everything fit in the view on a 3.5 inch device (so far I have created it to fit a 4 inch device). I have 35 buttons in one of my views for the user to choose the stroke color and size. I understand that the buttons will need to be resized. What is the best way to do this? Everything in the view was inserted through the interface builder. This is what I am working with (the whitespace at the top is an iAd banner):
https://drive.google.com/#folders/0BxjZ6v5AeGPpVktWNmQ5ZmZjQ28
I have been playing about with constraints for some time now but I cannot manage to get the buttons to resize. I feel I may have been close at some points but never completely successful. I was hoping for some help from someone who understands them a little better! So to clarify, I am simply trying to get everything to fit on the screen when the user is on a 3.5 inch device.
Thanks in advance!
I used Autoresizing and it worked well. You need to play around with them a bit. If you explain what exactly your buttons are doing, maybe you will get clearer answers.

Windows Form Compiles to Different Size than desinger

This may be fairly obvious as I cant find it on Google but I have a windows form of a given height and width in the VS Designer and it looks perfect.
The object inspector and the ViewDesigner.VB all match up.
But when it gets compiled the window is noticeably bigger and brings with it a whole heap of wasted space around the edges. This is more than just ClientSize etc. This is a good inch or two.
Any idea whats causing it? It's not a resolution issue as this happens on the same machine.
For future reference this was nothing I was doing, it was coded into the larger application to retain window states.
So it simply re-sized to either what it was or what it thought it should be.
Thanks for the help and suggestions either way.

Objective-C: How to implement TextView orphan control

I'm working on an iPad app that does a simple display of text similar to iBooks.
I would like to display ONLY full paragraphs on each screen (ie, no orphan/widows on a page). Similar to iBooks, I want to allow the user to change the font and font size and continue to keep all lines in paragraphs together. The user will be able to page forward and backwards (just like iBooks).
I've been researching this and can't find a solution for this. I would think that someone has already done this code, but it looks like I'm going to have to figure out the point size of the font and calculate the size of the TextView and then count how many characters, etc etc etc.
Does anyone have a suggestion where I might start to do this?
Thanks a bunch!
Look at the NSString UIKit Addition it has methods for calculating how much space the rendering of string in a give font will take.