xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.9k stars 878 forks source link

ComboBox ListItem Magnifier Issue in WPF .NET Framework #1786

Open imtarangp opened 1 month ago

imtarangp commented 1 month ago

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