Hi,
I am using:
<Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="TextWrapping" Value="Wrap"/></Style>
to wrap a cell. However I have set the row height to 25. I need to determine if wrapping occurred on each record and if so, set that record's height to 50. Is this possible?
I cannot find this "LineCount" method you mention in my current version of XamTextEditor (NetAdvantage for WPF 2007 Vol. 2). Can you give me a hint on what it's actually called?
Like TextBox, XamTextEditor contains methods for determining how many lines of text are in the editor. The method LineCount will become equal to 2 as soon as text wraps to a second line. You can handle an event (such as TextChanged) and resize the editor once LineCount is greater than 1.