-
Notifications
You must be signed in to change notification settings - Fork 61
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 - 37311 - unclickable app after selecting consumer while bulk update #3481
BugFix - 37311 - unclickable app after selecting consumer while bulk update #3481
Conversation
…umer dropdown and click anywhere outside the consumer name then after that not able to click anywhere outside. RC: In ConsumerComboBox, we are using custom item template. The custom item template is a CheckBox whose width is wrapped to it's content. So if we click to side of the item name then the click event is not sent to the CheckBox and closes the ComboBox. This puts the control in a wierd state where we are not able to click outside unless we move to some other application. Fix: Add a new property setter to ComboBox ItemContainerStyle. Use this setter to set the HorizontalContentAllignment property to Stretch.
…Box. This allows to select item even when we click on the side of TextBlock.
WalkthroughThe update focuses on enhancing the user interface and interaction within a Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (2)
- Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml (1 hunks)
- Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml.cs (4 hunks)
Additional comments: 4
Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml (2)
- 29-34: The
CheckBox
binding and event handlers are correctly implemented. However, verify that theCheckBox_CheckedUnchecked
method efficiently handles both theChecked
andUnchecked
events without unnecessary duplication of logic.- 41-48: The
ItemContainerStyle
forComboBoxItem
withHorizontalContentAlignment
set toStretch
is appropriate for ensuring that items stretch to fill the available space. This is a good practice for consistent UI appearance.Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml.cs (2)
- 39-41: The addition of
System.Collections.Specialized
,Windows.ApplicationModel.Chat
, andSystem.Security.Cryptography
namespaces suggests new functionality. Ensure that these namespaces are actually used in the code to avoid unnecessary imports which can clutter the codebase and potentially increase compilation time.- 122-128: The handling of
ConsumerSource
changes withCollectionChangedEventManager
is correctly implemented to manage event subscriptions based on the old and new values ofConsumerSource
. This approach prevents memory leaks and ensures that the component responds correctly to changes in the data source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml.cs (4 hunks)
Files skipped from review as they are similar to previous changes (1)
- Ginger/Ginger/UserControlsLib/ConsumerComboBox.xaml.cs
Thank you for your contribution.
Before submitting this PR, please make sure:
Summary by CodeRabbit