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

Adding styles for GridSplitter in fluent #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siagupta0202
Copy link
Owner

@siagupta0202 siagupta0202 commented Jan 23, 2025

Description

A GridSplitter in WPF is a control that allows users to resize rows or columns in a Grid layout interactively. By dragging the splitter, users can adjust the size of adjacent grid sections.

This pull request adds styling for this control in fluent. This style is derived from CommunityTookit SizerBase style.

Fluent:

State: Default
image<

State: PointerOver
image

Customer Impact

Regression

No

Testing

Local build pass

Risk

<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="MinHeight" Value="8" />
<Setter Property="MinWidth" Value="8" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think three should we have GridSplitterMinWidth and GridSplitterMinHeight resources for MinWidth and MinHeight properties ?

Background="{TemplateBinding Background}">
<Rectangle x:Name="PART_Thumb"
Width="{StaticResource GridsplitterThumbWidth}"
Height="{StaticResource GridsplitterThumbHeight}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. PART_Thumb Width and Height should have DynamicResource reference

@niels9001
Copy link

I agree with @dipeshmsft comments. Other than that, LGTM :)!

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.

3 participants