void SetCommonButtonStyle(Button btn, string text, int? left = null)
{
if (null == btn) return;
- btn.Style.Text.Text = text;
- btn.Style.Text.TextColor = Color.Green;
+ btn.Text = text;
+ btn.TextColor = Color.Green;
if (left.HasValue) // for detail buttons
{
- btn.Style.Text.Position = new Position(left.Value, 0);
- btn.Style.Text.Size = new Size(30, 30);
- btn.Style.Text.PointSize = _pointSize;
+ btn.Position = new Position(left.Value, 0);
+ btn.Size = new Size(30, 30);
+ btn.PointSize = _pointSize;
}
else // for home buttons
{
- btn.Style.Text.PointSize = 6.0f;
+ btn.PointSize = 6.0f;
}
- btn.Style.Text.VerticalAlignment = VerticalAlignment.Bottom;
- btn.Style.Text.HorizontalAlignment = HorizontalAlignment.Center;
- btn.Style.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png";
+ btn.TextLabel.VerticalAlignment = VerticalAlignment.Bottom;
+ btn.TextLabel.HorizontalAlignment = HorizontalAlignment.Center;
+ btn.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png";
}
void InitializeFirstPage()
private void CreateButton()
{
_infoButton = new Button();
- _infoButton.Style.Text.Text = "Clicked run, Please refer test step";
- _infoButton.Style.Text.PointSize = 5.0f;
+ _infoButton.Text = "Clicked run, Please refer test step";
+ _infoButton.PointSize = 5.0f;
if (ManualTest.IsWearable())
{
- _infoButton.Style.Text.TextColor = Color.White;
- _infoButton.Style.Text.HorizontalAlignment = HorizontalAlignment.Center;
- _infoButton.Style.Text.VerticalAlignment = VerticalAlignment.Bottom;
+ _infoButton.TextLabel.TextColor = Color.White;
+ _infoButton.TextLabel.HorizontalAlignment = HorizontalAlignment.Center;
+ _infoButton.TextLabel.VerticalAlignment = VerticalAlignment.Bottom;
}
_infoButton.Size = new Size(300, 50);\r
_testPage.ExecuteTC(_infoButton);