Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm developing a wpf project, that requires a screen to have floating control panel on one side of it.

* Using .net Framework 4.0
* Wpf Application.
* A Page control in navFrame.
* Page divide into two columns * & 100.
* Column[0] Contains main data and has scroll bar with it.
* I want my control panel which is in Column[1] to float vertically when mouse scrolling is performed.

I've tried using dock panel &/ stack panel but couldn't get it.

Hope I can get some suggestions. =

----------------------

Thanks
Abhishek.
Posted

1 solution

don't place your control panel into grid with scrolling, show it in the separate grid or maybe canvas over the underlying scrollable content, something of this kind:
HTML
<grid>
  <grid>
    <scrollviewer> <!-- your big data here -->
    </scrollviewer>
  </grid>
  <grid> <!-- your fixed control panel here -->
    <textblock text="fixed text" />
  </grid>
</grid>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900