相关疑难解决方法(0)

如何从属性=某个值的UIElementCollection中选择一个子节点?

我有UniformGrid一些ButtonChildren.每个Button都有一个TagID,例如(dumbed down代码):

MyUniformGrid.Children.Add(new Button {
    Margin  = new Thickness(5),
    Tag     = Query.GetUInt32("id"),
    Width   = 200
});
Run Code Online (Sandbox Code Playgroud)

如何选择ButtonID为87 的子对象?(例如)

当我输入MyUniformGrid.Children.(添加后using System.Linq;)时,Intellisense没有弹出Linq方法.

c# linq children uielementcollection

5
推荐指数
1
解决办法
2136
查看次数

标签 统计

c# ×1

children ×1

linq ×1

uielementcollection ×1