stretch

UIImageView with stretchableImageWithLeftCapWidth doesn't stretch image

I'm trying to stretch an Image in a UIImageView - but I fail miserably :) Following setup: NIB-File with a view and a UIImageView attached to this view. Wired to my class using IBOutlet UIImageView *background. Now, in my class I try the following: UIImage *bgImage = [[UIImage imageNamed:@"myImage.png"] stretchableImageWithLeftCapWi...

How to stretch the form submit button using CSS?

Hi again, how do I stretch a form submit button using CSS? I'd like to have some kind of horizontal padding between the text inside the button and the button left and right end. Is this possible, and if so, how? Tips for making the button prettier (without using images) are also much appreciated :-). ...

Content control contents sizing to fill in Silverlight 4

I have a style for a ContentControl which I want to use in places where I currently have a Border. When I use this, the child controls will not stretch to fill and only take a small amount of space. I've tried applying HorizontalAlignment="Stretch" to everything, but it doesn't work. What's wrong? <Style x:Key="GradientPanel" TargetType...

Stretch ListBoxItem Style Problems

I have a problem stretching the content of a ListBoxItem. I use a DataTemplate with a Grid to place the content of the last column aligned at the right. But I must have something in the basic style of the controls that prevents this kind of display - the "*" ("consume all the rest of space") displays like "auto" ("take only what you real...