c# - Apply datatemplate to custom object? -
assuming have class derived shape. i'm looking way how implement support binding datatemplate. datatemplate looking this:
<datatemplate> <grid x:name="grid"> <path x:name="path" data="f1 m 0.0692474,6.76634c -2.5902,6.76634 -4.91351,8.20551 -6.16436,10.3475l 0.0665311,-10.3179l 6.29167,10.3284c 5.03818,8.19696 2.72079,6.76634 0.0692474,6.76634 z " /> </grid> </datatemplate> it's clear me how apply datatemplate controls, such buttons, textboxs, listviews , on.
the templatepartattribute like. see tutorial info on how write custom control supports templating , see how can mix shape in there.
Comments
Post a Comment