textwrapping

How do you bind the TextWrapping property of a TextBox to the IsChecked value of a MenuItem?

The TextWrapping property of the TextBox has three possible values: Wrap NoWrap WrapWithOverflow I would like to bind to the IsChecked property of a MenuItem. If the MenuItem is checked, I want to set the TextWrapping property of a TextBox to Wrap. If the MenuItem is not checked, I want to set the TextWrapping property of the TextB...

Text wrapping around an image (or any element)

Is there a way with CSS to wrap text on both sides of an element (an image for example). I am trying to have an image positioned in the middle of a paragraph and would like text to flow over it. Please see the image for an example. http://i42.tinypic.com/14mvp69.jpg Positioning an element typically takes it out of the document flow; ...

How to get a ListView (or DataGrid) work with TextWrapping (WPF)

I mean, i have one of this controls and text inside one of it's columns. Usually if user changes column size, it's just cutting text. If I'm trying to use template with textblock or textbox and set TextWrapping="Wrap" inside of the template - it's really doesn't change anything. What's the way out? *And yes, I searched before asking, an...

WPF Grid Column MaxWidth not enforced

This problem stems from not being able to get my TextBlock to wrap. Basically as a last-ditch attempt I am setting MaxWidth on my container grid's columns. I was surprised to find that my child label and textbox still do whatever they want (bad children, BAD) and are not limited by my grid column's MaxWidth="200". What I'm really tryi...

sIFR 3.0 - Text wrap/wrapping inconsistent in Firefox 3 on PC only.

This is a recurring problem I have in Firefox 3.0. It seems when I keep refreshing sometimes it wraps, sometimes it doesn't. When it doesn't wrap, I can adjust the window size and the sIFR'd element will snap to its correct size. I need my elements to wrap on load, based on the width of it's container. I have the most current 'nightly b...

sIFR 2.0: My sIFR text isn't wrapping on a liquid design. Any solutions?

Hello, I have a simple line of text I'm replacing with sIFR for a header on my site. The site is liquid so it scales when the browser window changes width. But when I shrink the browser window down, the alt text (when I turn it on for testing) wraps to another line, but the sIFR text doesn't. I've seen written elsewhere on the web that...

WPF button textwrap style

Hi, How do I change the default textwrapping style of a button in WPF? The obvious solution of: <Style x:Key="MyButtonStyle" TargetType="{x:Type Button}"> <Setter Property="TextWrapping" Value="Wrap"></Setter> </Style> doesn't work, because Textwrapping isn't a settable property here, apparently. If I try: <Style x:Key="MyButt...

How do I make text wrapping match current indentation level in vim?

Does anyone know of a way to get vim to wrap long lines of text such that the position of the wrapped text is based on the indentation of the current line? I don't want to reformat my code, just for it to be displayed prettily. For instance, if I set my settings so that the line: print 'ProcessorError(%r, %r, %r)' % (self.file, self.in...

WPF/C# Textwrapping in a scrollviewer makes window resizing laggy

Hy. I have got a ListBox with a scrollviewer in it. Each item (40++ items) of the listbox contains a textblock and a small image. When I resize the window, the resizing is very laggy. If I put the textblock visibility of the items to "collapsed", the resizing is okay. My first approach was to set the visibility of each item not display...

WPF: Text wrapping not working

I've got a grid defined simply: <Grid Margin="0,5,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="50"></ColumnDefinition> <ColumnDefinition Width="50"></ColumnDefinition> <ColumnDefinition Width="48"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> </Grid.ColumnDefinitions> Then I'm t...

Stop word wrapping in VS2008 (vb)

Unfortunately VS2008 has wrapped some of my code automatically, this isnt helpful for searching as it has wrapped at points that has resulted in split names of variables in my designer project. e.g. Variable named MyVariable would appear as below: "MyVar", & _ "iable" This means i cant search for these variables. Is there any...

HTML TD wrap text

Hi, I want to wrap a text that is added to the TD. I have tried with style="word-wrap: break-word;" width="15%". But the wrap is not happening. Is it mandatory to give 100% width ? But I have got other controls to display so only 15% width available. Need help. TIA. ...

how to handle long text in dropdownlist control in ASP.NET

i have one dropdown list which is pouplated by database . Its value feild contain records id and option feild contain the text of record . But the record text entries are very long and makes my dropdown so long that it totally chnage the outlook of my webpage. when i cut down the width it also cut down the text displayed . Is there any ...

Wrap long-text in drop-down list ?

Hi, I have legibly long text in a drop-down list on my asp.net page. it violates the UI boundary and goes beyond the allocated region of UI. Is there anyway I can wrap [not trim] it using CSS or javascript ? I must display the entire string, no matter how long it is. ...

Wrapping text with css

Hi Guys, I have the following html: <label class="description">Label Text</label><input type="password" /> And the css styles are: fieldset span.formrow label.description { width: 150px; display: -moz-inline-box; display: inline-block; } My problem is that in Firefox 2 if the text goes over the 150px limit, then the l...

Decrease line spacing in a TextBlock / FlowDocument

Some fonts have a large amount of whitespace above and below the characters. Is there a way to correct for that, and tighten up the space between lines of a word-wrapped paragraph in WPF (in either a TextBlock or a FlowDocument)? Kind of like a negative margin between lines? There's a LineHeight property on Paragraph and TextBlock, but ...

Internationalized word wrapping in Java

I need good word-wrapping handling for Java. Not too difficult, except for one wrinkle: since I'm working on an internationalized application, it needs to handle Chinese, Japanese and Korean text properly. In those languages, word wrapping occurs between characters, since the characters themselves are words and there are no spaces. Not o...

Is there any way to get vim to auto wrap python strings at 79 chars?

I found this answer about wrapping strings using parens extremely useful, but is there a way in Vim to make this happen automatically? I want to be within a string, typing away, and have Vim just put parens around my string and wrap it as necessary. For me, this would be a gigantic time saver as I spend so much time just wrapping long ...

WPF TexBlock in Grid in ListView not Sizing Correctly?

I have a TextBlock that is in a Grid that is an ItemTemplate for a ListView. I have the items so that they grow when the window is resized, but I cannot figure out how to have the TextBlock be limited to that size. I've tried to do this with the width on the ColumnDefinition - if I set the Width to a fixed number (say 350) the text wra...

WPF toolkit datagrid cell text wrapping

My WPF datagrid's columns are fixed width, which means long text in the rows are cut off. How can I have the text wrap? ...