public ConnectView() { InitializeComponent(); this.Loaded += (s, e) => this.DataContext = new ConnectViewModel(TCPConnection.Instance()); }