{
Bundle bundle = Bundle.Decode(contentInfo);
CreateCertList();
- _rootView = new View();
- _rootView.BackgroundColor = Color.White;
- _rootView.Size2D = window.Size;
- _rootView.PivotPoint = PivotPoint.Center;
- _rootView.WidthSpecification = LayoutParamPolicies.MatchParent;
- _rootView.HeightSpecification = LayoutParamPolicies.MatchParent;
- window.GetDefaultLayer().Add(_rootView);
+ window.BackgroundColor = Color.Transparent;
_navigator = window.GetDefaultNavigator();
_navigator.Push(CreateFirstPage());
}
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)
};
Text = Resources.IDS_ST_BODY_USER_CERTIFICATES/*"User certificates"*/,
IsSelectable = false,
Margin = new Extents(20, 20, 1, 1),
- BackgroundColor = Color.White,
CornerRadius = new Vector4(10, 10, 10, 10)
};
private ContentPage CreateSecondPage(string title, List<certificateMetadata> certificates)
{
ScrollableBase content = CreateScrollableBase();
- content.BackgroundColor = new Color("#EFEFEF");
if (certificates == null || certificates.Count == 0)
{
var item = new DefaultLinearItem()
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,
Text = cert.title,
IsSelectable = false,
Margin = new Extents(20, 20, 1, 1),
- BackgroundColor = Color.White,
CornerRadius = new Vector4(10, 10, 10, 10)
};
{
cert.GetMetadata();
ScrollableBase content = CreateScrollableBase();
- content.BackgroundColor = new Color("#EFEFEF");
const float fieldTitleFontScale = 1.2F;
const float titleFontScale = 1.1F;
PropertyMap titleFontStyle = new PropertyMap();
WidthSpecification = LayoutParamPolicies.MatchParent,
Text = " " + "Use certificate", // NOT defined in Resources...
IsSelectable = false,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
CornerRadius = new Vector4(10, 10, 10, 10)
};
{
Text = " " + cert.GetFieldTitle(field),
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.GetField(field),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + cert.GetFieldTitle(field),
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.GetField(field),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + cert.GetFieldTitle(field),
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.GetField(field),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + Resources.IDS_ST_BODY_VALID_FROM_C/*"Valid from:"*/,
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.before.ToString("U"),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + Resources.IDS_ST_BODY_VALID_TO_C/*"Valid to:"*/,
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.after.ToString("U"),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + cert.GetFieldTitle(field),
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + cert.GetField(field),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + Resources.IDS_ST_BODY_CERTIFICATION_AUTHORITY_C/*"Certification authority:"*/,
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
TextLabel fieldValue = new TextLabel()
{
Text = " " + txt,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
{
Text = " " + cert.GetFieldTitle(CertificateField.CERTSVC_KEY),
FontSizeScale = fieldTitleFontScale,
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
};
{
MultiLine = true,
Text = cert.GetField(CertificateField.CERTSVC_KEY).Replace(" ", " "),
- BackgroundColor = Color.White,
Margin = new Extents(20, 20, 1, 0),
WidthSpecification = LayoutParamPolicies.MatchParent,
FontStyle = titleFontStyle,
Title = title,
},
Content = content,
- BackgroundColor = new Color("#EFEFEF"),
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification= LayoutParamPolicies.MatchParent,
};