{
return Push(content, null);
}
+
public NaviItem Push(EvasObject content, string title)
{
- IntPtr item = Interop.Elementary.elm_naviframe_item_push(Handle, title, IntPtr.Zero, IntPtr.Zero, content.Handle, null);
+ return Push(content, title, null);
+ }
+
+ public NaviItem Push(EvasObject content, string title, string style)
+ {
+ IntPtr item = Interop.Elementary.elm_naviframe_item_push(Handle, title, IntPtr.Zero, IntPtr.Zero, content.Handle, style);
NaviItem naviItem = NaviItem.FromNativeHandle(item, content);
_itemStack.Add(naviItem);
naviItem.Popped += ItemPoppedHandler;
{
return InsertBefore(before, content, "");
}
+
public NaviItem InsertBefore(NaviItem before, EvasObject content, string title)
{
- IntPtr item = Interop.Elementary.elm_naviframe_item_insert_before(Handle, before, title, IntPtr.Zero, IntPtr.Zero, content, null);
+ return InsertBefore(before, content, title, null);
+ }
+
+ public NaviItem InsertBefore(NaviItem before, EvasObject content, string title, string style)
+ {
+ IntPtr item = Interop.Elementary.elm_naviframe_item_insert_before(Handle, before, title, IntPtr.Zero, IntPtr.Zero, content, style);
NaviItem naviItem = NaviItem.FromNativeHandle(item, content);
int idx = _itemStack.IndexOf(before);
_itemStack.Insert(idx, naviItem);
{
return InsertAfter(after, content, "");
}
+
public NaviItem InsertAfter(NaviItem after, EvasObject content, string title)
{
- IntPtr item = Interop.Elementary.elm_naviframe_item_insert_after(Handle, after, title, IntPtr.Zero, IntPtr.Zero, content, null);
+ return InsertAfter(after, content, title, null);
+ }
+
+ public NaviItem InsertAfter(NaviItem after, EvasObject content, string title, string style)
+ {
+ IntPtr item = Interop.Elementary.elm_naviframe_item_insert_after(Handle, after, title, IntPtr.Zero, IntPtr.Zero, content, style);
NaviItem naviItem = NaviItem.FromNativeHandle(item, content);
int idx = _itemStack.IndexOf(after);
_itemStack.Insert(idx + 1, naviItem);
[DllImport(Libraries.Elementary)]
internal static extern void elm_naviframe_item_pop_to(IntPtr item);
+
+ [DllImport(Libraries.Elementary)]
+ internal static extern void elm_naviframe_item_style_set(IntPtr item, string style);
+
+ [DllImport(Libraries.Elementary, EntryPoint = "elm_naviframe_item_style_get", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, CharSet = CharSet.Ansi)]
+ internal static extern IntPtr _elm_naviframe_item_style_get(IntPtr item);
+ internal static string elm_naviframe_item_style_get(IntPtr item)
+ {
+ var text = _elm_naviframe_item_style_get(item);
+ return Marshal.PtrToStringAnsi(text);
+ }
}
}