ControlAddIn/usercontrol in page loses its actual type when referenced in a pageextension, breaking passing to procs #7107
Labels
accepted
al-core-compiler
al-language
ships-in-future-update
The issue is fixed in our 'master' branch and will ship in the next PREVIEW release
If we have a base
page
that declares ausercontrol
of a specificControlAddIn
type, and in apageextension
we try to use that control e.g. to pass it to a function expecting aControlAddIn
of that type - this is broken. Thepageextension
loses the actual type.This code:
Gives this error:
Of which full copy:
Shouldn't this Just Work, i.e. code in the
pageextension
should have access to theusercontrol
/ControlAddIn
with its real type? Rather than only knowing it's some kind ofusercontrol
but not being able to do anything much with it.Thanks!
The text was updated successfully, but these errors were encountered: