更新时间:2023-11-30 15:39:16
Canvas.Left是一个附加依赖项属性的示例。 C#的语法为:
The "Canvas.Left" is an example of attached dependency property. The syntax for the C# is:
Canvas.SetLeft(myStackPanel, 50);
myStackPanel是必须在xaml中使用x.Name分配的任何自定义名称。
Where myStackPanel is any custom name you must assign using x.Name in the xaml.