xyz
xyz

Reputation: 782

change the location of zoom control from wpf extension

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

Upvotes: 0

Views: 428

Answers (1)

Sam
Sam

Reputation: 1424

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.

Upvotes: 0

Related Questions