Search

The position of ComboBox dropdown is incorrect when set it as a child of Popup with DropShadowEfffect. by WinkingZhang

Active

3
0
Sign in
to vote
Type: Bug
ID: 577252
Opened: 7/22/2010 12:33:33 AM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
I am sure it is a bug but as well as a rare case, when I edit template for ComboBox, and replace its Popup part with following content:
<Popup x:Name="Popup">
    <Border x:Name="PopupBorder"
        BorderBrush="{TemplateBinding BorderBrush}"
        BorderThickness="{TemplateBinding BorderThickness}"
        CornerRadius="3"
        HorizontalAlignment="Stretch"
        Height="Auto">
        <Border.Effect>
            <DropShadowEffect/>
        </Border.Effect>
        <Border.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                <GradientStop Color="#FFFEFEFE" Offset="1"/>
            </LinearGradientBrush>
        </Border.Background>
        <!--<ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1">
            <ItemsPresenter/>
        </ScrollViewer>-->
        <ComboBox x:Name="childCombo"/>
    </Border>
</Popup>
OK, I just wanna add DropShadowEffect for dropdown, and the dropped content is templated with a ComboBox.
When running the application, after click the dropped ComboBox, the popup position is incorrect, it's on left top, but not near the ComboBox.
Details (expand)

Product Language

English

Visual Studio Version

Silverlight 4

Operating System

Windows 7

Operating System Language

English

Steps to Reproduce

1. Build attached demo project
2. Run application, click ComboBox to make popup show.
3. Click the ComboBox in popup to let its popup shown, you can see the dropdown is incorrect position

Actual Results

When running the application, after click the dropped ComboBox, the popup position is incorrect, it's on left top, but not near the ComboBox.

Expected Results

the popup position is near the ComboBox.
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey.

 

File Attachments
File Name Submitted By Submitted On File Size  
ComboBox.zip 7/22/2010 7 KB
Sign in to post a comment.
Posted by Microsoft on 7/22/2010 at 1:36 AM
Thank you for reporting the issue.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.These specialized experts will follow-up with your issue.
Sign in to post a workaround.