Skip to content

SetFocusOnEntryCompletedBehavior - to set focus on the cell in the next row #177

@RafalZe

Description

@RafalZe

How to use toolkit 'SetFocusOnEntryCompletedBehavior' or other to set focus on the cell in the next row and current column 'Stock'?

<dg:DataGridColumn Title="Stock">
    <dg:DataGridColumn.CellTemplate >
          <DataTemplate>
             <Grid BackgroundColor="White">

                 <Entry
                     x:Name="Entry_SetStock"
                     toolkit:SetFocusOnEntryCompletedBehavior.NextElement=" ... "
                     x:DataType="model:BoxedBearingDgItem"
                     Focused="Entry_Focused"
                     IsEnabled="True"
                     ReturnCommand="{Binding Source={RelativeSource AncestorType={x:Type vm:BoxedBearingVM}},
                                                      Path=Dg_EntrySetStock_ReturnCommand}"
                     ReturnCommandParameter="{Binding Source={x:Reference Entry_SetStock}}"
                     ReturnType="Default"
                     Text="{Binding Stock}" />

                     <!--ReturnCommandParameter="{Binding Source={x:RelativeSource AncestorType={x:Type 
                                                                            pages:BoxedBearingPage}}, Path=Dg}"-->

             </Grid>
         </DataTemplate>
     </dg:DataGridColumn.CellTemplate>
</dg:DataGridColumn>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions