Skip to content

Commit 707277b

Browse files
authored
fix notification location (#13758)
1 parent e5d4ad2 commit 707277b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Notifications/NotificationsMenuItem.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public NotificationsMenuItem(Notifications.NotificationsViewExtension notificati
2424
{
2525
//create a window to display the list of notificationsModels
2626
var window = new NotificationsView(notificationsExtension);
27+
window.Owner = notificationsExtension.dynamoWindow;
28+
window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
2729
window.Show();
2830
};
2931

@@ -42,7 +44,7 @@ public NotificationsMenuItem(Notifications.NotificationsViewExtension notificati
4244
//create our icon
4345
var color = new SolidColorBrush(Colors.LightGray);
4446
this.imageicon.Source = FontAwesome.WPF.ImageAwesome.CreateImageSource(FontAwesome.WPF.FontAwesomeIcon.ExclamationCircle, color);
45-
47+
4648
//create some bindings
4749
//attach the visibility of the badge and menuItems enabledState to the number of notifications without a binding...
4850

0 commit comments

Comments
 (0)