public AddNewEventPage()
 {
     InitializeComponent();
     oneTimeEvent  = false;
     this.mainPage = (MainPage)App.Current.MainPage;
     stack.Children[0].HeightRequest = mainPage.getUtilPaddingHeight();
 }
Example #2
0
        public ManageEventsPage()
        {
            InitializeComponent();
            this.mainPage = (MainPage)App.Current.MainPage;

            stack.Children[0].HeightRequest = mainPage.getUtilPaddingHeight();

            storedEventsSelected = true;
            myEventsSelected     = false;

            //initialize myEventsGrid
            myEventsGrid = new Grid();
            myEventsGrid.HorizontalOptions = LayoutOptions.FillAndExpand;
            myEventsGrid.VerticalOptions   = LayoutOptions.Start;
            myEventsGrid.ColumnDefinitions = storedEventsGrid.ColumnDefinitions;

            //initialize indicator for selecting mass switches
            selectingIndicator = new ActivityIndicator();
            selectingIndicator.HorizontalOptions = LayoutOptions.FillAndExpand;
            selectingIndicator.VerticalOptions   = LayoutOptions.Center;
            selectingIndicator.Color             = Color.White;
            selectingIndicator.BackgroundColor   = Color.Black;
            selectingIndicator.IsEnabled         = true;
            selectingIndicator.IsRunning         = true;

            populateGrids();
        }
        bool changedFromZero;  //indicates if this is the first time a user changes the time in a new event page

        public AddNewEventPage()
        {
            InitializeComponent();
            allDayEvent            = true;
            oneTimeEvent           = false;
            changedFromZero        = true;
            datePicked.MaximumDate = DateTime.Now.AddDays(9999);

            timePicked.PropertyChanged += TimePicked_PropertyChanged;
            this.mainPage = (MainPage)App.Current.MainPage;
            stack.Children[0].HeightRequest = mainPage.getUtilPaddingHeight();
        }
Example #4
0
        public void displayActivityIndicator()
        {
            var utilPadding = new Label {
                BackgroundColor   = Color.White,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                HeightRequest     = mainPage.getUtilPaddingHeight()
            };

            var logoBanner = new Image {
                Aspect          = Aspect.AspectFit,
                Source          = "LogoWithName.png",
                BackgroundColor = Color.FromHex("#0000dc"),
                Margin          = new Thickness(0, 5, 0, 5)
            };

            var indicator = new ActivityIndicator()
            {
                HorizontalOptions = LayoutOptions.FillAndExpand,
                VerticalOptions   = LayoutOptions.FillAndExpand,
                Color             = Color.White,
                BackgroundColor   = Color.Black,
                IsEnabled         = true,
                IsRunning         = true
            };

            var root = new StackLayout()
            {
                HorizontalOptions = LayoutOptions.FillAndExpand,
                VerticalOptions   = LayoutOptions.FillAndExpand,
                Spacing           = 0,
                BackgroundColor   = Color.Black,
                Children          =
                {
                    utilPadding,
                    logoBanner,
                    indicator
                }
            };

            Content = root;
        }