public SettingWindow(UserConfig userConfig, UserControl imageControl, bool isHide) { InitializeComponent(); _userConfig = userConfig; _imageControl = imageControl; _translateTransform = imageControl.GetTransform <TranslateTransform>(); if (isHide) { HeightTbx.IsEnabled = WidthTbx.IsEnabled = LocationXTbx.IsEnabled = LocationYTbx.IsEnabled = false; } _textChanged = false; }