-
Notifications
You must be signed in to change notification settings - Fork 1
Type wrapper
Nikita edited this page Jan 25, 2022
·
6 revisions
TypeWrapper
is just a convenient way to provide class type into <x:Arguments>
. Good example is the MemorizedDataTemplate
(link).
<!--...-->
<utils:MemorizedDataTemplate>
<x:Arguments>
<wrappers:TypeWrapper Type="{x:Type pages:OtherPage}"/>
</x:Arguments>
</utils:MemorizedDataTemplate>
<!--...-->
-
Type
is the desired type; -
Parent
is optional and is useful for situation described here. You should provide a reference to the existing object instance or a new one.