protected internal override void NativeInit() { if (this.Parent != null && this.Context != null) { if (this.NativeUIElement == null) { var nativeStackPanel = new NativeStackPanel(this.Context); this.NativeUIElement = nativeStackPanel; } var layoutParams = new ViewGroup.LayoutParams(0, 0); layoutParams.Width = double.IsNaN(this.NativeWidth) ? ViewGroup.LayoutParams.WrapContent : (int)this.NativeWidth; layoutParams.Height = double.IsNaN(this.NativeHeight) ? ViewGroup.LayoutParams.WrapContent : (int)this.NativeHeight; this.NativeUIElement.LayoutParameters = layoutParams; } base.NativeInit(); }
protected internal override void NativeInit() { if (this.Parent != null && this.Context != null) { if (this.NativeUIElement == null) { var nativeStackPanel = new NativeStackPanel(this.Context); this.NativeUIElement = nativeStackPanel; } var layoutParams = new ViewGroup.LayoutParams(0, 0); layoutParams.Width = double.IsNaN(this.NativeWidth) ? ViewGroup.LayoutParams.WrapContent : (int)this.NativeWidth; layoutParams.Height = double.IsNaN(this.NativeHeight) ? ViewGroup.LayoutParams.WrapContent : (int)this.NativeHeight; this.NativeUIElement.LayoutParameters = layoutParams; } base.NativeInit(); }