_topContainer.Size = new Size(_stageSize.Width, _stageSize.Height * Constants.TopContainerHeightFactor, 0);
_topContainer.Position = new Position(0.0f, _stageSize.Height * Constants.TopContainerPositionFactor, 0.0f);
_topContainer.ParentOrigin = ParentOrigin.TopLeft;
- _topContainer.AnchorPoint = AnchorPoint.TopLeft;
// Add a background to Top container
PropertyMap visual = new PropertyMap();
_bottomContainer.Size = new Size(_stageSize.Width, _stageSize.Height * Constants.BottomContainerHeightFactor, 0);
_bottomContainer.Position = new Position(0.0f, _stageSize.Height * Constants.BottomContainerHidePositionFactor, 0.0f);
_bottomContainer.ParentOrigin = ParentOrigin.TopLeft;
- _bottomContainer.AnchorPoint = AnchorPoint.TopLeft;
// Add a background to Bottom Container
visual = new PropertyMap();
// Add a clip layer to Top Container
_topClipLayer = new Layer();
- _topClipLayer.AnchorPoint = AnchorPoint.BottomCenter;
_topClipLayer.ParentOrigin = ParentOrigin.BottomCenter;
_topClipLayer.ClippingEnable = true;
_topClipLayer.ClippingBox = new Rectangle(0,
spotLight.WidthResizePolicy = ResizePolicyType.UseNaturalSize;
spotLight.HeightResizePolicy = ResizePolicyType.UseNaturalSize;
spotLight.ParentOrigin = ParentOrigin.Center;
- spotLight.AnchorPoint = AnchorPoint.Center;
+ spotLight.PivotPoint = PivotPoint.Center;
+ spotLight.PositionUsesPivotPoint = true;
spotLight.Name = "spotLight";
// Create a shadowBorder for items / images of Poster ScrollContainers
ImageView shadowBorder = new ImageView(_imagePath + "/focuseffect/thumbnail_shadow.9.png");
shadowBorder.ParentOrigin = ParentOrigin.Center;
- shadowBorder.AnchorPoint = AnchorPoint.Center;
+ shadowBorder.PivotPoint = PivotPoint.Center;
+ shadowBorder.PositionUsesPivotPoint = true;
shadowBorder.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
shadowBorder.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;
shadowBorder.SizeModeFactor = (new Vector3(32.0f, 41.0f, 0.0f));
// Add a clip layer to Bottom Container
_bottomClipLayer = new Layer();
- _bottomClipLayer.AnchorPoint = AnchorPoint.BottomCenter;
+ _bottomClipLayer.PivotPoint = PivotPoint.BottomCenter;
+ _bottomClipLayer.PositionUsesPivotPoint = true;
_bottomClipLayer.ParentOrigin = ParentOrigin.BottomCenter;
_bottomClipLayer.ClippingEnable = true;
_bottomClipLayer.ClippingBox = new Rectangle(Convert.ToInt32(Constants.LauncherWidth),
launcherIcon[launcherIndex].WidthResizePolicy = ResizePolicyType.UseNaturalSize;
launcherIcon[launcherIndex].HeightResizePolicy = ResizePolicyType.UseNaturalSize;
launcherIcon[launcherIndex].ParentOrigin = ParentOrigin.CenterLeft;
- launcherIcon[launcherIndex].AnchorPoint = AnchorPoint.CenterLeft;
+ launcherIcon[launcherIndex].PivotPoint = PivotPoint.CenterLeft;
+ launcherIcon[launcherIndex].PositionUsesPivotPoint = true;
launcherIcon[launcherIndex].Position = new Position(Constants.LauncherIconWidth * launcherIndex + Constants.LauncherLeftMargin, 0.0f, 0.0f);
_bottomContainer.Add(launcherIcon[launcherIndex]);
}
_launcherSeparator.WidthResizePolicy = ResizePolicyType.UseNaturalSize;
_launcherSeparator.HeightResizePolicy = ResizePolicyType.FillToParent;
_launcherSeparator.ParentOrigin = ParentOrigin.CenterLeft;
- _launcherSeparator.AnchorPoint = AnchorPoint.CenterLeft;
+ _launcherSeparator.PivotPoint = PivotPoint.CenterLeft;
+ _launcherSeparator.PositionUsesPivotPoint = true;
_launcherSeparator.Position = new Position(Constants.LauncherIconWidth * Constants.LauncherItemsCount + Constants.LauncherLeftMargin, 0.0f, 0.0f);
_bottomContainer.Add(_launcherSeparator);
_menuContainer.ShadowBorder.Size = new Size(_menuContainer.ItemSize.Width + 40.0f, _menuContainer.ItemSize.Height + 50.0f, 0.0f);
_menuContainer.ShadowBorder.Position = new Position(0.0f, 5.0f, 0.0f);
_menuContainer.ShadowBorder.ParentOrigin = ParentOrigin.Center;
- _menuContainer.ShadowBorder.AnchorPoint = AnchorPoint.Center;
- //_menuContainer.ShadowBorder.MixColor = Color.Red;
+ _menuContainer.ShadowBorder.PivotPoint = PivotPoint.Center;
+ _menuContainer.ShadowBorder.PositionUsesPivotPoint = true;
_menuContainer.SpotLight = spotLight;
_bottomClipLayer.Add(_menuContainer);
_keyboardFocusIndicator = new ImageView(_imagePath + "/focuseffect/highlight_stroke.9.png");
_keyboardFocusIndicator.ParentOrigin = ParentOrigin.Center;
- _keyboardFocusIndicator.AnchorPoint = AnchorPoint.Center;
+ _keyboardFocusIndicator.PivotPoint = PivotPoint.Center;
+ _keyboardFocusIndicator.PositionUsesPivotPoint = true;
_keyboardFocusIndicator.WidthResizePolicy = ResizePolicyType.FillToParent;
_keyboardFocusIndicator.HeightResizePolicy = ResizePolicyType.FillToParent;
TextLabel _dateOfTest = new TextLabel();
_dateOfTest.WidthResizePolicy = ResizePolicyType.FillToParent;
_dateOfTest.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;
- _dateOfTest.AnchorPoint = AnchorPoint.TopCenter;
+ _dateOfTest.PivotPoint = PivotPoint.TopCenter;
+ _dateOfTest.PositionUsesPivotPoint = true;
_dateOfTest.ParentOrigin = ParentOrigin.TopCenter;
_dateOfTest.SizeModeFactor = new Vector3(0.0f, 0.1f, 0.0f);
_dateOfTest.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);