textblock
Limiting the width of a TextBlock in Silverlight
The obvious MaxWidth gets ignored and the text in the \"DisplayBox\" TextBlock displays the whole text even if this text continues past the parent container controls (to the edge of the silverlight ar[详细]
2023-01-08 18:30 分类:问答Silverlight 2 TextBlock ignores MaxWidth
I am using Silverlight 2 to dynamically add a TextBlock to a Canvas.I set the MaxWidth of the TextBlock but it ignores this value and displays a string longer than the MaxWidth value.[详细]
2023-01-08 16:01 分类:问答WPF TextBlock custom wrapping : on the left and after a "."
I\'m trying to display a text that would be wrapped on the left and only after special characters in the string.[详细]
2023-01-08 14:49 分类:问答WPF flush right text - possible easily?
This is a nice-to-have for our designer. She has a layout where a form title, on the top right开发者_StackOverflow社区 of the form banner, is two words in English. There are several forms so the words[详细]
2023-01-07 10:18 分类:问答WPF TextBlock Negative Number In Red
I am trying to figure o开发者_如何学Pythonut 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[详细]
2023-01-06 16:03 分类:问答Programmatically move Cursor to a TextBlock
in my application I\'m opening a Window as a dialog. Inside this win开发者_开发知识库dow, there\'s a TextBox called \"myText\". When the dialog is shown, I want the cursor to be automatically inside t[详细]
2023-01-06 06:07 分类:问答Make a silverlight textblock act like a hyperlink
I\'m pretty new to silverlight. I have a text block that is displayed inside a datagrid (inside a DataGridTemplateColumn.CellTemplate template to be precise).[详细]
2023-01-05 17:24 分类:问答WPF: Drawing on top of a TextBlock
I want to be able to draw on to the top of a TextBlock, and have found a way to do this, but i cannot remove the drawing once it is there. Here is the code.[详细]
2023-01-05 01:07 分类:问答WPF Text block gray out text
I want to gray out text in t开发者_开发知识库he WPF text block. how do i make it? Regards RajuOn C#:[详细]
2023-01-04 10:26 分类:问答WPF Bind TextBlock to Window's Title
I have a TextBlock on my main window. I would like to bind it\'s text to the window\'s title .. eg: myWindow.Title.[详细]
2023-01-04 02:20 分类:问答