https://github.com/zhaytam/easywpf
A utility library for WPF projects
https://github.com/zhaytam/easywpf
Last synced: about 1 year ago
JSON representation
A utility library for WPF projects
- Host: GitHub
- URL: https://github.com/zhaytam/easywpf
- Owner: zHaytam
- Created: 2018-02-09T20:44:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-10T13:24:30.000Z (over 8 years ago)
- Last Synced: 2025-02-12T15:53:13.604Z (over 1 year ago)
- Language: C#
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EasyWPF
EasyWPF is a utility library for WPF projects.
It provides helpful attached properties to avoid having to create a whole Converter for simple and/or specific stuff.
## Properties available for now:
- **VisibleIf** (works with a Binding or a direct value).
- **VisibleIfOption** (used by VisibleIf):
- AlwaysVisible: *Makes sure the element is always visible no matter the value.*
- HasItems: *The element is only visible when the bound collection has at least 1 item (needs VisibleIf to be bound to an ObservableCollection, it also handles the CollectionChanged event).*
- IsNull: *The element is only visible when the value is null.*
- IsNotNull: *The element is only visible when the value is not null.*
- IsGreaterThanZero: *The element is only visible when the value is greater than zero (using int.TryParse).*
- IsLessThanZero: *The element is only visible when the value is less than zero (using int.TryParse).*
- IsEqualToZero: *The element is only visible when the value is equal to zero (using int.TryParse).*
- IsDifferentThanZero: *The element is only visible when the value is different than zero (using int.TryParse).*
- **VisibleIfCollapse** (used by VisibleIf): *If set to true, the element is collapsed instead of hidden.*
## Example:
This Button will be visible as long as the property Instance is null.