728x90
반응형
728x170
using System.Windows;
using System.Windows.Forms;
using System.Windows.Interop;
#region 소유자 설정하기 - SetOwner(window, ownerForm)
/// <summary>
/// 소유자 설정하기
/// </summary>
/// <param name="window">윈도우</param>
/// <param name="ownerForm">소유자 폼</param>
public void SetOwner(Window window, Form ownerForm)
{
WindowInteropHelper helper = new WindowInteropHelper(window);
helper.Owner = ownerForm.Handle;
}
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] WindowsFormsHost 클래스 : 브라우저 애플리케이션(XBAP)에서 사용하기 (0) | 2015.11.03 |
---|---|
[C#/WPF] 브라우저 애플리케이션 (XBAP) 여부 구하기 (0) | 2015.11.03 |
[C#/WPF] x:FieldModifier 속성 : 엘리먼트를 public으로 노출시키기 (0) | 2015.10.28 |
[C#/WPF] 객체 동적 바인딩 처리하기 (0) | 2015.10.22 |
[C#/WPF] WindowsFormsHost 클래스 : WinForm 객체 사용시 스크롤 영역 클리핑 처리하기 (0) | 2015.10.22 |
[C#/WPF] DrawingBrush 엘리먼트 : EllipseGeometry 객체의 크기를 변경해 애니메이션 만들기 (0) | 2015.10.21 |
[C#/WPF] VisualBrush 엘리먼트 : RelativeTransform 속성을 사용해 엘리먼트 반사 이미지 만들기 (0) | 2015.10.20 |
[C#/WPF] ImageBrush 엘리먼트 : TileMode 속성을 FlipXY로 설정하기 (0) | 2015.10.20 |
[C#/WPF] ImageBrush 엘리먼트 : ViewboxUnits 속성 사용하기 (0) | 2015.10.20 |
[C#/WPF] ImageBrush 엘리먼트 : Viewbox 속성 사용하기 (0) | 2015.10.20 |
댓글을 달아 주세요