항상 Loaded 이벤트에서 추가적인 초기화 작업을 수행하자.

You can also use the window constructor to perform your initialization (just add your code immediately after the InitializeComponent() call). However, it’s always better to use the Loaded event.
That’s because if an exception occurs in the constructor of the Window, it’s thrown while the XAML parser is parsing the page. As a result, your  exception is wrapped in an unhelpful XamlParseException object (with the original exception in the InnerException property).

댓글

이 블로그의 인기 게시물

Oracle NLS_DATE_FORMAT 변경

Stop console process using Ctrl+C.

Alternative to IValueConvert, QuickConverter