protected void LoadDisplay(Drawable display) { scrollFlow.ScrollToStart(); LoadComponentAsync(display, loaded => { content.Child = loaded; loading.Hide(); }, (cancellationToken = new CancellationTokenSource()).Token); }
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); }
private void onTypingStarted() { // temporary until the textbox/header is updated to always stay on screen. resultScrollContainer.ScrollToStart(); }