Ejemplo n.º 1
0
 private async void FinishColumnLayout()
 {
     Grid.FinishEditing();
     Intent.PutExtra("columnLayout", await ColumnLayoutActivity.SerializeLayout(Grid.ItemsSource as ColumnInfo[]));
     SetResult(Result.Ok, Intent);
     Finish();
 }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            var columnLayout = Intent.Extras.GetString("columnLayout");
            var columns      = ColumnLayoutActivity.DeserializeLayout(columnLayout);

            SetContentView(Resource.Layout.GettingStarted);
            var toolbar = FindViewById <Toolbar>(Resource.Id.toolbar);

            SetSupportActionBar(toolbar);
            SupportActionBar.Title = GetString(Resource.String.ColumnLayoutTitle);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            SupportActionBar.SetHomeButtonEnabled(true);

            Grid             = FindViewById <FlexGrid>(Resource.Id.Grid);
            Grid.ItemsSource = columns;
        }