for my WPF-application 내 프로젝트에 "splashscreen"을 추가하고 싶습니다. 따라서 WPF-Window를 내 응용 프로그램 ("SplashScreen")에 추가하고 속성 창에서 Build Action을 'SplashScreen'으로 변경했습니다. 하지만 내 솔루션을 빌드 할 때 나는 그 오류 메시지를 얻을 :Visual Studio에서의 Splashscreen-Operation이 작동하지 않음 (WPF)
public static void Main() {
SplashScreen splashScreen = new SplashScreen("splashscreen.xaml"); (first error message refers to this line)
splashScreen.Show(true); (second error message to this)
GVPI_Fernwartung.App app = new GVPI_Fernwartung.App();
app.InitializeComponent();
app.Run();
}
정말 어디에 사람들을 이해하지 못하는 내 App.g.cs 창에 코드가
'Project.SplashScreen' does not contain a constructor that takes 1 arguments (App.g.cs)
No overload for method 'Show' takes 1 arguments
The name 'InitializeComponent' does not exist in the current context
이 코드는 Visual Studio에서 자동으로 생성되므로 오류 메시지가 발생합니다. 내 프로젝트에 이미지를 추가하고 'Build Action'을 'SplashScreen'으로 변경하면 같은 오류 메시지가 나타납니다. 사람이 이것을 피하는 방법을 알고 있습니까? 나는 어떤 도움을 주셔서 감사합니다!
것은 내가 심지어 정적 이미지와 함께이 문제를 가지고있다, 즉 가장 나에게 혼란 무엇이었다. 그러나 내 프로그램을 삭제하고 모든 것을 다시 만든 후에 정적 인 이미지로 작업했습니다. 창을 위해 다른 방법을 찾도록하겠습니다. – MaChaToc