-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WI00761833 - Updates for Blazor Diagrams mouse configuration #45
Changes from 1 commit
cfa5fec
3d0517e
98da37e
09f824d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,20 @@ Diagram.UnregisterBehavior<SelectionBehavior>(); | |
Diagram.RegisterBehavior(new MySelectionBehavior(Diagram)); | ||
</code></pre> | ||
|
||
<h2>Using Different Behaviors</h2> | ||
|
||
You can use the following ways to add different behaviors to the diagram. | ||
|
||
<h3>Scroll Behavior</h3> | ||
|
||
<p>To scroll the diagram using the mouse wheel you can register the Scroll Behavior.</p> | ||
|
||
<pre><code class="language-cs"> | ||
Diagram.UnregisterBehavior<WheelBehavior>(); | ||
Diagram.RegisterBehavior(new ScrollBehavior(Diagram)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not enable scroll on wheel behavior. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated. |
||
</code></pre> | ||
|
||
|
||
<NavigationButtons PreviousLink="/documentation/diagram" | ||
PreviousTitle="Overview" | ||
NextTitle="Ordering" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Different Behaviors
seems like a duplicate of the above section,Replacing a behavior
. I think what we really want to document here is how to configure behaviors useDiagramBehaviorOptions
which is a class we added. This class allows the user to configure some of the standard behaviors to be on different inputs. This is different tousing a different behavior
/replacing a behavior
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check with Matt if not sure how
DiagramBehaviorOptions
works.