textblock Questions
3
Solved
I can set fixed height in pixels, but i'd like to set it in lines. Sort of like in html you can set height of an textarea to number of rows/lines.
2
Solved
OK... so this solution doesn't help
XAML is here
<ListBox ItemsSource="{Binding Path=ContentItems}" Background="White" >
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Mar...
1
Solved
I have FixedDocument page and I want to place TextBlock on it, but it can be that Textblock doesn't fit on page by height.
So I want to take lines from generated TextBlock with TextWrapping, and t...
Kermanshah asked 16/1, 2013 at 10:19
3
Solved
I have a TextBlock in WPF application.
The (Text, Width, Height, TextWrapping, FontSize, FontWeight, FontFamily) properties of this TextBlock is dynamic (entered by the user at the runtime).
Ever...
2
Solved
I am changing the color of the TextDecoration this way:
<Grid Background="{x:Null}"
Margin="10,0,10,0">
<TextBlock Text="{Binding Value}"
VerticalAlignment="Center"
HorizontalAlignmen...
Estreat asked 15/9, 2015 at 13:20
6
Solved
Is there any way to detect a change in the Text property of a TextBlock element using events?
(I'm trying to provide an animation for highlighting the TextBlocks whose Text property change within ...
3
Solved
By default a WPF TextBlock seems to have additional top and bottom padding applied. I wish this wasn't so.
I've tried setting negative padding, but got an exception:
0,-10,0,0' is not a valid ...
2
Solved
Given a formatted text block in Windows Phone 7.1 project:
<StackPanel Orientation="Horizontal">
<TextBlock Foreground="DarkGray" VerticalAlignment="Bottom" Margin="0,0,0,8">
<Run...
Nonscheduled asked 15/11, 2011 at 1:3
1
Solved
I'm trying to bind two <Run>s inside a TextBlock as shown in the snippet below. But I'm getting an XamlParseException.
Basically I'm trying to achieve this format:
CodeNum: LongDescription
...
7
Solved
I am having hard time to match Special characters set in Silverlight. I only on the following:
To represent a LineBreak in Silverlight TextBlock:
use : > lineBreak <
But What do I use to r...
Witkowski asked 25/1, 2011 at 7:47
4
I have a textblock of width say 500, but my string is just say "H" but I want to underline the whole textblock width not just under H what can I do?
Ojibwa asked 9/4, 2011 at 0:22
4
Solved
I have an ellipse drawn inside a Grid.Row and Grid.Column. The Row is always taller than the Column is wide.
I want to draw an ellipse that fills the width of the grid column and who's height make...
3
Solved
My applications store all localized text in a string resource dictionary as suggested here http://msdn.microsoft.com/en-us/library/bb295251(VS.85).aspx
<ResourceDictionary
xmlns="http://sch...
Labonte asked 20/10, 2010 at 0:50
5
Solved
I am trying to hide the TextBlock and Label which are placed inside a grid like so:
<TextBlock Grid.Column="3" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="H...
3
This should be so simple - I've been hitting my head against my desk for so long trying to make a seemlingly simple task work (makes me feel like WPF is un-intuitive or buggy)...
In any case, I'v...
Clavus asked 17/10, 2009 at 18:23
5
Solved
This is my xaml structure
<stackpanel>
<textblock Text="A"></textblock>
<textblock Text="B"></textblock>
</stackpanel>
Stackpanel, It can loop to generate m...
4
Solved
Is there a way to do this in Windows Phone 7?
I can reference the TextBlock in my C# Code, but I don't know exactly how to then set the foreground color of it.
myTextBlock.Foreground =
//not a c...
Regulator asked 4/10, 2012 at 12:38
1
Solved
I have some XAML:
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="KeyLWP" TextWrapping="Wrap" MaxWidth="120">A Letter or Word or Phrase
</TextBlock>
<StackPanel>...
Prerogative asked 5/12, 2014 at 22:42
1
I have a textblock which needs to
show text in the maximum font size possible within the given space (less characters bigger letters and vice-versa)
wrap the text within the given space.
I trie...
1
Solved
I have TextBlock in which I put 2 Inlines (Runs), the HorizontalAlignment of the TextBlock is set to Center, this is ok, I just want to center the first Run comparing to the second, here's my code ...
1
Solved
1
Solved
I have a TextBlock I would like to pass a property of 'LineSpacing'. The thing with using "LineHeight" with LineStackingStrategy="BlockLineHeight" is that it also applies the Li...
2
Solved
I have a wpf textblock as below:
<TextBlock Text="{Binding [someViewModel].SomeVar.SomeSubVar.Name,
TargetNullValue='-'}"/>
At my viewmodel side, I'll have my own logic that in the end, ...
Meave asked 11/3, 2014 at 3:10
2
Solved
How can I bind 2 properties to a single TextBlock.Text (eg. first name and last name or current value and max value)?
something like:
// IValueConverter
public object Convert( .... )
{
return st...
Clarkson asked 11/2, 2011 at 10:52
3
Solved
I need to write text in the orientation specified for the image below. The fact is that I saw some examples around here by using a textblock and rotating the angle of the control using "RenderTrans...
© 2022 - 2024 — McMap. All rights reserved.