textblock Questions
4
Solved
I'm currently writing an eBook reader for Windows Phone Seven, and I'm trying to style it like the Kindle reader. In order to do so, I need to split my books up into pages, and this is going to get...
Superadd asked 27/2, 2011 at 1:4
3
Solved
I am trying to set rounded corner of TextBlock in xaml. But there is no such property.
<Grid x:Name="grdDis" Grid.Row="1">
<TextBlock Text="Description" TextWrapping="Wrap" HorizontalAli...
Soulless asked 21/8, 2013 at 5:26
2
I have text block with text "km2":
<TextBlock >Area(km2)</TextBlock>
How can I make "2" small and heigher such exponent I need view such on picture:
Hydromagnetics asked 4/9, 2013 at 17:50
2
Solved
I have around 800 KB of text which I want to display on the screen. Can somebody let me know possible solution to this?
Because of 2048X2048 limit of textblock, I have already tried splitting the ...
Malvasia asked 26/3, 2011 at 12:22
2
Solved
What criteria must I consider when selecting one of these two controls?
4
I am kinda new to WPF, dont know if the question is weird. I wanted to know if its possible to add a border around the text inside a textBlock.
EDIT:
As per suggestion I have tried both but with...
3
Solved
Basically I am currently doing final year project in my college whereby i am touching on surface 2.0 WPF.
My project is a game whereby if a user answer a question wrongly,the next question will b...
Dioxide asked 30/1, 2012 at 7:0
1
Solved
Consider something as follows:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextB...
Screwy asked 3/6, 2013 at 15:31
4
Solved
Hello I am trying to give a default value to a textblock if the results returned are null
Here is what I am trying!
All that returns is the String Format I set!
<TextBlock x:Name="NameTxtBl...
1
Solved
So i've got the following:
<TextBlock.Text>
<MultiBinding StringFormat="So and so will donate {0:C0}&#x0d;&#x0a;to {1}, bringing the&#x0d;&#x0a;total amount to {2:C0}."&g...
Birefringence asked 22/4, 2013 at 21:17
2
Solved
Is there any way to detect the number of lines breaks in a textblock with TextWrapping="Wrap"?
I am considering using a non-monospaced font. I need this because I'm creating a new and personalized...
3
Solved
How can I vertically align a Label and TextBlock at Top so that their first lines of text line up?
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<Column...
1
Solved
I have a TextBlock, wrapped in a ScrollViewer, and the Text property of the TextBlock is set with the result of a Task. The scrollbars of the TextBlock do not adjust to the size of the text returne...
Underarm asked 22/2, 2013 at 15:32
2
Solved
I'm working on my first WPF application and I notice that I'm not able to edit the text values in any of my textblocks.
I can't seem to find anything wrong here that would prevent me from changing...
1
Solved
I am using a TextBlock in WPF, on which I want to use TextWrapping, What I have done in XAML is as follows.
<TextBlock TextWrapping="Wrap" Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="0" Margi...
2
Solved
In WPF, if i put any controls in grid, if i resize the grid, it automatically resizes all the controls in it.But in label or textblock or any other text elements, all the control sizes will change ...
2
Solved
I have some TextBlocks with tooltips and I'd like to add an image into the tooltips (that means, I'd like to have tooltips with text and images).
Does anybody knows how could I do that in a simpl...
2
Solved
This is my XAML:
<TextBlock Name="SeverityText"
Grid.Column="1"
Grid.Row="0"
Foreground="Red">
<TextBlock.Triggers>
<DataTrigger Binding="{Binding Path=Severity}">
<Dat...
Lylelyles asked 27/1, 2010 at 4:14
3
Solved
I've got a source of data that has HTML tags in it (B, I, A) and need to display this in a Silverlight ListBox.
Searching around it seems to be an issue but most of the posts are old and have to ...
Bonucci asked 14/4, 2009 at 15:7
2
Solved
Are there any possibilities to provide a wordwrap suggestion to a Textblock
as you can do in HTML with <SHY> (soft hyphen) or <WBR> (word break) or the
even more complicated and less ma...
1
Solved
today i hit a really annoing problem with wpf.
i just want to align Textblock controls(with different fontsize) at the bottom line.
<StackPanel Grid.Row="0" Orientation="Horizontal">
<...
1
Solved
I want to dynamically change TextBlock text in my Class.
XAML-Code:
<TextBlock Name="Footer_text" Text=""/>
C#:
string footerMainMenuText = "Setting";
Binding set = new Binding("");
set...
Jewelry asked 30/6, 2012 at 13:23
1
Solved
I will write a custom textblock that splits its text content. It will make texts diffent colors depending on conditions and the texts will be separated with commas. Commas will remain black. I don'...
Grampositive asked 12/6, 2012 at 18:6
4
Solved
I'm currently using the TextBlock below to bind the value of a property named Name:
<TextBlock Text="{Binding Name}" />
Now, I want to bind another property named ID to the same TextBlock....
Asterisk asked 31/3, 2010 at 12:32
1
Solved
I want to make my TextBlock scrollable but I can't make it work. Maybe problem is in StackPanel?
So here is the code:
<Grid Margin="3">
<Grid.RowDefinitions>
<RowDefinition Heig...
© 2022 - 2024 — McMap. All rights reserved.