-
-
Notifications
You must be signed in to change notification settings - Fork 234
Home
Miroiu Emanuel edited this page Oct 7, 2020
·
11 revisions
Nodify is a WPF control library that offers the base controls needed for a node based editor.
Install-Package Nodify
Declare the namespace: xmlns:nodify="http://miroiu.github.io/winfx/xaml/nodify"
Use the following XAML:
<nodify:NodifyEditor>
<nodify:Node Header="My node"
nodify:ItemContainer.LocationOverride="100 100" />
<nodify:Node Header="My other node"
nodify:ItemContainer.LocationOverride="200 100" />
<nodify:GroupingNode Header="Grouping node"
Width="300"
Height="150"
nodify:ItemContainer.LocationOverride="50 50" />
<nodify:KnotNode nodify:ItemContainer.LocationOverride="400 100" />
</nodify:NodifyEditor>
Merge one of the following dictionaries in your application's resources to change the theme:
Dark
theme (default if not specified):
<ResourceDictionary Source="pack://application:,,,/Nodify;component/Themes/Dark.xaml" />
Light
theme:
<ResourceDictionary Source="pack://application:,,,/Nodify;component/Themes/Light.xaml" />
If you see this, then we're good to go: