--EV
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Please make AddOn be a DependencyObject, not just a plain Object
Collapse
X
-
Please make AddOn be a DependencyObject, not just a plain Object
The problem with being a plain Object is that means AddOns cannot have dependency properties. I need the callback for property change that dependency properties have. Given AddOn as is I'll just have to implement a private custom callback system. It would be so much easier if AddOn was a DependencyObject so I could have dependency properties and use their existing callback mechanism. That would be the WPF way to handle the issue.
--EVLast edited by ETFVoyageur; 08-21-2015, 01:44 AM.Tags: None
-
Perhaps make AddOn be a DependencyObject, not just a plain Object?
To be clear -- this is a product question / suggestion, not a personal request. I already have my code working using C# events instead of dependency properties.
It still seems to me, though, that AddOn might want to be a DependencyObject instead of a plain Object.
- Fundamental type in WPF, and NT is a WPF app
- Enables AddOns to do things that they cannot do as is
--EVLast edited by ETFVoyageur; 08-21-2015, 01:44 AM.
-
Originally posted by NinjaTrader_Brett View PostThanks for feedback. Since Add On's can be anything we do not want to force it to be a dependency object else we would be removing part of the use case of add ons.
--EV
Comment
-
Originally posted by NinjaTrader_Brett View PostObject is the base class of all .net objects and as such is the least limiting option technically. You can always build upon Object and create your own Dependency object, thus the power of how its implemented.
Any subclass of Object, such as DependencyObject IS an Object, can be used wherever an Object is needed, and can do everything an Object can do -- and more besides.
I have no idea what you have in mind when you say "You can always build upon Object and create your own Dependency object".
--EV
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Comment