I have a graph inside zoom control (from WpfExtensions- https://wpfextensions.codeplex.com/) in desktop application. The default location of the control is top left.I want to change the location to bottom left. Update
Asked
Active
Viewed 411 times
0
-
What exactly wpf extension library do you mean? Can you provide some xaml? – Sam May 31 '16 at 10:27
-
@Sam I've updated the questions. – xyz May 31 '16 at 11:01
-
"The default location of the control is top left" - do you mean zoom slider and buttons? – Sam May 31 '16 at 11:28
-
yes I mean zoom slider and buttons – xyz May 31 '16 at 12:11
1 Answers
0
You can't simply setup zooming controls (slider and buttons) position from outside - physically it is just Border
inside Canvas
with hard-coded position:
Canvas.Left="20"
Canvas.Top="20"
And I didn't succeed to replace ZoomControl
template with new position inside target solution (without modifying ZoomControl
source code) - it change position but stop working properly.
So the only way (worked for me) is to download source code from codeplex and change position inside WPFExtensions -> Themes -> Generic.xaml (lines 27 and 28) to:
Canvas.Left="20"
Canvas.Bottom="20"
Then compile and replace WPFExtensions.dll in your solution.

Sam
- 1,384
- 2
- 20
- 30