private void ProcessOpenView(OpenWindowMessage msg) { var view = new DeviceView() { DataContext = msg.DataContext }; view.BorderThickness = new Thickness(1); view.GlowBrush = null; view.SetResourceReference(MetroWindow.BorderBrushProperty, "AccentColorBrush"); view.ShowDialog(); }