protected override void OnSizeAllocated(double width, double height)
        {
            base.OnSizeAllocated(width, height);

            if (_screenSizeHandler.GetScreenSize() == ScreenSizes.Small)
            {
                var orientation = _screenSizeHandler.OnSizeAllocated(width, height);

                if (orientation == Orientations.Landscape)
                {
                    CurrentDate.FontSize         = Device.GetNamedSize(NamedSize.Large, typeof(Label));
                    CalendarNotesButton.FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Button));
                    NoDataImage.IsVisible        = false;
                    _stackOrientation            = StackOrientation.Horizontal;
                    ChangeOrientation();
                }
                if (orientation == Orientations.Portrait)
                {
                    CurrentDate.FontSize         = Device.GetNamedSize(NamedSize.Medium, typeof(Label));
                    CalendarNotesButton.FontSize = Device.GetNamedSize(NamedSize.Medium, typeof(Button));
                    NoDataImage.IsVisible        = true;
                    _stackOrientation            = StackOrientation.Vertical;
                    ChangeOrientation();
                }
            }
        }
        protected override void OnSizeAllocated(double width, double height)
        {
            base.OnSizeAllocated(width, height);

            if (_screenSizeHandler.GetScreenSize() != ScreenSizes.Small)
            {
                return;
            }
            var orientation = _screenSizeHandler.OnSizeAllocated(width, height);

            if (orientation == Orientations.Landscape)
            {
                _stackOrientation = StackOrientation.Horizontal;
                ChangeOrientation();
            }
            if (orientation != Orientations.Portrait)
            {
                return;
            }
            _stackOrientation = StackOrientation.Vertical;
            ChangeOrientation();
        }