c# - Get Name of ScatterviewItem in a Scatterview with binding -
i started program microsoft surface , have problem.
i'm using scatterview
<s:scatterview name="mainscatterview" contactleave="mainscatterview_contactleave" contactenter="mainscatterview_contactenter"> <s:scatterview.itemtemplate> <datatemplate> <image name="picture" source="{binding}"/> </datatemplate> </s:scatterview.itemtemplate> </s:scatterview> protected override void oninitialized(eventargs e) { base.oninitialized(e); try { mainscatterview.itemssource = system.io.directory.getfiles(@"c:\surface_app_dam\img\", "*.png"); } catch (system.io.directorynotfoundexception) { // handle exception needed. } }
i name of item i've moved "contactleave="mainscatterview_contactleave", don't know how can that.
could me please?
thank you.
private void mainscatterview_previewcontactup(object sender, contacteventargs e) { if (e.getposition(this).x < 100 && (coordinates.height - e.getposition(this).y) < 100) { string file = e.originalsource.tostring(); usernotifications.requestnotification("notification previewcontactup", file, timespan.fromseconds(2)); } }
Comments
Post a Comment