public override void CopyFrom(BindableObject bindableObject) { base.CopyFrom(bindableObject); TabStyle tabStyle = bindableObject as TabStyle; if (null != tabStyle) { if (null != tabStyle.ItemPadding) { ItemPadding?.CopyFrom(tabStyle.ItemPadding); } ItemSpace = tabStyle.ItemSpace; UseTextNaturalSize = tabStyle.UseTextNaturalSize; if (null != tabStyle.UnderLine) { UnderLine?.CopyFrom(tabStyle.UnderLine); } if (null != tabStyle.Text) { Text?.CopyFrom(tabStyle.Text); } } }
public override void CopyFrom(BindableObject bindableObject) { base.CopyFrom(bindableObject); if (bindableObject is TabStyle tabStyle) { UnderLine.CopyFrom(tabStyle.UnderLine); Text.CopyFrom(tabStyle.Text); ItemPadding = tabStyle.ItemPadding == null ? null : new Extents(tabStyle.ItemPadding); ItemSpace = tabStyle.ItemSpace; UseTextNaturalSize = tabStyle.UseTextNaturalSize; } }