AmazingPullToRefresh icon indicating copy to clipboard operation
AmazingPullToRefresh copied to clipboard

Issue when having a Textbox(UWP10)

Open alisio92 opened this issue 9 years ago • 2 comments

I have the issue that the indicator is displayed in the first textbox when having a textbox control in xaml.

alisio92 avatar May 09 '16 10:05 alisio92

Could you show your implementation?

tmyt avatar May 09 '16 13:05 tmyt

<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);

alisio92 avatar May 09 '16 15:05 alisio92