textblock Questions

2

Solved

I have a dynamic Datagrid that I have created. I am creating each column for it through code behind. I am having troubles on a column that I want to be displayed at a textblock when not editing, bu...
Flanigan asked 8/1, 2012 at 18:6

6

Solved

I'm working on a simple chat application. Currently the messages are binded to a custom-styled listbox like this (simplified XAML): <ListBox ItemsSource="{Binding MessageCollection}"> <L...
Glassco asked 7/4, 2009 at 19:26

3

Solved

I am trying to figure out the best way to create a style/trigger to set foreground to Red, when value is < 0. what is the best way to do this? I'm assuming DataTrigger, but how can I check for n...
Divers asked 8/7, 2010 at 15:15

2

Solved

I have a TextBlock, like this one: <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> <TextBlock Name="PatchNotesTxt" Width="291" Height="226" Sty...
Heavyduty asked 5/3, 2012 at 13:4

1

Solved

tesseract OCR have a command line interface, which allow us to recognize text from images with some parameters. Input argumetns are imagename (path to image) outputbase (name of recognized text) a...
Jacquelyn asked 22/1, 2012 at 15:27

1

Solved

Ok, so I know how to clip text to a particular geometry, however the text doesn't automatically wrap based on the clip so how does one go about achieving an effect similar to the one shown below, g...
Wexler asked 4/1, 2012 at 10:4

3

Edit: I guess the question wasn't stated very clearly. It actually composes of 4 separate ones: How does a TextBlock get its default color, if the client app doesn't provide any style, either pro...
Unlock asked 12/12, 2011 at 18:47

1

Solved

In XAML I have the following code: <Label Width="120" Height="20" Name="label1" SnapsToDevicePixels="True" HorizontalAlignment="Left" VerticalAlignment="Bottom"> <TextBlock VerticalAlig...
Adjective asked 25/10, 2011 at 13:40

2

Solved

I have a listbox that is bound to a database query result. I'm using an item template that shows the subject on one line and I want it to show preview of the body on another line. What I'm wonderin...
Notify asked 24/8, 2011 at 5:25

3

Solved

I'd like to be able to click a textblock and have it run a Command. Is this possible? (if not do I just somehow make a tranparent button over it or something?)
Royer asked 9/8, 2011 at 21:57

2

Solved

Let's say that I have a simple layout such as this: <StackPanel> <TextBlock Text="{Binding Path=Title}" /> <TextBlock Text="{Binding Path=ShortDescription}" /> <TextBlock T...
Unguarded asked 9/2, 2009 at 15:9

2

Solved

I have been having trouble with the WPF DataGrid and listbox GridView performance when displaying even small amounts of data. I though this problem was simply WPF having poor performance in general...
Cisneros asked 24/7, 2011 at 18:6

1

I have a TextBlock and a Rectangle, both sitting in an empty WPF4 window. The TextBlock's Foreground and the Rectangle's Fill are both set to a SolidColorBrush with value #80800000. This is what i...
Integrand asked 7/7, 2011 at 3:38

4

Solved

I have a TextBlock and a Textbox in the same location. Depending on what mode the user is in, I make one visible and the other collapsed. This is working fine, but how can I make the Textblock scro...
Grevera asked 30/6, 2010 at 23:14

2

Solved

I want to stretch the text in WPF Textblock with out changing the font size of the textblock?
Aloin asked 8/6, 2011 at 16:31

4

Solved

I'm new to WPF and I've found some similar questions but can't quite figure out the last part. I have a ViewModel with an ObservableCollection that contains error messages. I want to display these ...

1

Solved

I'm using a TextBlock in a datatemplate for a cell in a datagrid. I have a requirement that says when the value of the cell changes, the text should: fade out before changing value should change ...
Deductible asked 2/6, 2011 at 23:56

4

Solved

I know that TextBlock can present a FlowDocument, for example: <TextBlock Name="txtFont"> <Run Foreground="Maroon" FontFamily="Courier New" FontSize="24">Courier New 24</Run> &l...
Ruhnke asked 4/11, 2009 at 11:24

1

Solved

I'm presenting text in a wpf TextBlock control (.Net 3.5). The content of the textblock varies depending on what the user selects in a list box. The text wraps, so I don't need an horizontal scroll...
Cabdriver asked 11/4, 2011 at 12:13

1

how to get each character of a textblock of different color in wpf?
Superannuated asked 4/4, 2011 at 7:21

2

Hi Guyz I have a WPF TextBlock of fixed width say 100 , If the string doesnt fit in the width the last character is being cutoff always as all the characters are of not the same size. I dont want t...
Burberry asked 3/4, 2011 at 0:47

3

Solved

I am coming from Flex where you can do just about anything inside of curly braces. I am trying to get a TextBlock to display today's Date and Time without just coding it in C#. I have tried many di...
Flue asked 12/3, 2010 at 5:22

2

Solved

I am developing window phone 7 application in C#. I am new to the window phone 7 application. I am also new to the silverlight. I want to generate the bold text of Texblock dynamically. I want to g...
Pytlik asked 21/2, 2011 at 9:25

3

Solved

I am doing some benchmarking to determine if I can use WPF for a new product. However, early performance results are disappointing. I made a quick app that uses data binding to display a bunch of r...
Disjunct asked 17/3, 2010 at 19:19

1

Solved

I've seen this question asked a lot, however, to the opposite of what I'm looking for. While other people want a control to size itself based on the size of text, I'm trying to figure out is if the...
Edam asked 25/1, 2011 at 14:1

© 2022 - 2024 — McMap. All rights reserved.