SIL.FieldWorks.Common.Framework.DetailControls.ViewSlice.BecomeRealInPlace C# (CSharp) Method

BecomeRealInPlace() public method

Some 'unreal' slices can become 'real' (ready to actually display) without actually replacing themselves with a different object. Such slices override this method to do whatever is needed and then answer true. If a slice answers false to IsRealSlice, this is tried, and if it returns false, then BecomeReal is called.
public BecomeRealInPlace ( ) : bool
return bool
		public override bool BecomeRealInPlace()
		{
			CheckDisposed();
			RootSite rs = this.RootSite;
			if (rs.RootBox == null)
			{
#pragma warning disable 0219 // error CS0219: The variable ... is assigned but its value is never used
				IntPtr dummy = rs.Handle; // This typically gets the root box created, so setting AllowLayout can lay it out.
#pragma warning restore 0219
			}
			rs.AllowLayout = true; // also does PerformLayout.
			SetHeightFromRootBox(rs);
			return true;
		}