Menu covers the window size to dismiss Menu when outside of Menu is touched.
Therefore, Menu's BackgroundColor should be transparent and Menu Content's
BackgroundColor should be set instead.
WidthSpecification = LayoutParamPolicies.WrapContent;
HeightSpecification = LayoutParamPolicies.WrapContent;
+ BackgroundColor = Color.Transparent;
+
// Menu is added to Anchor so Menu should exclude layouting because
// if Anchor has Layout, then Menu is displayed at an incorrect position.
ExcludeLayouting = true;
ScrollingDirection = ScrollableBase.Direction.Vertical,
ScrollEnabled = true,
HideScrollbar = false,
+
+ // FIXME: This color should be in DefaultThemeCommon.cs.
+ BackgroundColor = new Color("#EEEFF1"),
};
}
}
});
- // Menu base style
- theme.AddStyleWithoutClone("Tizen.NUI.Components.Menu", new ViewStyle()
- {
- BackgroundColor = new Color("#EEEFF1"),
- });
-
// MenuItem base style
theme.AddStyleWithoutClone("Tizen.NUI.Components.MenuItem", new ButtonStyle()
{