'이벤트'에 해당되는 글 2건

  1. 2019.04.24 이벤트 중복 호출 되지 않게 하는법
  2. 2013.06.17 [win8] 윈8 앱 종료 이벤트
wpf2019. 4. 24. 12:33


        public static event EventHandler MainPageMessageEvent
        {
            add
            {
                if (_mainPageMessageEvent == null || _mainPageMessageEvent.GetInvocationList().Count() == 0)
                    _mainPageMessageEvent += value;
            }

            remove
            {
                _mainPageMessageEvent -= value;
            }
        }

 

 

 

Posted by 동동(이재동)
Windows8 App2013. 6. 17. 18:03

 

종료  이벤트

 

      Application.Current.Suspending += Current_Suspending;
        }

        private void Current_Suspending(object sender, SuspendingEventArgs e)
        {
            //Debug.WriteLine("종료!");
            TileManager.StopTileUpdate();
        }

 

http://stackoverflow.com/questions/16264435/windows-store-app-metro-on-closed-suspend-event-does-not-work

Posted by 동동(이재동)