_rootView.BackgroundColor = Color.White;
_rootView.Size2D = window.Size;
_rootView.PivotPoint = PivotPoint.Center;
+ _rootView.WidthSpecification = LayoutParamPolicies.MatchParent;
+ _rootView.HeightSpecification = LayoutParamPolicies.MatchParent;
window.GetDefaultLayer().Add(_rootView);
_navigator = window.GetDefaultNavigator();
_navigator.Push(CreateFirstPage());
private ContentPage CreateFirstPage()
{
ScrollableBase content = CreateScrollableBase();
+ content.WidthSpecification = LayoutParamPolicies.MatchParent;
+ content.HeightSpecification = LayoutParamPolicies.MatchParent;
var rootCert = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
+ HeightSpecification = LayoutParamPolicies.MatchParent,
Text = Resources.IDS_ST_BODY_TRUSTED_ROOT_CA_CERTIFICATES_ABB/*"Trusted root CA certificates"*/,
IsSelectable = false,
Margin = new Extents(20, 20, 1, 1),
BackgroundColor = Color.White,
+ CornerRadius = new Vector4(10, 10, 10, 10)
};
rootCert.Clicked += (o, e) =>
var userCert = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
+ HeightSpecification = LayoutParamPolicies.MatchParent,
Text = Resources.IDS_ST_BODY_USER_CERTIFICATES/*"User certificates"*/,
IsSelectable = false,
Margin = new Extents(20, 20, 1, 1),
ContentPage firstPage = CreateContentPage(Resources.IDS_ST_HEADER_MANAGE_CERTIFICATES_ABB/*"Manage certificates"*/, content);
firstPage.AppBar.AutoNavigationContent = false;
+ firstPage.WidthSpecification = LayoutParamPolicies.MatchParent;
+ firstPage.HeightSpecification = LayoutParamPolicies.MatchParent;
var navigationContent = new Button(((AppBarStyle)ThemeManager.GetStyle("Tizen.NUI.Components.AppBar")).BackButton);
navigationContent.Clicked += (o, e) =>
{
ScrollableBase content = CreateScrollableBase();
content.BackgroundColor = new Color("#EFEFEF");
+ if (certificates == null || certificates.Count == 0)
+ {
+ var item = new DefaultLinearItem()
+ {
+ WidthSpecification = LayoutParamPolicies.MatchParent,
+ Text = Resources.IDS_ST_TPOP_NO_CERTIFICATE_FOUND_DETAIL,
+ IsSelectable = false,
+ Margin = new Extents(20, 20, 1, 1),
+ BackgroundColor = Color.White,
+ CornerRadius = new Vector4(10, 10, 10, 10),
+ CellHorizontalAlignment = HorizontalAlignmentType.Center,
+ CellVerticalAlignment = VerticalAlignmentType.Center,
+ HeightSpecification = LayoutParamPolicies.MatchParent,
+ };
+ content.Add(item);
+ return CreateContentPage(title, content);
+ }
foreach (certificateMetadata cert in certificates)
{
var item = new DefaultLinearItem()
{
WidthSpecification = LayoutParamPolicies.MatchParent,
+ HeightSpecification = LayoutParamPolicies.MatchParent,
Text = cert.title,
IsSelectable = false,
Margin = new Extents(20, 20, 1, 1),
},
Content = content,
BackgroundColor = new Color("#EFEFEF"),
+ WidthSpecification = LayoutParamPolicies.MatchParent,
+ HeightSpecification= LayoutParamPolicies.MatchParent,
};
}