programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱M to Windows DevelopmentEnglish · 3 months ago

Centering a WPF TreeViewItem in the TreeView ScrollViewer

weblog.west-wind.com

external-link
message-square
0
link
fedilink
1
external-link

Centering a WPF TreeViewItem in the TreeView ScrollViewer

weblog.west-wind.com

💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱M to Windows DevelopmentEnglish · 3 months ago
message-square
0
link
fedilink
One of the annoying features of the TreeView in WPF is the inability to easily select and make an item prominently visible. While there is `TreeView.BringIntoView()` it doesn't do a good job dropping the item that the very bottom (or top) of the viewport with no way to center. In this post I show a few helper methods that facilitate this process and a few related tasks with some useful TreeView helpers.
alert-triangle
You must log in or # to comment.

Windows Development

windows_dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 32 users / week
  • 41 users / month
  • 129 users / 6 months
  • 35 local subscribers
  • 165 subscribers
  • 144 Posts
  • 69 Comments
  • Modlog
  • mods:
  • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org