}
else
{
- //elm_toobar style and size hint must be changed at least once before adding the toolbar item having icon.
if (!hasIcon)
{
- int windowHeight = Forms.Context.MainWindow.Geometry.Height;
- //This value is from efl-theme-tizen-mobile theme. (NAVIFRAME_TABBAR_HEIGHT_WITH_TITLE_INC 80)
- double requiredToolbarHeight = 80.0;
- double toolBarWeight = requiredToolbarHeight/windowHeight;
_tpage.Style="tabbar";
- _tpage.TransverseExpansion = true;
- _tpage.SetAlignment(-1,-1);
- _tpage.SetWeight(1, toolBarWeight);
- _box.SetAlignment(-1,-1);
- _box.SetWeight(1, 1- toolBarWeight);
hasIcon = true;
}
toolbarItem = _tpage.Append(child.Title, ResourcePath.GetPath(child.Icon));