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
105
Cell containing XamTextEditor and Button
posted

I have the need for a cell to contain a XamTextEditor and a button beside the text editor to do some custom logic.  I tried this using a style that changed the CellValuePresenter below but it has a couple of problems.

 <Style
    TargetType="{x:Type igDP:CellValuePresenter}"
    x:Key="testField">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
                <StackPanel Orientation="Horizontal">
                    <igEditors:XamTextEditor
                        Width="{TemplateBinding Width}"
                        Text="{TemplateBinding Content}">
                    </igEditors:XamTextEditor>
                    <Button
                        Content="..."
                        Click="Button_Click"
                        Margin="2 0 0 0" />
                </StackPanel>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

Problem 1: If the editor has no content then the editor width is really small.  I would like it to fill the cell.

Problem 2: The EditModeStarting/Started and EditModeEnding/Ended events don't fire for the text editor

Parents
No Data
Reply Children
No Data