using SettingBluetooth.res.locale;
using SettingBluetooth.Model;
using SettingBluetooth.Controller;
+using Tizen.Applications;
namespace SettingBluetooth
{
}
}
+ protected void RequestWidgetPop()
+ {
+ // Pop Widget Content by sending message
+ Bundle nextBundle = new Bundle();
+ nextBundle.AddItem("WIDGET_ACTION", "POP");
+ String encodedBundle = nextBundle.Encode();
+ SetContentInfo(encodedBundle);
+ }
+
protected override void OnCreate(string contentInfo, Window window)
{
var appBar = new AppBar()
Title = Resources.IDS_BT_BODY_BLUETOOTH,
};
+ var appBarStyle = ThemeManager.GetStyle("Tizen.NUI.Components.AppBar");
+ var navigationContent = new Button(((AppBarStyle)appBarStyle).BackButton);
+ navigationContent.Clicked += (o, e) =>
+ {
+ RequestWidgetPop();
+ };
+ appBar.NavigationContent = navigationContent;
+
mMainView = new View()
{
Layout = new LinearLayout()
Content = mMainView,
};
+ window.BackgroundColor = Color.Transparent;
window.GetDefaultNavigator().Push(mMainPage);
}
}