첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

■ ToolBar 클래스에서 오버플로우 패널을 숨기는 방법을 보여준다.

 

▶ 예제 코드 (C#)

using System.Windows;
using System.Windows.Controls;

private ToolBar toolBar;

...

Grid overflowGrid = this.toolBar.Template.FindName("OverflowGrid", this.toolBar) as Grid;

if(overflowGrid != null)
{
    overflowGrid.Visibility = Visibility.Collapsed;
}

※ 컨트롤 로드 후 실행해야 한다.

728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요