diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-06-06 12:41:34 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-06-06 12:41:34 +0300 |
| commit | 00ac5cb8672a36adb0df0cf371fb9683bcdb9428 (patch) | |
| tree | 0badfee10a7a9287bde42a513c09eb2c4cfd922d /Software/Visual_Studio/TEMP/Tango.Graphics2D | |
| parent | c9a36d125d4a6cc6d11045e7236f5e627221af14 (diff) | |
| download | Tango-00ac5cb8672a36adb0df0cf371fb9683bcdb9428.tar.gz Tango-00ac5cb8672a36adb0df0cf371fb9683bcdb9428.zip | |
Redundant.
Diffstat (limited to 'Software/Visual_Studio/TEMP/Tango.Graphics2D')
| -rw-r--r-- | Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DHost.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DHost.cs b/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DHost.cs index 9574b4082..05fa0a651 100644 --- a/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DHost.cs +++ b/Software/Visual_Studio/TEMP/Tango.Graphics2D/Drawing2DHost.cs @@ -120,7 +120,7 @@ namespace Tango.Graphics2D private HitTestResultBehavior MouseDownCallback(HitTestResult result) { - if (result.VisualHit.GetType() == typeof(System.Windows.Media.DrawingVisual)) + if (result.VisualHit.GetType() == typeof(DrawingVisual)) { var visual = result.VisualHit as DrawingVisual; @@ -139,7 +139,6 @@ namespace Tango.Graphics2D } } - // Stop the hit test enumeration of objects in the visual tree. return HitTestResultBehavior.Stop; } @@ -156,7 +155,7 @@ namespace Tango.Graphics2D private HitTestResultBehavior MouseUpCallback(HitTestResult result) { - if (result.VisualHit.GetType() == typeof(System.Windows.Media.DrawingVisual)) + if (result.VisualHit.GetType() == typeof(DrawingVisual)) { var visual = result.VisualHit as DrawingVisual; @@ -175,7 +174,6 @@ namespace Tango.Graphics2D } } - // Stop the hit test enumeration of objects in the visual tree. return HitTestResultBehavior.Stop; } @@ -189,7 +187,7 @@ namespace Tango.Graphics2D private HitTestResultBehavior MouseMoveCallback(HitTestResult result) { - if (result.VisualHit.GetType() == typeof(System.Windows.Media.DrawingVisual)) + if (result.VisualHit.GetType() == typeof(DrawingVisual)) { var visual = result.VisualHit as DrawingVisual; @@ -228,7 +226,6 @@ namespace Tango.Graphics2D } } - // Stop the hit test enumeration of objects in the visual tree. return HitTestResultBehavior.Stop; } @@ -291,9 +288,7 @@ namespace Tango.Graphics2D { var context = visual.RenderOpen(); - IVisualBinder binder = null; - - if (!_binders.TryGetValue(element.GetType(), out binder)) + if (!_binders.TryGetValue(element.GetType(), out IVisualBinder binder)) { throw new InvalidOperationException($"No visual binder is registered for element type '{element.GetType()}'"); } |
