Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi there,

                                    on a xaml UserComponent i have the following DataTemplate

                                    <DataTemplate x:Key="tmplStatoODA">
                                                <Border Margin="0,0,0,0" Padding="0,0,0,0">
                                                    <Border.Background>
                                                        <Binding Path="RowData.Row.StatoODA.colore">
                                                            <Binding.Converter>
                                                                <utils:StringColorToBrushConverter />
                                                            </Binding.Converter>
                                                        </Binding>
                                                    </Border.Background>

                                                    <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="content"
                                                                      Content="{Binding Path=RowData.Row.StatoODA.stato}"
                                                                      ContentTemplate="{Binding View.DefaultDataRowTemplate}">
                                                    </ContentPresenter>
                                                </Border>
                                            </DataTemplate>

                                    which maps to a particular grid column of a GridControl through a custom template selector.

                                    When that particular column is resized on the Grid, the entire column content flickers, and the string contained on the ContentPresenter part of the DataTemplate disappear randomly (well this happen even if the DataTemplate contains only the ContentPresenter part) ... is this some kind of "i should use Double Buffering" thing ? or what kind of workaround can i use to avoid thie behavior ?

                                    Thank you

                                0

                                Hi RICCARDO,

                                I am afraid the code you provided is not enough for us. I do not quite understand from your post where this template is used and under which conditions the problem occurs. It would be great if we can reproduce this issue locally and examine it in greater detail. Would you please provide us with a small sample project where the issue is reproduced on your side, so that we can try it here?

                                Thanks,
                                Vito

                                0

                                Ok sorry i'll try to provide a litte example ...

                                0

                                Hi RICCARDO,

                                Ok, I will look forward to seeing your sample project.

                                Thanks,
                                Vito

                                0

                                Here a sample project.

                                If you resize the colored column you can see that the string contained flickers and sometimes disappear.

                                TestFlickering.zip
                                0

                                Hello Riccardo,

                                We are researching this issue, and will answer ASAP. Please bear with us.

                                Thank you

                                0

                                Hello Riccardo,

                                I have researched your sample, and found that the approach you are using is incorrect. The problem is caused by the fact that you are using the view's DefaultDataRowTemplate, which is designed for templating rows, as a cell template. I am not sure why you are using this approach. Could you please clarify the expected behavior in greater detail? Anyway, the easiest way to resolve the problem is to change the xaml as shown below:

                                	
                                [XAML]
                                <Border Margin="0,0,0,0" Padding="0,0,0,0" Background="Blue"> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="content" Content="String contenuto" </ContentPresenter> </Border>

                                Please let me know if this solution meets your requirements.

                                Thanks,
                                Stan

                                0

                                It works !!

                                Thank you

                                I guess that the

                                ContentTemplate="{Binding View.DefaultDataRowTemplate}"

                                derived from a sample i copied from.

                                0

                                We are glad to hear that our assistance was helpful. Thank you for keeping us informed of your progress.

                                Thanks,
                                Vito

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners