Silverlight Error “Layout Cycle Detected Layout could not complete” when using custom control
问题 I'm building a custom control in Silverlight by deriving from ContentControl and doing some special formatting to put a dropshadow behind the contents. I've nearly got it working but have recently ran into a bizarre error. It works fine if it contains anything besides a Border, or a Grid/Stackpanel/etc that does not have an explicitly defined height and width. I get a JavaScript error in IE, and the text says: Runtime Error 4008... Layout Cycle Detected... Layout Could Not Complete. If I