root / trunk / Pithos.Client.WPF / Wpf32Window.cs @ 422c9598
History | View | Annotate | Download (468 Bytes)
1 | 5120f3cb | Panagiotis Kanavos | using System; |
---|---|---|---|
2 | 5120f3cb | Panagiotis Kanavos | using System.Collections.Generic; |
3 | 5120f3cb | Panagiotis Kanavos | using System.Linq; |
4 | 5120f3cb | Panagiotis Kanavos | using System.Text; |
5 | 5120f3cb | Panagiotis Kanavos | using System.Windows; |
6 | 5120f3cb | Panagiotis Kanavos | using System.Windows.Interop; |
7 | 5120f3cb | Panagiotis Kanavos | using IWin32Window = System.Windows.Forms.IWin32Window; |
8 | 5120f3cb | Panagiotis Kanavos | |
9 | 5120f3cb | Panagiotis Kanavos | |
10 | 5120f3cb | Panagiotis Kanavos | namespace Pithos.Client.WPF |
11 | 5120f3cb | Panagiotis Kanavos | { |
12 | 5120f3cb | Panagiotis Kanavos | public class Wpf32Window : IWin32Window |
13 | 5120f3cb | Panagiotis Kanavos | { |
14 | 5120f3cb | Panagiotis Kanavos | public IntPtr Handle { get; private set; } |
15 | 5120f3cb | Panagiotis Kanavos | |
16 | 5120f3cb | Panagiotis Kanavos | public Wpf32Window(Window wpfWindow) |
17 | 5120f3cb | Panagiotis Kanavos | { |
18 | 5120f3cb | Panagiotis Kanavos | Handle = new WindowInteropHelper(wpfWindow).Handle; |
19 | 5120f3cb | Panagiotis Kanavos | } |
20 | 5120f3cb | Panagiotis Kanavos | } |
21 | 5120f3cb | Panagiotis Kanavos | } |