This is a migrated thread and some comments may be shown as answers.

RadModalWindow's IsClosedOnOutsideTap not working inside the Pivot

3 Answers 18 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
V
Top achievements
Rank 1
V asked on 21 Nov 2013, 10:48 AM
Hi there.

RadModalWindow's IsClosedOnOutsideTap is not working when there is Pivot on the page and WindowSizeMode="FitToPlacementTarget" is set.

I've drawn a pic which will help you to understand the bug: https://www.dropbox.com/s/p01cgwzktph57uo/Hit%20area.png
Tapping inside the red area will close the window, but if you will tap inside the blue area window wouldn't be closed.

Sample project is here: https://www.dropbox.com/s/ivbtyqkg62e0gzg/Telerik.zip

3 Answers, 1 is accepted

Sort by
0
V
Top achievements
Rank 1
answered on 21 Nov 2013, 10:51 AM
Ooops, looks like its not a Pivot-related thing.

Bug appears even on a simple page:
<Grid x:Name="ContentPanel"
      Grid.Row="1"
      Margin="12,0,12,0">
 
    <Button Content="Show modal window"
            Height="100"
            Click="ButtonClick" />
 
</Grid>
0
V
Top achievements
Rank 1
answered on 22 Nov 2013, 03:53 AM
I've figured out source of this issue.

It appears when WindowSizeMode is set to 'FitToPlacementTarget' OR when IsFullScreen set to true.
Not sure why Modal Window is having fullscreen property especially when it's bugging window's hit-test behaviour :-)
0
Deyan
Telerik team
answered on 22 Nov 2013, 08:17 AM
Hi,

This actually sounds like being the expected behavior.

If you are full-screen tapping anywhere on the screen will result in the Modal Window receiving the tap, not the element behind.

If you are fitting to the placement target and your placement target is the root-most element, you will get the same behavior as well since you basically fit to the element that takes the screensize.

I hope this helps.

Regards,
Deyan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Window
Asked by
V
Top achievements
Rank 1
Answers by
V
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or