Well, instead of passing Application.Current.MainWindow
, just pass a reference to whichever window it is you want: new WindowInteropHelper(this).Handle
and so on.
More Related Contents:
- How to create custom window chrome in wpf?
- No creation of a WPF window in a DLL project?
- ComboBox Dropdown when Mouse Enter WPF
- How to bind multiple values to a single WPF TextBlock?
- What is so special about Generic.xaml?
- How to define TextBox input restrictions?
- Best way to use a vector image in WPF?
- How to set default WPF Window Style in app.xaml?
- How can I paginate a WPF DataGrid?
- What is the difference between Width and ActualWidth in WPF?
- WPF calling commands via events
- WPF datagrid header text binding
- How to disable highlighting on listbox but keep selection?
- What does it mean to “Capture the mouse” in WPF?
- WPF VirtualizingStackPanel for increased performance
- WPF: Display a bool value as “Yes” / “No”
- How to access datagrid template column textbox text WPF C#
- How to capture a mouse click on an Item in a ListBox in WPF?
- How to Stretch WPF Tab Item Headers to Parent Control Width
- WPF vs. Windows Forms [duplicate]
- What WPF books would you recommend? [closed]
- Hide grid row in WPF
- TabControl with Add New Tab Button (+)
- WPF Events in ResourceDictionary for a ControlTemplate
- How to start the WPF window from console programmatically?
- WPF Context menu on left click
- Can I bind HTML to a WPF Web Browser Control?
- Binding ElementName. Does it use Visual Tree or Logical Tree
- WPF ComboBox without drop-down button
- WPF – TabItem Background color changes when tabitem selected or hover over