카테고리 없음

[은빛] Windows Phone의 ScheduledTaskAgent에서 이미지를 자르는 방법

행복을전해요 2021. 1. 21. 05:22

백그라운드 에이전트에서도 디스패처 (따라서 UI 스레드)를 사용할 수 있습니다.

protected override void OnInvoke(ScheduledTask task)
{
    Deployment.Current.Dispatcher.BeginInvoke(() =>
        {
                // Use the WriteableBitmap here
                
                        this.NotifyComplete();
                            });
                            }
                            


출처
https://stackoverflow.com/questions/22008891