Skip to content

Code Quality: Update visual states for InfoPane in XAML instead #17416

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented Aug 7, 2025

Resolved / Related Issues

The reason why visual state manager failed to apply these changes within XAML was probably because the enums are inside the class. Now everything works as expected, removing extra lines of code.

Important

You should "Hide whitespace" in the diff view

Steps used to test these changes

  1. Open Files app
  2. Open InfoPane
  3. Resize it left and right
  4. Shrink the window enough small for InfoPane to go to the bottom
  5. Resize it up and down

@@ -67,7 +67,7 @@ public static readonly DependencyProperty ParentLevelProperty
public static readonly DependencyProperty GripperCursorProperty =
DependencyProperty.RegisterAttached(
nameof(GripperCursor),
typeof(InputSystemCursorShape?),
typeof(GripperCursorType),
Copy link
Member Author

Choose a reason for hiding this comment

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

This caused a type mismatch bug leading to an exception. Now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant