private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
{
if (Width != IsChangedWindow.wigth)
{
Height = Width / 16 * 9;
IsChangedWindow.wigth = Width;
IsChangedWindow.height = Height;
}
else if (Height != IsChangedWindow.height)
{
Width = Height / 9 * 16;
IsChangedWindow.wigth = Width;
IsChangedWindow.height = Height;
}
}