项目作者: HMTools

项目描述 :
WPF Bounding Box for easy manipulation.
高级语言: C#
项目地址: git://github.com/HMTools/ManipulatedBBox.git
创建时间: 2019-12-04T08:33:39Z
项目社区:https://github.com/HMTools/ManipulatedBBox

开源协议:

下载


ManipulatedBBox

NuGet

About

WPF Bounding Box for easy manipulation.

Features

  • Drag & Drop
  • Resize (Corners & Edges)
  • Rotate
  • Show BoundingBox Size
  • Set Size Ratio (eg. “0.5” -> [1:2])

Note

Please add an issue on this repository, for every bug fix or additional feature that you wish I’ll add.

And I’ll try to handle it as fast as I can.

Getting Started

ManipulatedBBox is available on NuGet:

  1. Install-Package HMTools.ManipulatedBBox

Code Usage Example

  1. xmlns:bbox="clr-namespace:ManipulatedBBox;assembly=ManipulatedBBox"
  2. <Grid Background="Gray">
  3. <bbox:BBox VerticalAlignment="Bottom" HorizontalAlignment="Left"
  4. Width="200" Height="200" SizeRatio="1.5">
  5. <Polygon Points="10,110 60,10 110,110, 80, 150, 165, 250"
  6. Fill="Blue" Stretch="Fill"></Polygon>
  7. </bbox:BBox>
  8. </Grid>

ScreenShots

Easy Activate

ShowBBox

Drag And Drop

DragAndDropBBox

Rotate

RotateBBox

Resize

CornersResizeBBox
SidesResizeBBox