AmazingPullToRefresh
AmazingPullToRefresh copied to clipboard
Issue when having a Textbox(UWP10)
I have the issue that the indicator is displayed in the first textbox when having a textbox control in xaml.
Could you show your implementation?
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<ScrollViewer VerticalScrollMode="Enabled" HorizontalScrollMode="Disabled">
<Grid>
<StackPanel Width="360">
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<RichEditBox Height="50"/>
<TextBox Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
<TextBlock Text="txt" Height="50"/>
</StackPanel>
</Grid>
<uwp:PullToRefreshAdorner.Extender>
<uwp:PullToRefreshExtender>
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="RefreshRequested">
<Core:InvokeCommandAction Command="{Binding PullToRefreshCommand}" CommandParameter="{Binding RefreshRequestedEventArgs}"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</uwp:PullToRefreshExtender>
</uwp:PullToRefreshAdorner.Extender>
</ScrollViewer>
</Grid>
I did add some code in the control.
In target view loaded i added
if (sender.GetType() == typeof(ScrollViewer)) UpdateProperties((ScrollViewer)sender);