How to Know When a FrameworkElement Has Been Totally Rendered?

后端 未结 2 581
醉话见心
醉话见心 2021-01-02 08:18

For WPF there is the ContentRendered event in the Window class which let us know when the visual elements have been rendered.

Is there anyt

2条回答
  •  旧巷少年郎
    2021-01-02 08:41

    This worked well for me before in similar scenarios:

        ...
        await Dispatcher.RunAsync(CoreDispatcherPriority.Low, DoYourThing);
        ...
    
        private void DoYourThing()
        {
    
        }
    

提交回复
热议问题