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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





130727 May 29,2017 03:20 PM UTC Jun 5,2017 04:02 AM UTC WPF 4
Tags: TreeViewAdv
Forstmeier Peter
Asked On May 29, 2017 03:20 PM UTC

Hi all togehter,

i use the TreeViewAdv Control in my WPF Application.

<ScrollViewer Grid.Row="1">
            <syncfusion:TreeViewAdv x:Name="Tree"

                ItemsSource="{Binding ProjectsView}"
                SelectedTreeItem="{Binding SelectedProject,Mode=TwoWay}"
                    <HierarchicalDataTemplate ItemsSource="{Binding SubProjects}" >
                        <ContentControl Content="{Binding}"
                                        ContentTemplate="{StaticResource ProjectsSelectionTemplate}" />

                    <i:EventTrigger EventName="MouseDoubleClick">
                            Command="{Binding EntitySelectedCommand,diag:PresentationTraceSources.TraceLevel=High}" >

Part of ViewModel wher PrpjectsView i typeop ICollectionView

ProjectDto _selectedProject;
        public ProjectDto SelectedProject {
            get {return _selectedProject;}
            set {
                SetProperty(ref _selectedProject,value);
                if (SelectedProject != null) {
                    Console.WriteLine("Selected {0}",SelectedProject.ProjectName);

When i scroll down the Tree an click an Item, the SelectedTreeItem changes, but, the Tree always jump to the first position.

This works only with he line 'Thread.Sleep(500). If i comment out this line, the tree scrolls only to the first position, so there is no selection.

Any ideas?



Forstmeier Peter
Replied On June 1, 2017 04:28 AM UTC


me again.

is nobody outside who can help me.

This is a very serious problem i i never see this behavior bevore.



Venkateshwaran Ramdoss [Syncfusion]
Replied On June 1, 2017 09:18 AM UTC

Hi Peter,   
Thank you for contacting Syncfusion Support.   
We have validated this reported behavior and it has a problem with AutoScrolling functionality in ScrollViewer control. It has been discussed in below MSDN article.    
As explained in above MSDN article, this reported behavior can be resolved handling RequestBringIntoView event. Kindly make use of the below code example for your reference.   
Code example   
<syncfusion:TreeViewAdv  x:Name="TreeView"RequestBringIntoView="TreeView_RequestBringIntoView"    
ItemsSource="{Binding Customers}" SelectedTreeItem="{BindingSelectedTreeItem,Mode=TwoWay}">   
private void TreeView_RequestBringIntoView(object sender, RequestBringIntoViewEventArgse)   
            e.Handled = true;   
We have also prepared sample and video for your reference and it can be downloaded from the below link.   
Please check the above solution and let us know if it is helpful.   
Venkateshwaran V.R.   

Forstmeier Peter
Replied On June 2, 2017 07:15 AM UTC

Works perfectly

Thanks a lot


Vijayalakshmi Roopkumar [Syncfusion]
Replied On June 5, 2017 04:02 AM UTC

Hi Peter

Thank you for your update.

Please let us know if you need any further assistance on this.

Vijayalakshmi V.R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon