我做出了将图像传输到ViewModel属性的行为。当用户с舔到元素时,库将打开。当用户从图片库中选择某个图像时,我的ImageBytes将有该图像的字节。但是,在我为该属性分配了一个新值之后,它不会传递给我的VM。 public class FolderDialogBehavior : Behavior<View> public byte[] ImageBytes get { return (byte[])GetValue(ImageBytesProperty); }
ASDoc不记录 public Bindable 值,除非Bindable标记具有与其关联的事件名。例如:[Bindable("someEvent")]* public bindable with event name
* */Bindable标记。简单的解决方案似乎是,当您声明某件事情为Bindable时,应该指定一个事件名。但是如果您用Binda