Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1285
Multiline XamTextEditor in cell using control enter
posted

I have a grid that uses a multline xamTextEditor by using a style:

Here is the style:

 <Style x:Key="TextboxWrapping" TargetType="{x:Type igEditors:XamTextEditor}">
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Height" Value="75" />
            <Style.Resources>
                <Style TargetType="{x:Type TextBox}">
                    <Setter Property="AcceptsReturn" Value="True"/>
                </Style>
            </Style.Resources>
        </Style>

It works fine.  But the grid is in a tab control and when you enter the first record of the grid and tab out of textEditor it switches the tab page.  I go back to the tab with the grid and record was added.  If I enter a new record and tab out it does not switch tab page.

So I was thinking if I can use ctrl + Enter when I need a newline in the texteditor then if I hit enter the record gets added that should not switch the tab page.

Any ideas how to use ctrl + Enter for multiline textEditor?

Thanks