textblock Questions

2

Solved

Is it possible margin Text in TextBlock control ? My style on textBlock control is here : <Style x:Key="InfosStyle" TargetType="{x:Type TextBlock}"> <Setter Property="FontSize" Value="1...
Jealous asked 19/1, 2011 at 12:21

2

Solved

I'm having an issue with multiline text blocks where it is not center aligning properly The text is coming like abcde\nabc This comes out abcde abc What I want is abcde abc T...
Mockingbird asked 7/1, 2011 at 10:35

1

Solved

I have a ListBox which has StackPanels holding a TextBlock and an Image horizontally, followed by a ContentPresenter. This is what the XAML looks like: <Grid x:Name="ContentPanel" Grid.Row="1"...
Wit asked 2/1, 2011 at 4:10

1

Solved

I have a 3 column grid for my layout with each of it width set to Width="*". For the middle (2nd) grid, I have another 3 column grid each containing it own textblock, and again the column grids wid...
Klayman asked 9/12, 2010 at 13:51

4

Solved

I was wondering how I would be able to bind a text block to a variable within my C# class. Basically I have a "cart" variable in my .cs file. Within that Cart class I have access to the different ...
Outlook asked 3/12, 2010 at 10:25

1

I'm using a WPF Grid as the layout of my window. It has two columns and any number of rows. The first column is used specifically for labels and the second column is used for user-input fields (e.g...
Beliabelial asked 22/11, 2010 at 7:51

1

Solved

In a Windows Phone 7 application, when I place a TextBlock in the grid and set its HorizontalAlignment to "Center" and its TextWrapping to "Wrap", why does the text that overflows the width of the ...
Bracteate asked 20/10, 2010 at 8:27

2

Solved

Is there a way to apply an underline text decoration to one character only in a TextBlock (or any amount less than the full block)? I have some text that I want output as "this worf is misspelt" a...
Warrenne asked 8/10, 2010 at 3:43

1

Solved

The other day I ran into the following xaml and I freaked out: <Grid x:Name="LayoutRoot"> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"> <Grid> <Rectan...
Cuttie asked 4/8, 2010 at 20:32

1

Solved

I have a TextBlock on my main window. I would like to bind it's text to the window's title .. eg: myWindow.Title. This has been bugging me all night, and I have Googled to death, any help is appr...
Solander asked 18/6, 2010 at 5:55

1

Solved

Ok, I have just run into something that is really catching me off-guard. I was helping a fellow developer with a couple of unrelated questions and in his project he was animating text into some Te...
Crackerjack asked 8/4, 2010 at 21:47

5

Solved

Ok, so here is my XAML: <TextBlock Text="{Binding Path=InstanceName}"></TextBlock> If InstanceName is null or an empty string, I want Visibility="Collapsed". Otherwise I want Visibil...
Underbrush asked 23/1, 2010 at 10:8

2

I'm a newbie with wpf , what i want to display the text in one line in wpf textblock. eg.: <TextBlock Text ="asfasfasfa asdasdasd" </TextBlock> TextBlock display it in two lines def...
Phalanstery asked 22/1, 2010 at 6:40

2

Solved

I have a TextBlock within a ScrollViewer that aligns with stretch to its window. I need the TextBlock to behave as the following: Resizes with window, no scrollbars When resized below a certain w...
Darrow asked 30/12, 2009 at 16:44

2

Solved

My TextBlock has for example 50x50 pixels to display text, however if there is more text, I want a user to be able to scroll. Is there an autoscroll feature for this control? Should I use a differ...
Strategist asked 26/12, 2009 at 15:53

2

Solved

I have string which i have to display in TextBlock, my TextBlock have some fixed size, i need display the text in such manner if string cannot fit in TextBlock, then i have to split the string in n...
Flaunt asked 2/12, 2009 at 10:44

1

Solved

This Textblock, defined below, shows when the window first loads because it has no Datacontext (and hence the converter code is not run) until an item has been selected from another control e.g. Tr...
Tradeswoman asked 11/11, 2009 at 13:32

2

I have this XAML: <TextBlock TextWrapping="Wrap" Foreground="Green" Text="This is some Green text up front. "> <TextBlock Foreground="Blue"> This is some Blue text. </TextBlock&...
Grammatical asked 15/10, 2009 at 16:8

3

Solved

I have some text which has "\r\n" newline markers. I would like to have the newlines in a WPF textblock. I've tried replacing "\r\n" with "& # 13;" (without the spaces), which worked when I set...
Adolphus asked 13/10, 2009 at 11:56

3

Solved

I'm having the darndest time figuring this out: say I've got two Button and three TextBlocks. I want either button to trigger a simple Storyboard on ALL TextBlocks. Currently I'm trying to define a...
Shields asked 6/8, 2009 at 12:21

2

I just received a requirement to display a length of text in a control. The control is of a particular width and will be up to 2 lines in height. If it renders longer than two lines it will just di...
Freyah asked 26/3, 2009 at 2:34

3

Solved

I have a databound TextBlock control (which is being used inside a DataTemplate to display items in a ListBox) and I want to make all the text in the control bold. I can't seem to find a property i...
Caffey asked 3/2, 2009 at 9:45

1

Solved

I have a TextBlock that I need to autosize to the width of a TreeView. The TreeView and the TextBlock are both contained in a StackPanel. The StackPanel is inside an Expander. The width of the Tree...
Acotyledon asked 19/12, 2008 at 16:54

© 2022 - 2024 — McMap. All rights reserved.