UserControlResources viewmodelsMyDragHandler xKey=MyDragHandlerviewmodelsMyDragHandler viewmodelsMyDropHandler xKey=MyDropHandlerviewmodelsMyDropHandler UserControlResources
This code snippet defines two resources within the <UserControl.Resources> section:
-
<viewmodels:MyDragHandler x:Key="MyDragHandler"></viewmodels:MyDragHandler>: This defines a resource with the key "MyDragHandler" of typeMyDragHandlerfrom the "viewmodels" namespace. This resource can be accessed and used elsewhere in the UserControl. -
<viewmodels:MyDropHandler x:Key="MyDropHandler"></viewmodels:MyDropHandler>: This defines a resource with the key "MyDropHandler" of typeMyDropHandlerfrom the "viewmodels" namespace. Similar to the first resource, this can also be accessed and used in other parts of the UserControl
原文地址: https://www.cveoy.top/t/topic/iLGT 著作权归作者所有。请勿转载和采集!