layout

WPF - How can I center all items in a WrapPanel?

I'm using a WrapPanel as the ItemsPanel of an ItemsControl. Right now, the items in the control wrap like this: |1234567 | |890 | I'd like them to wrap like this: | 1234567 | | 890 | Conceptually, the layout process should align each line of items such that it's centered within the WrapPanel's bounds. Can someone explai...

<div> element instead of <table>?

Duplicate of: Why not use tables for layout in HTML? DIV’s vs Tables or CSS vs. Being Stupid Theres been a lot of talk lately about rather using div than table tags to make your pages more browser fiendly. Why is div better? ...

a standalone eclipse view on the right side

This question is similar to How to write a Vertical Right-Side IE Explorer Bar I have a Eclipse RCP application consisting of various views only. How do you layout a view that stays on the right side? I have tried using perspectiveExtension placing it relative to org.eclipse.ui.editorss and didnt managed to get it to work. ...

How to achieve flow layout in XUL?

I'm creating a UI using XUL. I have N buttons I would like to add, and all I care about is that they all show on the form, regardless of the form's size. If I add a new button later or remove an existing button, I'd like to just delete the one <button> element rather than having to move things around inside grid or hbox/vbox elements. ...

WPF doesn't honor Textbox.MinLines for Auto height calculation

I want to have a TextBox which Height grows as Iam entering lines of Text. I've set the Height property to "Auto", and so far the growing works. Now I want that the TextBox's Height should be at least 5 lines. Now I've set the MinLines property to "5" but if I start the app the TextBox's height is still one line. ...

How do you stop RadioButtonList Label text from wrapping under the button

I have a radio button list and some of the labels are quite long so they wrap and the second line appears underneath the radio button. Ideally I would like the text to wrap with the second line starting beneath the first character of the first line. Any ideas on how? or would I have to make my own list based control for this? ...

Empty blank space at bottom of page?

Hey! In my current simple project, Copybin, there is some space at the bottom of the page that I cannot seem to be able to remove it. Any ideas? ...

css: how to format contact entry screen

I am trying to nicely format contact screen in my aspx page using CSS. With the following code, I am unable to click into the txtEmailAddress. If I take out padding:100px from the txtSubject Span element, then I am able to click into txtEmailaddress and edit. please help... <div> <span> Your Email Address : </span> <span style="padd...

How to use Zend Framework for layouts only?

I was recently brought on to help with a project that was made up of individual HTML files with the exception of a PHP contact form. So there's not even a hint of object oriented programming, MVC, or layouts (or even PHP for that matter). The project is quite large, but I wanted to slowly integrate the Zend Framework into this project, ...

In Silverlight, do InvalidateMeasure and InvalidateArrange always force a Measure/Arrange pass?

I've got a project with some custom attached properties on a UserControl. When these properties change I want to trigger a layout pass because some part of the UserControl changes in response to this property changing. In my user control, I've overridden MeasureOverride to update my shape, and this gets called when the page first loads,...

WPF - Work out a width for a FlowDocument

I am working in C# and VS2008. I have a WPF application containing a FlowDocument, which contains a paragraph, which contains a number of fairly short lines (i.e. Spans and LineBreaks). However the length of lines varies. I would like the FlowDocument's width to be large enough to accommodate the longest of these lines without wrapping,...

Positioning a div near bottom side of another div

I have outer div and inner div. I need to place inner div at the bottom of the outer one. Outer div is elastic (width: 70% for example). I also need to center inner block. Simple model of described make-up is shown on the picture below: ...

wpf: Can a Grid splitter be used ouside of a grid

Hi everybody! I've got a stackpanel, and it's perfect for laying out columns that the user adds at runtime. But I'd like the columns to be resizable, and I was reading about the control. Here's what I'm wondering: Is the gridsplitter the wpf replacement for the WinForms splitter? In other words, is this the de facto way to allow the...

Why don't my two columns align properly in IE7?

I'm teaching myself CSS through books and websites. I've made a simple site with a centered box followed by two-columns, and it displays fine in Firefox 3 and Safari 3, but not in IE7. My right column stays on the right, but is pushed down so that it starts where the left column ends. I've seen a lot of blogs about IE hacks, but I don't ...

DIVs anchored to top and bottom of parent div

This is probably a very dummy question, don't throw your shoes at me :) Consider having HTML like this: <div class="container"> <div class="header"> </div> <div class="body"> </div> <div class="footer"> </div> </div> I want 'header' and 'footer' to be anchored to the parent's top and bottom respectively, and '...

Best way to set HTML head title in a Spring+Tiles2 application?

I have a usability problem in my Spring webapp which uses Tiles as the view technology. At the moment all of the pages display the same HEAD_TITLE and the PAGE_TITLE is page specific: <html> <head><title>HEAD_TITLE</title></head> <body> <h1>PAGE_TITLE</h1> </body> </html> This is a major usability problem as the browsers history...

Need git repo layout suggestion for a new project

I'm working on a new project that I plan to keep in a git repository. I know how I would do this in CVS, but I'm a bit new to git and could use some suggestions. The project is firmware for two embedded devices that talk to each other and are packaged as a pair. For both devices there is a production variant and a manufacturing variant ...

Positioning in java swing

I have some troubles with positioning my label/password field. With this code they both get positioned in the center next to each other, while I actually want them in the middle of my panel on top of each other. Does anyone know how I should do that? import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.ImageIcon...

Spacing between child controls in WPF Grid

I have a set of Key/Value pairs I want to display on a WPF Window. I'm using a grid to lay them out like so: <Grid Margin="4"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowD...

Overriding the location of Controls even when they are directly accessed by myControl.Controls(index)?

Hi, I want to make a UserControl which holds and moves other controls within itself. I worry that the Controls collection can be used to destroy all the internal logic of the UserControl. Remembering that the .Net Framework TableLayoutPanel locates its own Controls, I created a 30x30 TableLayoutPanelm each cell containing a square Label...