Exemplo n.º 1
0
 /// <summary>
 /// Assert the given a WINDOWPLACEMENT structure encoded as an XML string
 /// to a specified window.
 /// </summary>
 /// <param name="window">Window to be positioned.</param>
 /// <param name="placementXml">WINDOWPLACEMENT structure expressed as an XML string.</param>
 public static void SetPlacement(this Window window, string placementXml, bool hide)
 {
     WindowPlacement.SetPlacement(new WindowInteropHelper(window).Handle, placementXml, hide);
 }