index
>
Windows Presentation Foundation (WPF)
> How can I know correctly whetehr text in textblock is trimmed or not?
How can I know correctly whetehr text in textblock is trimmed or not?
Hi,
I need to know whether text in textblock is trimmed or not correctly. Can someone tell me as how can I know this information.
Thanks,
narmishaba.
narmishaba
narmishaba
if (textBox1.Text.Trim().Length = textBox1.Text.Length)
{
MessageBox.Show("Text is already trimmed!");
} else {
MessageBox.Show("Looks like there's more trimming to do!");
}
David Morton -
http://blog.davemorton.net/
-
@davidmmorton
-
ForumsBrowser, a WPF MSDN Forums Client
David M Morton
You can use google to search for other answers
Custom Search
More Threads
Returning keyboard focus from DataGridView
ListView Headers not Binding?
wpf click once and google
How to get the control inside the ControlTemplate on run time.
ComboBox SelectedIndex property binding
How to get access to UserControl In ListBox Using DataTemplate
runtime requirements for using DirectX for wpf projects
A trouble with the ToolBar control
WPF reacts delayed on clicks
Button event problem n it's focus
Home
Copyright 2009-2010 by netframeworkdev.com All rights reserved