<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PreviewControl border in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666432#M7084</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;problem solved, I think it will be useful to share this on the blog. However, I would like to ask Revit development team to turn this off by default, as it is easier for users to configure the control themselves than to mess with Win API and native code&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 13:21:12 GMT</pubDate>
    <dc:creator>nice3point</dc:creator>
    <dc:date>2024-03-26T13:21:12Z</dc:date>
    <item>
      <title>PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570113#M7071</link>
      <description>&lt;P&gt;Is it possible to disable the PreviewControl border ? This border comes from the Win32 window. Setting User32.WindowStyles by Hwnd handle does not give any results. Except WS_CHILD and similar, no other styles are applied. Is this border added by Revit development team or is it a HwndHost issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nice3point_1-1708385197084.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1327931i047CDF4614F6683A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_1-1708385197084.png" alt="nice3point_1-1708385197084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:33:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570113#M7071</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-02-19T23:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570375#M7072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I could do it when I used it, was to set the Grid margin to -4, but this only works if the grid is set entirely to the window.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 03:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570375#M7072</guid>
      <dc:creator>Speed_CAD</dc:creator>
      <dc:date>2024-02-20T03:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570816#M7073</link>
      <description>It's not a solution, negative margin just covers other content</description>
      <pubDate>Tue, 20 Feb 2024 09:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570816#M7073</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-02-20T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570837#M7074</link>
      <description>&lt;P&gt;I don't like the negative margin either, but it was the only way to hide the border. And for it to work, the container (Grid) must cover the entire window.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 09:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570837#M7074</guid>
      <dc:creator>Speed_CAD</dc:creator>
      <dc:date>2024-02-20T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570842#M7075</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;hi Jeremy, can you ask the Revit team where this border comes from?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 09:23:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570842#M7075</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-02-20T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570867#M7076</link>
      <description>&lt;P&gt;Sure. Thank you for asking. I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1708421612354229" target="_blank"&gt;passed&lt;/A&gt; it on to them internally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 09:34:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12570867#M7076</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-02-20T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12612782#M7077</link>
      <description>&lt;P&gt;You can use Spy++ to determine the window structure and use WinAPI to remove the borders and some WPF magic to trigger the repaint. It took me hours of experimenting, but it is doable. If I recall correctly, there are multiple levels of controls and you have to figure out which ones carry the borders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am off for a while and have no access to the code, but don’t feel discouraged if it doesn’t work the first time. It was really painful to solve this and I wish Autodesk would just remove the borders in an upcoming release. It is hard to make software look good if the underlying API takes you back to the nineties ;-).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 19:08:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12612782#M7077</guid>
      <dc:creator>cwaluga</dc:creator>
      <dc:date>2024-03-04T19:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12613297#M7078</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3142688"&gt;@cwaluga&lt;/a&gt;&amp;nbsp; perfect) can you share your code?&lt;BR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&amp;nbsp; any updates from the Revit team?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 21:13:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12613297#M7078</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-03-04T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12614882#M7079</link>
      <description>&lt;P&gt;Nope, no updates yet. I added&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3142688"&gt;@cwaluga&lt;/a&gt;&amp;nbsp;'s comments to my query and reprompted. Thank you for those!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 08:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12614882#M7079</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-05T08:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12663448#M7080</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4158637"&gt;@nice3point&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot share the actual code, unfortunately. Our codebase is really massive and closed ;-).&lt;/P&gt;&lt;P&gt;While I cannot find the time to provide a full working example, I can post some code for you to fill the gaps. The important snippet (to be called after previewControl.Loaded AND previewControll.IsVisibleChanged) is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// get preview window host
var previewWndHost = previewControl.Content;
if (previewWndHost is null)
	return;

// get preview view handle
var previewHwnd = (IntPtr)previewWndHost.GetType().GetProperty("Handle").GetValue(previewWndHost, null);
if (previewHwnd == IntPtr.Zero)
	return;

// remove WS_EX_CLIENTEDGE on all child windows
foreach (var hwnd in HwndHelpers.GetAllChildHandles(previewHwnd).Append(previewHwnd))
{
	var style = User32.GetWindowLong(hwnd, Constants.GWL_EXSTYLE).ToInt32() &amp;amp; ~(int)Constants.WS_EX_CLIENTEDGE;
	User32.SetWindowLong(hwnd, Constants.GWL_EXSTYLE, style);
}

// trigger redraw by adding or removing a slight padding at the bottom
// the original padding is stored in the tag, so try to avoid using the
// tag property for anything else if you want this to work.
var p = previewControl.Padding;
if (previewControl.Tag is null)
	previewControl.Tag = p;
if (previewControl.Tag is System.Windows.Thickness t)
{
	p.Bottom = p.Bottom == t.Bottom ? p.Bottom + 1 : t.Bottom;
	previewControl.Padding = p;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IsVisibleChanged handler is required for use in tab controls, since Revit seems to re-create the view in case of visibility changes. I misused the tag to save the previous state and avoid shrinking/growing of the control due to the padding-changes at "reentry". If you find a better solution to trigger the redraw, please let me know. This part is pretty hacky, but I had to move on at some point and got stuck with whatever did the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also use some WinAPI functions which can be easily imported (google, pinvoke). The HwndHelpers function is just syntactic sugar around EnumChildWindows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static IList&amp;lt;IntPtr&amp;gt; GetAllChildHandles(IntPtr hwnd)
{
	var childHandles = new List&amp;lt;IntPtr&amp;gt;();
	var gcChildHandles = GCHandle.Alloc(childHandles);

	try
	{
		bool EnumWindow(IntPtr hWnd, IntPtr lParam)
		{
			(GCHandle.FromIntPtr(lParam).Target as List&amp;lt;IntPtr&amp;gt;)?.Add(hWnd);
			return true;
		}

		var childProc = new User32.EnumWindowsProc(EnumWindow);
		User32.EnumChildWindows(hwnd, childProc, GCHandle.ToIntPtr(gcChildHandles));
	}
	finally
	{
		gcChildHandles.Free();
	}

	return childHandles;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 11:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12663448#M7080</guid>
      <dc:creator>cwaluga</dc:creator>
      <dc:date>2024-03-25T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666385#M7081</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3142688"&gt;@cwaluga&lt;/a&gt;great solution&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:07:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666385#M7081</guid>
      <dc:creator>rawava1350</dc:creator>
      <dc:date>2024-03-26T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666400#M7082</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3142688"&gt;@cwaluga&lt;/a&gt;&amp;nbsp; amazing, i completely forgot about the Child when was writing a similar code. Now all borders are gone, in addition, I have solved the redrawing problem, for which you used Padding (it was not working correctly)&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nice3point_0-1711460240466.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1341992i6CB33A1DBD9F2B29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_0-1711460240466.png" alt="nice3point_0-1711460240466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nice3point_0-1711458548335.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1341967i1A4A3E9FAD666C09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nice3point_0-1711458548335.png" alt="nice3point_0-1711458548335.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:37:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666400#M7082</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-03-26T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666418#M7083</link>
      <description>&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public void Initialize()
{
    var previewControl = new PreviewControl(_context, view.Id);
    previewControl.Loaded += RemovePreviewControlStyles;
}

private void RemovePreviewControlStyles(object sender, EventArgs args)
{
    var control = (PreviewControl)sender;
    var previewHost = (FrameworkElement)control.Content;
    var previewType = previewHost.GetType();
    var hostField = previewType.GetField("m_hwndHost", BindingFlags.NonPublic | BindingFlags.DeclaredOnly | BindingFlags.Instance)!;
    var handle = (IntPtr)hostField.GetValue(previewHost);

    var childHandles = UnsafeNativeMethods.GetChildHandles(handle);

    UnsafeNativeMethods.RemoveWindowStyles(handle);
    UnsafeNativeMethods.RemoveWindowCaption(handle);
    foreach (var childHandle in childHandles)
    {
        UnsafeNativeMethods.RemoveWindowStyles(childHandle);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UnsafeNativeMethods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;/// &amp;lt;summary&amp;gt;
/// Tries to remove styles from selected window handle.
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name="handle"&amp;gt;Window handle.&amp;lt;/param&amp;gt;
/// &amp;lt;returns&amp;gt;&amp;lt;see langword="true"/&amp;gt; if invocation of native Windows function succeeds.&amp;lt;/returns&amp;gt;
public static bool RemoveWindowStyles(IntPtr handle)
{
    if (handle == IntPtr.Zero)
    {
        return false;
    }

    if (!User32.IsWindow(handle))
    {
        return false;
    }

    var cornerResult = ApplyWindowCornerPreference(handle, WindowCornerPreference.DoNotRound);
    if (!cornerResult) return false;

    var windowStyleLong = User32.GetWindowLong(handle, User32.GWL.GWL_EXSTYLE);
    windowStyleLong &amp;amp;= ~(int)User32.WS_EX.CLIENTEDGE;

    var styleResult = SetWindowLong(handle, User32.GWL.GWL_EXSTYLE, windowStyleLong);
    return styleResult.ToInt64() &amp;gt; 0x0;
}

/// &amp;lt;summary&amp;gt;
///     Get the child windows that belong to the specified parent window by passing the handle to each child window.
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name="hwnd"&amp;gt;Window handle.&amp;lt;/param&amp;gt;
public static IList&amp;lt;IntPtr&amp;gt; GetChildHandles(IntPtr hwnd)
{
    var handles = new List&amp;lt;IntPtr&amp;gt;();
    var gcHandles = GCHandle.Alloc(handles);

    try
    {
        var callbackPointer = new User32.EnumWindowsProc(EnumWindowCallback);
        User32.EnumChildWindows(hwnd, callbackPointer, GCHandle.ToIntPtr(gcHandles));
    }
    finally
    {
        gcHandles.Free();
    }

    return handles;
}

private static bool EnumWindowCallback(IntPtr hwnd, IntPtr lParam)
{
    var target = GCHandle.FromIntPtr(lParam).Target as List&amp;lt;IntPtr&amp;gt;;
    if (target is null) return false;

    target.Add(hwnd);
    return true;
}    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User32:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;/// &amp;lt;summary&amp;gt;
///     An application-defined callback function used with the EnumChildWindows function. It receives the child window handles. The WNDENUMPROC type defines a pointer to this callback function. EnumChildProc is a placeholder for the application-defined function name.
/// &amp;lt;/summary&amp;gt;
public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);

/// &amp;lt;summary&amp;gt;
///     Enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to an application-defined callback function. EnumChildWindows continues until the last child window is enumerated or the callback function returns FALSE.
/// &amp;lt;/summary&amp;gt;
/// &amp;lt;param name="hwnd"&amp;gt;The window that you want to get information about.&amp;lt;/param&amp;gt;
/// &amp;lt;param name="func"&amp;gt;A pointer to an application-defined callback function&amp;lt;/param&amp;gt;
/// &amp;lt;param name="lParam"&amp;gt;An application-defined value to be passed to the callback function.&amp;lt;/param&amp;gt;
/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
[DllImport(Libraries.User32)]
public static extern bool EnumChildWindows(IntPtr hwnd, EnumWindowsProc func, IntPtr lParam);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also disabled edge rounding for Windows 11 as well.&lt;/P&gt;&lt;P&gt;The used methods can be found in the WPF UI repository.&lt;/P&gt;&lt;P&gt;User32: &lt;A href="https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/User32.cs" target="_blank" rel="noopener"&gt;https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/User32.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;UnsafeNativeMethods: &lt;A href="https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/UnsafeNativeMethods.cs" target="_blank" rel="noopener"&gt;https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/UnsafeNativeMethods.cs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:18:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666418#M7083</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-03-26T13:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666432#M7084</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;problem solved, I think it will be useful to share this on the blog. However, I would like to ask Revit development team to turn this off by default, as it is easier for users to configure the control themselves than to mess with Win API and native code&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666432#M7084</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-03-26T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666471#M7085</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4158637"&gt;@nice3point&lt;/a&gt;: Nice, can you please elaborate on which of these lines can get me rid of the padding-trick?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:35:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666471#M7085</guid>
      <dc:creator>cwaluga</dc:creator>
      <dc:date>2024-03-26T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666478#M7086</link>
      <description>&lt;P&gt;UnsafeNativeMethods.RemoveWindowCaption(handle); where handle is hwndHost&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/UnsafeNativeMethods.cs#L468" target="_blank"&gt;https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Interop/UnsafeNativeMethods.cs#L468&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12666478#M7086</guid>
      <dc:creator>nice3point</dc:creator>
      <dc:date>2024-03-26T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: PreviewControl border</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12674159#M7087</link>
      <description>&lt;P&gt;Thank you for the nice discussion, research and solution. I followed your suggestion and added it to the blog:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2024/03/change-pipe-level-and-previewcontrol-border.html#2" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2024/03/change-pipe-level-and-previewcontrol-border.html#2&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 10:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/previewcontrol-border/m-p/12674159#M7087</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-03-29T10:47:29Z</dc:date>
    </item>
  </channel>
</rss>

