PullToReload issue

I realise this is not totally the intended way of using PullToReload, but should be doable?

See below sandbox code. Main screen (green) opens a fullscreen scrollable “modal” (yellow) which is closed by pulling out of bounds through PullToReload.

This works first time. But second time you open the same modal, it seems to be stuck on Loading state and therefor doesn’t trigger to close the same way as first.


<Panel Color="Green">

<ScrollView ux:Name="closeable" Width="100%" Height="100%" Visibility="Hidden">

<PullToReload ux:Name="PTR">
<State ux:Binding="Pulling">
<Set Status.Value="Pulling" />
<State ux:Binding="PulledPastThreshold">
<Set Status.Value="PulledPastThreshold" />
<Set closeable.Visibility="Hidden" />
<State ux:Binding="Loading">
<Set Status.Value="Loading" />
<State ux:Binding="Rest">
<Set Status.Value="Rest" />

<Panel Color="Yellow" Width="100%" Height="100%">
<Text ux:Name="Status" Alignment="Center" />

<Button Text="Open">
<Set closeable.Visibility="Visible" />



Hi Znoopykid,

I recalled that recently we built something similar in this thread. I then took the same concept and added a Scrolled trigger to it, et voila :

        <StatusBarBackground Dock="Top" />
        <BottomBarBackground Dock="Bottom" />
            <DockPanel Height="80%" Color="#faa" Alignment="Bottom" Anchor="50%,height(bottomReaderHeader)">

                <Translation ux:Name="bottomReaderTrans" Y="0" RelativeTo="Size" RelativeNode="bottomReaderContent" />

                <WhileTrue ux:Name="expanded">
                    <Change bottomReaderTrans.Y="-1" Duration="0.36" Easing="CubicInOut" />

                <Panel ux:Name="bottomReaderHeader" Dock="Top" Color="#aaf" Height="96">
                        <DebugAction Message="Clicked!" />
                        <Toggle Target="expanded" />

                    <SwipeGesture ux:Name="swipeUpReader" Direction="Up" Length="50" Type="Simple" />
                    <SwipeGesture ux:Name="swipeDownReader" Direction="Down" Length="50" Type="Simple" />

                    <Swiped Source="swipeUpReader">
                        <DebugAction Message="Swiped UP!" />
                        <Set expanded.Value="true" />
                    <Swiped Source="swipeDownReader">
                        <DebugAction Message="Swiped DOWN!" />
                        <Set expanded.Value="false" />

                <ScrollView ux:Name="bottomReaderContent">
                    <Scrolled To="Start" Within="-80">
                        <DebugAction Message="Scrolled too far down!" />
                        <Set expanded.Value="false" />
                    <StackPanel ItemSpacing="1">
                        <Each Count="30">
                            <Panel Height="56" Color="#fffa" />


Thanks tons for the quick reply!

Very elegant solution, and above and beyond what I needed.