请帮我在c#中使用setter 像这样:
Setter set = new Setter();
set.Target = image.Width;
答案 0 :(得分:0)
这是如何为image.width
实现setter Setter setter1 = new Setter
{
Property = Image.WidthProperty,
Value = 123,
};
或/和
var setter2 = new Setter(Image.WidthProperty, 123);
编辑:我手写抱歉