.net - Animate objects of type `dynamic`in c# -
.net - Animate objects of type `dynamic`in c# -
so passing window dll receive object of type dynamic
dynamic thewindow = ...;
i need animate property of window, tried following:
thewindow.beginanimation(thewindow.leftproperty, _leftanimation);
but doesnt work. step took check if can access thewindow.leftproperty
next exception:
microsoft.csharp.runtimebinder.runtimebinderexception: fellow member 'system.windows.window.leftproperty' cannot accessed instance reference; qualify type name instead @ callsite.target(closure , callsite , object ) @ system.dynamic.updatedelegates.updateandexecute1[t0,tret](callsite site, t0 arg0) @ blablabla ...
it says 'qualify type name instead' have no thought means...
however attributes accessible , work expected:
thewindow.maxwidth = thewindow.width + 108;
thanks help.
window.leftproperty
static method , can't accessed dynamically. try
thewindow.beginanimation(window.leftproperty, _leftanimation);
c# .net dll
Comments
Post a Comment