Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ private bool CanExecuteOnDemandLoading(object sender)
/// Execute method is called when any item is requested for load-on-demand items.
/// </summary>
/// <param name="obj">TreeViewNode is passed as default parameter </param>
private async void ExecuteOnDemandLoading(object obj)
private void ExecuteOnDemandLoading(object obj)
{
var node = obj as TreeViewNode;
node.ShowExpanderAnimation = true;
LoadOnDemandModel loadOnDemandModel = node.Content as LoadOnDemandModel;
await Application.Current.Resources.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =>

Application.Current.Resources.DispatcherQueue.TryEnqueue(() =>
{
await Task.Delay(2000).ConfigureAwait(true);
var items = GetSubMenu(loadOnDemandModel.ID);
node.PopulateChildNodes(items);
if (items.Any())
Expand Down