I have implemented a simple custom control in
System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has
been returned from a call to a COM component. at
When the custom control was added the children of
StackPanel, throw the same exception. Because
StackPanel width is infinity when
HubSection has also the same scenario like this.
So in this case have to allocated default(specific) Width for the control then call the
InvalidateMeasure() to resolve this problem.