2014-03-12 2 views
0

몇 주 후 크기 조정 :WPF 응용 프로그램이 갑자기 나는 WPF의 다음과 같습니다 응용 프로그램이

https://drive.google.com/file/d/0B-wl9oJvpFRsUE1QZ3ZwNjVaWTA/edit?usp=sharing

내 고객의 몇과를 설치하고 몇 주 동안 잘 작동했다, 그러나 내가받은 그 후 응용 프로그램이 갑자기 다시 크기의 것을 같이보고 불평 :

https://drive.google.com/file/d/0B-wl9oJvpFRscHpSMTBTMmVmZEU/edit?usp=sharing

창 태그는 다음과 같은 속성이 있습니다

,
<Window x:Class="Blabla.MainWindow" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     StateChanged="Window1_StateChanged" Icon="Ico.ico" 
     Title="PRAMS Connect" Width="522" SizeToContent="Height" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize"> 

앱을 다시 설치하면 화면이 정상 크기로 돌아갑니다.

여기에 무슨 일이 일어 났는지 아시나요?

감사 무리

답변

0

시도 창문에 최소 높이와 폭을 추가;

<Window x:Class="Blabla.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    StateChanged="Window1_StateChanged" Icon="Ico.ico" 
    Title="PRAMS Connect" Width="522" SizeToContent="Height" 
    WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" 
    MinWidth="522" MinHeight="Whatever the height is..."> 
관련 문제