Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GuOrg/Gu.Wpf.Geometry
https://github.com/GuOrg/Gu.Wpf.Geometry
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/GuOrg/Gu.Wpf.Geometry
- Owner: GuOrg
- License: mit
- Created: 2015-09-18T12:27:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-25T21:01:13.000Z (9 months ago)
- Last Synced: 2024-08-31T18:45:51.994Z (6 months ago)
- Language: C#
- Size: 2.89 MB
- Stars: 163
- Watchers: 14
- Forks: 26
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wpf - Gu.Wpf.Geometry - (FREE, OPEN SOURCE) Small library with WPF geometries and shaders. (UI Controls / Individual Controls)
README
# Gu.Wpf.Geometry
[](LICENSE.md)
[](https://gitter.im/GuOrg/Gu.Wpf.Geometry?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://www.nuget.org/packages/Gu.Wpf.Geometry/)
[](https://ci.appveyor.com/project/JohanLarsson/gu-wpf-geometry)
[](https://dev.azure.com/guorg/Gu.Wpf.Geometry/_build/latest?definitionId=6&branchName=master)
[](https://github.com/GuOrg/Gu.Wpf.Geometry/actions/workflows/ci.yml)Small library with WPF geometries and shaders.
# Contents
- [Geometries](#geometries)
- [Balloon](#balloon)
- [BoxBalloon](#boxballoon)
- [Simple](#simple)
- [ConnectorAngle](#connectorangle)
- [ConnectorOffset](#connectoroffset)
- [With PlacementTarget](#with-placementtarget)
- [PlacementTarget](#placementtarget)
- [PlacementOptions](#placementoptions)
- [EllipseBalloon](#ellipseballoon)
- [GradientPath](#gradientpath)
- [Controls](#controls)
- [Zoombox](#zoombox)
- [Effects](#effects)
- [DesaturateEffect](#desaturateeffect)
- [FadeEffect](#fadeeffect)
- [MaskEffect](#maskeffect)
- [AngularGradientEffect](#angulargradienteffect)
- [HsvWheelEffect](#hsvwheeleffect)
- [HslWheelEffect](#hslwheeleffect)# Geometries
## Balloon
A `ContentControl`for showing balloons.Note: WPF Popup clips to bounds so the connector will be clipped when used in a popup.
```
```

## BoxBalloon
Draws a border with a connector.
Note: the connector is drawn outside the bounds of the element.##### Simple
```xaml
```
##### ConnectorAngle
##### ConnectorOffset

##### With PlacementTarget
```xaml
Auto
Auto 5
Auto -5
Center
Center 5
Center -5
Top Left
Top Center
Top Right
Bottom Left
Bottom Center
Bottom Right
Auto Center
Auto Left
Auto Right
Auto Top
Auto Bottom
```

##### With PlacementRectangle
```xaml
Auto
Auto 5
Auto -5
Center
Center 5
Center -5
Top Left
Top Center
Top Right
Bottom Left
Bottom Center
Bottom Right
Auto Center
Auto Left
Auto Right
Auto Top
Auto Bottom
```

##### With PlacementRectangle and PlacementTarget
```xaml
Auto
Auto 5
Auto -5
Center
Center 5
Center -5
Top Left
Top Center
Top Right
Bottom Left
Bottom Center
Bottom Right
Auto Center
Auto Left
Auto Right
Auto Top
Auto Bottom
```

##### PlacementTarget
The UIElement to connect the balloon to.##### PlacementRectangle
The rectangle to connect the balloon to. If used with PlacementTarget, the rectangle coordinates are relative to it. If used alone, the coordinates are relative to the parent UIElement.##### PlacementOptions
Where on the connected element the connector should be attached.In xaml either input a string ``
Or use the `PlacementOptionsExtension`:
```xaml```
## EllipseBalloon
Same API as BoxBalloon but renders:

## GradientPath
Based on [this blog post](http://www.charlespetzold.com/blog/2009/02/Graphical-Paths-with-Gradient-Colors.html)
```xaml
```
# Controls
## Zoombox
Panel for zooming & panning. Handles touch but IsManipulationEnabled has default value `false` meaning no touch.
```xaml
```
# Effects
A collection of pixel shaders.## DesaturateEffect
Desaturate an image, brush or WPF controls. It has only one property `Strength` 0 means the effect does nothing and 1 means a grayscale image is returned.```xaml
```
## FadeEffect
Fade an image to a colour.```xaml
```
## MaskEffect
Render an image as a selection mask.```xaml
```
## AngularGradientEffect
A gradient that changes value along the angle. Perhaps useful for spinners.
Replaces the pixels of the owning element. The owning element must have a `Brush` set the brush can be any color that is not transparent.### StartAngle
The angle for the `StartColor` -360 - 360 degrees, positive clockwise. Zero at 12 o'clock.### CentralAngle
The anglular extent of the gradient -360 - 360 degrees, positive clockwise.### CenterPoint
The center point of the gradient (0, 0) - (1, 1) default is (0.5, 0.5) fore a gradient around the center.```xaml
```

## HsvWheelEffect
A gradient that changes value along the angle. Perhaps useful for colour pickers.
Note that the element must have a background or fill. The brush can be any colour.```xaml
```
## HslWheelEffect
A gradient that changes value along the angle. Perhaps useful for colour pickers.
Note that the element must have a background or fill. The brush can be any colour.
Same API as HsvWheelEffect