-
Notifications
You must be signed in to change notification settings - Fork 65
Add the generic variant for NControlViewRenderer #48
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
base: develop
Are you sure you want to change the base?
Conversation
|
Thanks for the PR, the problem with this one is that it contains no changes to the Windows code, would you be able to take a look at this and see if you can update? |
|
Sure, not sure how I missed that :( |
This will ease re-use for controls that inherit from NControlView, by providing direct access to the rendered class, in case it's different than NControlView, without having to cast it manually.
|
@chrfalch Done |
|
Hi Timotei, Could you please provide a short explanation with code samples telling me Chris On Sat, Feb 20, 2016 at 6:19 PM, Timotei Dolean [email protected]
|
|
I can do a sample if you want, not sure it will help much given the nature of the change. Basically, the reason for this is to simplify the code when implementing renderers for NControlView-based controls. When you have custom controls that inherit from NControlView, and you want to do the renderers, you need to cast the element to the actual wanted element. With the generic variant no cast is needed as we're 100% sure which type it is :) |
|
This sounds like a reasonable plan. Will take a look an evaluate the PR Chris On Sun, Feb 21, 2016 at 11:33 PM, Timotei Dolean [email protected]
|
|
(No need for a sample, I understand your use case). On Mon, Feb 22, 2016 at 10:39 AM, Christian Falch <[email protected]
|
|
Hi, sorry for the delay with this PR; Wouldn't this change the behavior for existing renderers and controls, i.e. it is not backwards compatible? |
|
Hi. Nope, it's backwards compatible. |
This will ease re-use for controls that inherit
from NControlView, by providing direct access
to the rendered class, in case it's different
than NControlView, without having to cast it manually.