We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Custom drag ui with localization


How do maintain localization while customising the drag-and-drop ui like described here: https://help.syncfusion.com/wpf/sftreegrid/row-drag-and-drop#customize-default-drag-ui

I seem to only be able to get english.

Please advise

Best regards

2 Replies

AA Arulraj A Syncfusion Team January 7, 2019 09:19 AM UTC

Hi Johannes, 
Thanks for using Syncfusion product. 
You can maintain the localization of Default Drag UI in treegrid by editing the default value of Syncfusion.SfGrid.WPF.de.resx file. 
Please refer the following UG links. 
And you can maintain the localization for customized drag UI by adding the new resources for your specified culture.  
<DataTemplate x:Key="dragdroptemplate"> 
    <Border x:Name="border" Width="250"   
                BorderBrush="#c8c8c8"  Height="60" 
        <Grid  VerticalAlignment="Center"  
                <RowDefinition Height="Auto"/> 
                <RowDefinition Height="Auto"/> 
                <RowDefinition Height="Auto"/> 
                <ColumnDefinition Width="Auto"/> 
                <ColumnDefinition Width="Auto"/> 
            <TextBlock Padding="12,0,0,0" Text="{x:Static Properties:Resources.DraggingRowsCount}" FontSize="14" FontFamily="Segoe UI"  
                            Foreground="#333333" FontWeight="Regular" Background="SkyBlue" /> 
            <TextBlock Text="{Binding DraggingRecords.Count}" FontSize="14"  
                            FontFamily="Segoe UI" 
                            Grid.Column="1" Margin="-100,0,0,0"/> 
            <Separator  Grid.Row="1" Height="2" BorderBrush="#c8c8c8" 
                            HorizontalAlignment="Stretch"  BorderThickness="1" 
                            VerticalAlignment="Stretch"  Width="250"/> 
            <TextBlock Text="{x:Static Properties:Resources.DropStatus}" 
                            Padding="12,0,0,0" Background="SkyBlue" 
                            FontFamily="Segoe UI"  
            <TextBlock Text="{Binding DragStatus, Converter={StaticResource resourceValueConverter}}"  
                            FontFamily="Segoe UI" 
Let us know whether this helps also if you need any further assistance on this. 
Arulraj A 

MR MrHessellund January 7, 2019 10:51 AM UTC

Thank you very much. This explains it fine.

Thank you for a great product.

Live Chat Icon For mobile
Up arrow icon