ExtensionMethods.IsTextTrimmed(TextBlock) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns whether the text of the TextBlock is trimmed Unfortunately the TextBlock control does not have a property to tell when ellipsis are displayed So we have to calculate outselves if the text fits in the text block element
public:
[System::Runtime::CompilerServices::Extension]
static bool IsTextTrimmed(System::Windows::Controls::TextBlock ^ textBlock);
public static bool IsTextTrimmed (this System.Windows.Controls.TextBlock textBlock);
static member IsTextTrimmed : System.Windows.Controls.TextBlock -> bool
<Extension()>
Public Function IsTextTrimmed (textBlock As TextBlock) As Boolean
Parameters
- textBlock
- TextBlock