Won't Fix
Last Updated: 15 Jan 2016 12:40 by ADMIN
ADMIN
Rosen Vladimirov
Created on: 27 May 2014 07:12
Category: UI for Silverlight
Type: Bug Report
0
PopupExtensions don't place Popup correctly when Browser is zoomed and parent element (for Popup) has margin.
If you are using PopupExtensions for Silverlight to set Placement of the Popup and you zoom your browser, the Popup will not be on the correct position if the element in which you've defined the Popup has Margin set.
1 comment
ADMIN
Rosen Vladimirov
Posted on: 27 May 2014 07:12
There is an easy workaround - define the Popup in an element that doesn't have Margin, for example:

<Grid>
    <Popup x:Name="NotificationsPopup"
            telerik:PopupExtensions.IsOpen="{Binding IsPopupOpened, Mode=TwoWay}"
            telerik:PopupExtensions.StaysOpen="False"
            telerik:PopupExtensions.Owner="{Binding ElementName=PopupTargetButton}"
            telerik:PopupExtensions.Placement="Top"
            telerik:PopupExtensions.PlacementTarget="{Binding ElementName=PopupTargetButton}">
        <Grid Background="Khaki" Height="30" Width="230">
            <TextBlock VerticalAlignment="Stretch"
                    HorizontalAlignment="Stretch"
                    FontSize="20"
                    Text="Popup text goes here."/>
        </Grid>
    </Popup>
    <Grid x:Name="LayoutRoot" Background="AliceBlue" Margin="40">
        <Button Content="Open Popup" x:Name="PopupTargetButton" Click="PopupTargetButton_Click" Width="100" Height="40"/>
    </Grid>
</Grid>