Update zoomcontrol.md

This commit is contained in:
Vitaliy Semianiaka
2017-02-26 09:26:26 +03:00
committed by GitHub
parent 55d7370d45
commit 349abafd25

View File

@@ -1,12 +1,12 @@
### ZoomControl usage example ### ZoomControl usage example
`DraggableExtender` for `ZoomControl`. Example: Example:
```xaml ```xaml
<bsCtrl:ZoomControl xmlns:bsCtrl="http://schemas.brightsharp.com/controls" <diag:ZoomControl xmlns:diag="http://schemas.brightsharp.com/diagrams"
xmlns:bs="http://schemas.brightsharp.com/developer"> xmlns:bs="http://schemas.brightsharp.com/developer">
<Canvas> <Canvas>
<Ellipse bs:DraggableExtender.CanDrag="true" Canvas.Left="37" Canvas.Top="110" Width="100" Height="100" Fill="Blue" /> <Ellipse Canvas.Left="37" Canvas.Top="110" Width="100" Height="100" Fill="Blue" />
<Rectangle bs:DraggableExtender.CanDrag="true" Canvas.Left="193" Canvas.Top="55" Width="100" Height="100" Fill="Black" /> <Rectangle Canvas.Left="193" Canvas.Top="55" Width="100" Height="100" Fill="Black" />
</Canvas> </Canvas>
</bsCtrl:ZoomControl> </diag:ZoomControl>
``` ```