c# - Binding to a drawingVisual element -
how can set binding dependency property belongs drawingvisual element in code ?
for dependency property belongs frameworkelement have called elem.setbinding(...) not have function in drawingvisual class.
the frameworkelement class , frameworkcontentelement class both expose setbinding method. drawingvisual not inherit either of these not have method.
from msdn:
drawingvisual lightweight drawing class used render shapes, images, or text. class considered lightweight because not provide layout, input, focus, or event handling, improves performance. reason, drawings ideal backgrounds , clip art.
so intentionally (no event handling), keep fast.
Comments
Post a Comment