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

TreeView 选择下一个子项的时候,会将当前的ItemsHoverBackground的背景应用到上一个被选中的子项,会出现上一个被选中的子项有一个背景 #293

Open
3 tasks done
Sandf123hehe opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Sandf123hehe
Copy link
Collaborator

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述内容
  • 我确认我使用了Panuon.WPF.UI,而不是Panuon.WPF.Silver等先前项目
  • 我已经附带了相关错误截图,确保问题准确且可复现

所使用的Panuon.WPF.UI库版本号

1.1.2.2

发生了什么

  <TreeView
      Width="300"
      Height="500"
      pu:TreeViewHelper.CornerRadius="10,10,10,10"
      pu:TreeViewHelper.ItemsBackground="#FFFFFFFF"
      pu:TreeViewHelper.ItemsBorderBrush="#00FFFFFF"
      pu:TreeViewHelper.ItemsCornerRadius="10,10,10,10"
      pu:TreeViewHelper.ItemsHoverBackground="#FF2DCC70"
      pu:TreeViewHelper.ItemsHoverBorderBrush="#02FFFFFF"
      pu:TreeViewHelper.ItemsHoverBorderThickness="0,0,0,0"
      pu:TreeViewHelper.ItemsHoverCornerRadius="10,10,10,10"
      pu:TreeViewHelper.ItemsHoverForeground="#FFFFFFFF"
      pu:TreeViewHelper.ItemsMargin="7,5,7,0"
      pu:TreeViewHelper.ItemsPadding="7,5,7,5"
      pu:TreeViewHelper.ItemsSelectedBackground="#FFFFFFFF"
      pu:TreeViewHelper.ItemsSelectedBorderBrush="#00FFFFFF"
      pu:TreeViewHelper.ItemsSelectedBorderThickness="0,0,0,0"
      pu:TreeViewHelper.ItemsSelectedCornerRadius="10,10,10,10"
      pu:TreeViewHelper.ItemsSelectedForeground="#FF2DCC70"
      Background="#FFFFFFFF"
      BorderBrush="#00696969"
      BorderThickness="0,0,0,0"
      Foreground="#FF363636">
      
      <TreeViewItem Header="Item 1">
          <TreeViewItem Header="Item 1.1">
              <TreeViewItem Header="Item 1.1.1" />
              <TreeViewItem Header="Item 1.1.2" />
          </TreeViewItem>
          <TreeViewItem Header="Item 1.2" />
      </TreeViewItem>
      <TreeViewItem Header="Item 2">
          <TreeViewItem Header="Item 2.1" />
          <TreeViewItem Header="Item 2.2">
              <TreeViewItem Header="Item 2.2.1" />
          </TreeViewItem>
      </TreeViewItem>
      <TreeViewItem Header="Item 3">
          <TreeViewItem Header="Item 3.1" />
          <TreeViewItem Header="Item 3.2">
              <TreeViewItem Header="Item 3.2.1" />
          </TreeViewItem>
      </TreeViewItem>
  </TreeView>

重现步骤

有点闪眼睛

@Sandf123hehe Sandf123hehe added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant