Esempio n. 1
0
        public PaginationAttributes(PaginationAttributes attributes) : base(attributes)
        {
            if (attributes == null)
            {
                return;
            }

            if (attributes.IndicatorSize != null)
            {
                IndicatorSize = new Size2D(attributes.IndicatorSize.Width, attributes.IndicatorSize.Height);
            }
            if (attributes.IndicatorBackgroundURL != null)
            {
                IndicatorBackgroundURL = attributes.IndicatorBackgroundURL.Clone() as string;
            }
            if (attributes.IndicatorSelectURL != null)
            {
                IndicatorSelectURL = attributes.IndicatorSelectURL.Clone() as string;
            }
            IndicatorSpacing = attributes.IndicatorSpacing;
        }
Esempio n. 2
0
        private void Initialize()
        {
            paginationAttributes = attributes as PaginationAttributes;
            if (paginationAttributes == null)
            {
                throw new Exception("Pagination attributes is null.");
            }

            container = new VisualView()
            {
                Name                   = "Container",
                ParentOrigin           = Tizen.NUI.ParentOrigin.CenterLeft,
                PivotPoint             = Tizen.NUI.PivotPoint.CenterLeft,
                PositionUsesPivotPoint = true,
                //BackgroundColor = Color.Yellow
            };
            this.Add(container);

            selectIndicator = new ImageVisual()
            {
                URL = " "
            };
            container.AddVisual("SelectIndicator", selectIndicator);
        }
Esempio n. 3
0
 public Pagination(PaginationAttributes attributes) : base(attributes)
 {
     Initialize();
 }