protected void LoadDisplay(Drawable display)
 {
     scrollFlow.ScrollToStart();
     LoadComponentAsync(display, loaded =>
     {
         content.Child = loaded;
         loading.Hide();
     }, (cancellationToken = new CancellationTokenSource()).Token);
 }
Example #2
0
        private void loadDisplay(Drawable display)
        {
            scrollFlow.ScrollToStart();
            LoadComponentAsync(display, loaded =>
            {
                if (API.IsLoggedIn)
                {
                    loading.Hide();
                }

                content.Child = loaded;
            }, (cancellationToken = new CancellationTokenSource()).Token);
        }
        private void loadContent(Drawable content)
        {
            scrollFlow.ScrollToStart();

            if (content == null)
            {
                contentContainer.Clear();
                loading.Hide();
                return;
            }

            LoadComponentAsync(content, loaded =>
            {
                loading.Hide();
                contentContainer.Child = loaded;
            }, (cancellationToken = new CancellationTokenSource()).Token);
        }
Example #4
0
 private void onTypingStarted()
 {
     // temporary until the textbox/header is updated to always stay on screen.
     resultScrollContainer.ScrollToStart();
 }