Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/550 tree view scroll #551

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Bugfix/550 tree view scroll #551

merged 1 commit into from
Mar 3, 2023

Conversation

Korjam
Copy link
Contributor

@Korjam Korjam commented Feb 27, 2023

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Issue Number: 550

What is the new behavior?

Now TreeView is scrolling correctly when virtualization is disabled

Other information

@Korjam Korjam changed the base branch from main to development February 27, 2023 14:06
@github-actions github-actions bot added github_actions Pull requests that update GitHub Actions code PR Pull request labels Feb 27, 2023
@@ -38,12 +38,21 @@
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4">
<ScrollViewer
CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
Name="_tv_scrollviewer_"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird name for XAML element. Something like ItemsPresenterScrollViewer or PART_ScrollViewer (if used by the class) would be better.

<Setter
TargetName="_tv_scrollviewer_"
Property="CanContentScroll"
Value="true"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use capital True for XAML.

@@ -38,12 +38,21 @@
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4">
<ScrollViewer
CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
Name="_tv_scrollviewer_"
CanContentScroll="false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use capital False for XAML.

@github-actions github-actions bot removed github_actions Pull requests that update GitHub Actions code PR Pull request labels Mar 3, 2023
@pomianowski pomianowski merged commit 5ae2524 into lepoco:development Mar 3, 2023
@Korjam Korjam deleted the bugfix/550-tree-view-scroll branch March 3, 2023 14:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TreeView scrolling is not working when virtualization is not enabled.
2 participants