ComboBox ListItem Magnifier Issue in WPF .NET Framework

Open
#1,786 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

Start with the Xceed.Wpf.Toolkit Magnifier and the provided WPF XAML containing MagnifierManager.Magnifier and the dynamically loaded ComboBox. Reproduce the issue with ComboBox list items, then determine what is needed for their content to display and magnify consistently; done means the list content is correctly zoomed during interaction.

Written by the indexing model from the issue text.

Description

We are experiencing an issue with the Magnifier functionality provided by the Xceed.Wpf.Toolkit library in a WPF project. The problem occurs when a ComboBox is used, and its data is loaded dynamically. Specifically, when the magnifier interacts with the ComboBox’s list items, the content does not display or magnify correctly as expected.

xmlns:wpfx="http://schemas.xceed.com/wpf/xaml/toolkit"

<!-- Viewbox with Magnifier -->
<wpfx:MagnifierManager.Magnifier>
    <wpfx:Magnifier BorderBrush="Red"
                    BorderThickness="1"
                    FrameType="Rectangle"
                    ZoomFactor=".4"
                    Padding="490, 362, 300, 300"
                    Width="300"
                    Height="300"
                    Visibility="{DynamicResource MagnifierVisibility}" />
</wpfx:MagnifierManager.Magnifier>

<!-- ComboBox with Dynamic Data -->
<ComboBox x:Name="paperSizeDropdown_All"
          Width="{DynamicResource Combobox_Width}"
          Height="{DynamicResource Combobox_Height}"
          SelectionChanged="paperSizeDropdown_All_SelectionChanged" />

Issue:

When the magnifier is applied over the dynamically loaded ComboBox list items, it seems to either:

Not magnify the ComboBox list content as expected.
The interaction between the magnifier and the ComboBox is inconsistent (e.g., the content not properly zoomed).

Screenshot 2024-10-24 163258

Dominant language
C#
Stars
4.2k
Forks
912
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xceedsoftware/wpftoolkit

All issues in xceedsoftware/wpftoolkit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.