RadModalWindow's IsClosedOnOutsideTap not working inside the Pivot

4 posts, 0 answers
  1. V
    V avatar
    3 posts
    Member since:
    Nov 2013

    Posted 21 Nov 2013 Link to this post

    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
  2. V
    V avatar
    3 posts
    Member since:
    Nov 2013

    Posted 21 Nov 2013 Link to this post

    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>
  3. DevCraft banner
  4. V
    V avatar
    3 posts
    Member since:
    Nov 2013

    Posted 21 Nov 2013 Link to this post

    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 :-)
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 22 Nov 2013 Link to this post

    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 >>
Back to Top