# Can i bind separated ScrollView and PageControl?

**URL:** https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507
**Category:** How-to Discussions
**Created:** [January 11, 2017, 7:56am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507 "2017-01-11T07:56:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Junseok\_Kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/junseok_kim/32/492_2.png) [@Junseok\_Kim](https://forums.fusetools.com/u/Junseok_Kim)
#### Post date: [January 11, 2017, 7:56am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507/1 "2017-01-11T07:56:38Z")

</div>

For example,

````auto
  <ClientPanel>
    <DockPanel>
      <PageControl ux:Name="PageControl" Active="page1" Height="50%" Dock="Top">
        <Page Name="page1" Background="#00f">
          <ActivatingAnimation>
            <ScrollTo Target="ScrollView" Position="0,0"/>
          </ActivatingAnimation>
        </Page>
        <Page Name="page2" Background="#0f0">
          <ActivatingAnimation>
            <ScrollTo Target="ScrollView" Position="0,1000"/>
          </ActivatingAnimation>
        </Page>
        <Page Name="page3" Background="#f00">
          <ActivatingAnimation>
            <ScrollTo Target="ScrollView" Position="0,2000"/>
          </ActivatingAnimation>
        </Page>
      </PageControl>
      <ScrollView ux:Name="ScrollView" Height="50%" Dock="Bottom">
        <StackPanel Background="#000">
          <Grid>
            <Each Count="300">
              <Rectangle Height="200" Background="#fff" Margin="0,0,0,10"/>
            </Each>
          </Grid>
        </StackPanel>
        <ScrollingAnimation From="0" To="1000">
          <Set PageControl.Active="page1"/>
        </ScrollingAnimation>
        <ScrollingAnimation From="1000" To="2000">
          <Set PageControl.Active="page2"/>
        </ScrollingAnimation>
        <ScrollingAnimation From="2000" To="3000">
          <Set PageControl.Active="page3"/>
        </ScrollingAnimation>
      </ScrollView>
    </DockPanel>
  </ClientPanel>
</App>```

This code have conflict `Set active page` with `ScrollTo`.
````

---

<div class="post-metadata">

### Author: ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)
#### Post date: [January 11, 2017, 7:59am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507/2 "2017-01-11T07:59:40Z")

</div>

Hi,

I don’t see any problems here. Can you please provide a more complete description of the problem, as in error mesages, screenshots, expected behavior etc?

---

<div class="post-metadata">

### Author: ![Junseok\_Kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/junseok_kim/32/492_2.png) [@Junseok\_Kim](https://forums.fusetools.com/u/Junseok_Kim)
#### Post date: [January 11, 2017, 8:05am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507/3 "2017-01-11T08:05:57Z")

</div>

> **Anders Lassen wrote:**
> 
> Hi,
> 
> I don’t see any problems here. Can you please provide a more complete description of the problem, as in error mesages, screenshots, expected behavior etc?

Yeah, this code doesn’t have problem. When scrolling over 1000, PageControl shows page2. But it goes back to page1 because `ActivatingAnimation`.

---

<div class="post-metadata">

### Author: ![Junseok\_Kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/junseok_kim/32/492_2.png) [@Junseok\_Kim](https://forums.fusetools.com/u/Junseok_Kim)
#### Post date: [January 11, 2017, 8:12am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507/4 "2017-01-11T08:12:38Z")

</div>

Like this clip.  
https://player.vimeo.com/video/198960722?app_id=122963

---

<div class="post-metadata">

### Author: ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)
#### Post date: [January 11, 2017, 8:25am UTC](https://forums.fusetools.com/t/can-i-bind-separated-scrollview-and-pagecontrol/3507/5 "2017-01-11T08:25:29Z")

</div>

Apologies, but I still don’t fully understand what the question/problem is.

Tip: Try using `Activated` instead of `ActivatingAnimation`
