Ejemplo n.º 1
0
        protected override void OnPrepareConnectedAnimation(ConnectedAnimationService service)
        {
            if (_animationImageElement == null)
            {
                return;
            }

            service.PrepareToAnimate("image", _animationImageElement)?.Also(it =>
            {
                it.Configuration = new DirectConnectedAnimationConfiguration();
            });
        }
Ejemplo n.º 2
0
        private async void CommunicationService_Packet0006Received(object sender, Packet0006ReceivedEventArgs e)
        {
            if (e.IsMoved)
            {
                if (e.SendFrom.Equals(Singleton <GGTService> .Instance.UserName))
                {
                    if (e.NewGroupName.Equals(CurrentLocation.WaitingRoom.ToString()))
                    {
                        if (this.Frame.CanGoBack)
                        {
                            //Singleton<CommunicationService>.Instance.Packet0006Received -= CommunicationService_Packet0006Received;
                            ConnectedAnimationService service = ConnectedAnimationService.GetForCurrentView();
                            service.PrepareToAnimate("PlayingRoomToWaitingRoomTextBlockConnectedAnimation", TextBlock_UserName);
                            UnregisterEvent();
                            this.Frame.GoBack();
                        }
                    }
                }
            }
            else
            {
                if (e.SendFrom.Equals(Singleton <GGTService> .Instance.UserName))
                {
                    ContentDialog dialog = new ContentDialog()
                    {
                        Title           = "입장 실패",
                        Content         = $"{e.Message}",
                        CloseButtonText = "닫기",
                        DefaultButton   = ContentDialogButton.Close
                    };
                    dialog.Loading += async(send, args) => await this.Blur(value : 5, duration : 1000, delay : 0).StartAsync();

                    dialog.Closing += async(send, args) => await this.Blur(value : 0, duration : 500, delay : 0).StartAsync();

                    await dialog.ShowAsync();
                }
            }
        }
Ejemplo n.º 3
0
 protected override void OnPrepareConnectedAnimation(ConnectedAnimationService service)
 {
     base.OnPrepareConnectedAnimation(service);
     service.PrepareToAnimate("text", TextBlock);
 }
Ejemplo n.º 4
0
 protected override void OnPrepareConnectedAnimation(ConnectedAnimationService service)
 {
     service.PrepareToAnimate("image", DetailImage).Configuration = new DirectConnectedAnimationConfiguration();
 }