Exemplo n.º 1
0
        /// <inheritdoc/>
        /// <since_tizen> 9 </since_tizen>
        public override void CopyFrom(BindableObject bindableObject)
        {
            base.CopyFrom(bindableObject);

            if (bindableObject is AppBarStyle appBarStyle)
            {
                BackButton.CopyFrom(appBarStyle.BackButton);
                TitleTextLabel.CopyFrom(appBarStyle.TitleTextLabel);
                ActionView.CopyFrom(appBarStyle.ActionView);
                ActionButton.CopyFrom(appBarStyle.ActionButton);
                NavigationPadding = (appBarStyle.NavigationPadding == null) ? new Extents() : new Extents(appBarStyle.NavigationPadding);
                ActionPadding     = (appBarStyle.ActionPadding == null) ? new Extents() : new Extents(appBarStyle.ActionPadding);
                ActionCellPadding = (appBarStyle.ActionCellPadding == null) ? new Size2D() : new Size2D(appBarStyle.ActionCellPadding.Width, appBarStyle.ActionCellPadding.Height);
            }
        }