■ 첫번째 LayoutAnchorGroup 객체를 찾는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
using Xceed.Wpf.AvalonDock.Layout; #region 첫번째 LayoutAnchorGroup 찾기 - FindFirstLayoutAnchorGroup(layoutAnchorSide) /// <summary> /// 첫번째 LayoutAnchorGroup 찾기 /// </summary> /// <param name="layoutAnchorGroup">LayoutAnchorSide</param> /// <returns>LayoutAnchorGroup</returns> public LayoutAnchorGroup FindFirstLayoutAnchorGroup(LayoutAnchorSide layoutAnchorSide) { foreach(LayoutAnchorGroup layoutAnchorGroup in layoutAnchorSide.Children) { return layoutAnchorGroup; } return null; } #endregion |