가능한 중복 : 어떤 이유로 WPF와 함께 제공되는
MessageBox
를 들어
WPF MessageBox window styleWPF MessageBox를 더 잘 보이게하는 방법을 아는 사람이 있습니까?
가 비활성화 시각적 스타일을 가지고 있으며, 윈도우가 양식에 나는 그들에 turne 수있는 방법을 찾을 수 없습니다 프로그램 시작시 Application.EnableVisualStyles()
으로 전화를 걸었을 때의 문제였습니다.
System.Windows.Forms.Application.EnableVisualStyles();
System.Windows.Forms.MessageBox.Show(
"Windows Forms Dialog",
"Message Box Test",
System.Windows.Forms.MessageBoxButtons.OK,
System.Windows.Forms.MessageBoxIcon.Asterisk);
System.Windows.MessageBox.Show(
"WPF Dialog",
"Message Box Test",
System.Windows.MessageBoxButton.OK,
System.Windows.MessageBoxImage.Asterisk);
에는 WPF에 대한 영향을주지 System.Windows.Forms.Application.EnableVisualStyles()
를 호출하지 않습니다.
Extended WPF Toolkit에는 멋진 구현이 있지만 사용자가 실행중인 운영 체제와 일치하는 메시지 상자를 만드는 방법을 찾고 있습니다. 모든 운영 체제에서 동일한 스타일을 원한다면 EWPFT 구현이 환상적입니다.
는
(임의의 버튼 텍스트를 가지고, 예를 들어)은 그 모두보다 더 낫 네요, 그리고 더 많은 옵션이 있습니다 왜 내가 왜 검색 결과에서 그것을 보지 못했는지 확실하지 않다. –
문제 없습니다. 나는 "wpf messagebox manifest"를 검색 할 줄 압니다. –