-4
나는 다음과 같은 몇 가지 WPF 창을 만드는거야 :WPF 창을 닫는 방법?
flightWindow = new FlightWindow(txbNextFlight.Text, airline);
flightWindow.Show();
을 그리고 난 창을 닫으려는이 창 내부의 버튼을 클릭 할 때. 이 문제를 해결하는 방법을 모르십니까?
나는 다음과 같은 몇 가지 WPF 창을 만드는거야 :WPF 창을 닫는 방법?
flightWindow = new FlightWindow(txbNextFlight.Text, airline);
flightWindow.Show();
을 그리고 난 창을 닫으려는이 창 내부의 버튼을 클릭 할 때. 이 문제를 해결하는 방법을 모르십니까?
using System;
using System.Windows;
namespace WpfApplication1
{
public partial class FlightWindow : Window
{
public FlightWindow()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
}
}
작동 중! 도와 주셔서 감사합니다! –
왜 downvote?! –
아마도 제목이 전혀 의미가 없기 때문에 아마도 그 질문은별로 좋지 않습니다. –
제목에 "close"라는 단어가 누락되었습니다! –