Guest User

Untitled

a guest
Jan 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public override bool OnOptionsItemSelected(IMenuItem item)
  2. {
  3. if (item.ItemId != global::Android.Resource.Id.Home) return base.OnOptionsItemSelected(item);
  4.  
  5. ViewModel.BackNavigationButtonCommand.Execute();
  6. return true;
  7. }
  8.  
  9. SupportActionBar.SetHomeButtonEnabled(true);
  10. SupportActionBar.SetDisplayHomeAsUpEnabled(true);
  11.  
  12. [Activity(
  13. Label = "Project Wavelength"
  14. , Icon = "@drawable/icon"
  15. , Theme = "@style/Theme.AppCompat.Light.DarkActionBar"
  16. , ScreenOrientation = ScreenOrientation.Portrait
  17. , LaunchMode = LaunchMode.SingleTop)]
  18.  
  19. [Activity(Label = "DevicesWithSensorsForRoom"
  20. , Icon = "@drawable/icon"
  21. , ScreenOrientation = ScreenOrientation.Portrait
  22. , Theme = "@style/Theme.AppCompat.Light.DarkActionBar"
  23. , ParentActivity = typeof(RoomsOverviewActivity)
  24. , LaunchMode = LaunchMode.SingleTop)]
Add Comment
Please, Sign In to add comment