Пример #1
0
        private void CommonInit()
        {
            ContentView       = ViewFromNib();
            ContentView.Frame = Frame;

            NoInternetLabel.Text        = Localize.GetText("State.NoInternet.Message");
            UpdateButton.TouchUpInside += (sender, e) => {
                RefreshCommand.Execute();
            };
            AddSubview(ContentView);

            ContentView.LeadingAnchor.ConstraintEqualTo(LeadingAnchor).Active   = true;
            ContentView.TrailingAnchor.ConstraintEqualTo(TrailingAnchor).Active = true;
            ContentView.BottomAnchor.ConstraintEqualTo(BottomAnchor).Active     = true;
            ContentView.TopAnchor.ConstraintEqualTo(TopAnchor).Active           = true;

            LOTAnimationView lottie = LOTAnimationView.AnimationNamed("no-internet-connection");

            lottie.ContentMode = UIViewContentMode.ScaleAspectFit;
            LottieView.Frame   = new CGRect(LottieView.Frame.X, LottieView.Frame.Y, Frame.Width, Frame.Width);

            LottieView.AddSubview(lottie);
            lottie.Frame = LottieView.Bounds;
            lottie.SetFillXContraintTo(LottieView);
            lottie.LoopAnimation = true;
            lottie.Play();
        }
Пример #2
0
        private UIView GetIndicatorView(string loadingStatus)
        {
            var container = GetCurrentMainLoadingContainer();

            container.BackgroundColor = UIColor.FromRGBA(0, 0, 0, 50);
            var spinnerContentView = new UIView {
                TranslatesAutoresizingMaskIntoConstraints = false
            };

            spinnerContentView.BackgroundColor    = UIColor.White;
            spinnerContentView.Layer.CornerRadius = 10;
            AddSpinnerContentViewToParentWithConstraints(container, spinnerContentView);
            _animationView = LOTAnimationView.AnimationNamed("loader.json");
            _animationView.TranslatesAutoresizingMaskIntoConstraints = false;
            _animationView.LoopAnimation     = true;
            spinnerContentView.ClipsToBounds = true;
            _label = new UILabel
            {
                Text          = loadingStatus,
                TextColor     = UIColor.FromRGB(57, 57, 57),
                TextAlignment = UITextAlignment.Center,
                Lines         = 0,
                TranslatesAutoresizingMaskIntoConstraints = false,
            };
            _label.SizeToFit();
            AddLoaderToParentWithConstraints(spinnerContentView, _animationView, _label);
            _animationView.Play();

            return(container);
        }
Пример #3
0
        public static void LoadingInView(string animationName, UIView view, bool shouldAnimate)
        {
            if (shouldAnimate)
            {
                view.Hidden            = false;
                _lottieAnimation       = LOTAnimationView.AnimationNamed(animationName);
                _lottieAnimation.Frame = new CGRect(0, 0, view.Frame.Width, view.Frame.Height);
                view.AddSubview(_lottieAnimation);
                _lottieAnimation.LoopAnimation     = true;
                _lottieAnimation.Hidden            = false;
                _lottieAnimation.AnimationProgress = 0;
                _lottieAnimation.Play();
            }
            else
            {
                view.Hidden = true;

                if (_lottieAnimation != null)
                {
                    _lottieAnimation.Hidden = true;
                    _lottieAnimation.Pause();
                    _lottieAnimation?.Dispose();
                    _lottieAnimation = null;
                }
            }
        }
Пример #4
0
        private void LoadingAnimation(bool animate)
        {
            if (_lottieAnimation == null)
            {
                _lottieAnimation = LOTAnimationView.AnimationNamed("progress_refresh");
            }

            if (animate)
            {
                var size = ScreenWidth / 4 + 8;
                _lottieAnimation.Frame = new CGRect(size, _navBarView.Frame.Height - 2.7f, ScreenWidth - size * 2, 2.5f);
                _lottieAnimation.Layer.CornerRadius = 0.8f;
                _navBarView.AddSubview(_lottieAnimation);
                _lottieAnimation.LoopAnimation     = true;
                _lottieAnimation.ContentMode       = UIViewContentMode.Redraw;
                _lottieAnimation.Hidden            = false;
                _lottieAnimation.AnimationProgress = 0;
                _lottieAnimation.Play();
            }
            else
            {
                _lottieAnimation.Hidden = true;
                _lottieAnimation?.Pause();
            }
        }
Пример #5
0
 public static void LoadingInChat(UIView view, bool shouldAnimate)
 {
     if (shouldAnimate)
     {
         _lottieAnimation = LOTAnimationView.AnimationNamed("progress_refresh");
         var size = _mainViewSize / 4 + 8;
         _lottieAnimation.Frame = new CGRect(size, view.Frame.Height - 2.7f, _mainViewSize - size * 2, 2.5f);
         _lottieAnimation.Layer.CornerRadius = 0.8f;
         view.AddSubview(_lottieAnimation);
         _lottieAnimation.LoopAnimation     = true;
         _lottieAnimation.ContentMode       = UIViewContentMode.Redraw;
         _lottieAnimation.Hidden            = false;
         _lottieAnimation.AnimationProgress = 0;
         _lottieAnimation.Play();
     }
     else
     {
         if (_lottieAnimation != null)
         {
             _lottieAnimation.Hidden = true;
             _lottieAnimation.Pause();
             _lottieAnimation?.Dispose();
             _lottieAnimation = null;
         }
     }
 }
Пример #6
0
        private void CommonInit()
        {
            ContentView = ViewFromNib();

            NoDataLabel.Text = Localize.GetText("State.NoDate");

            ContentView.Frame            = Frame;
            ContentView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight & UIViewAutoresizing.FlexibleWidth;
            AutoresizingMask             = UIViewAutoresizing.FlexibleHeight & UIViewAutoresizing.FlexibleWidth;

            AddSubview(ContentView);

            TranslatesAutoresizingMaskIntoConstraints             = false;
            ContentView.TranslatesAutoresizingMaskIntoConstraints = false;

            ContentView.LeadingAnchor.ConstraintEqualTo(LeadingAnchor).Active   = true;
            ContentView.TrailingAnchor.ConstraintEqualTo(TrailingAnchor).Active = true;
            ContentView.BottomAnchor.ConstraintEqualTo(BottomAnchor).Active     = true;
            ContentView.TopAnchor.ConstraintEqualTo(TopAnchor).Active           = true;

            LOTAnimationView lottie = LOTAnimationView.AnimationNamed("no-data");

            lottie.ContentMode = UIViewContentMode.ScaleAspectFit;
            LottieView.Frame   = new CGRect(LottieView.Frame.X, LottieView.Frame.Y, Frame.Width, Frame.Width);
            lottie.Frame       = LottieView.Frame;
            LottieView.AddSubview(lottie);
            lottie.SetFillXContraintTo(LottieView, 16);
            lottie.SetFillYContraintTo(LottieView, 16);
            lottie.SetBottomContraintTo(LottieView, 0, NSLayoutRelation.GreaterThanOrEqual);
            AddConstraint(NSLayoutConstraint.Create(lottie, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, this, NSLayoutAttribute.CenterY, 1, 0));
            lottie.Play();
        }
Пример #7
0
        public static void CustomButtomLoadingAnimation(string animation, UIButton button, string viewText, bool shouldAnimate)
        {
            if (shouldAnimate)
            {
                _lottieAnimation             = LOTAnimationView.AnimationNamed(animation);
                _lottieAnimation.ContentMode = UIViewContentMode.ScaleAspectFit;
                _lottieAnimation.Frame       = button.Frame;
                button.AddSubview(_lottieAnimation);
                _lottieAnimation.LoopAnimation = true;

                button.SetTitle("", UIControlState.Normal);
                _lottieAnimation.AnimationProgress = 0;
                _lottieAnimation.Hidden            = false;
                _lottieAnimation.Play();
            }
            else
            {
                if (_lottieAnimation != null)
                {
                    _lottieAnimation.Hidden = true;
                    _lottieAnimation.Pause();
                    _lottieAnimation?.Dispose();
                    _lottieAnimation = null;
                }

                button.SetTitle(viewText, UIControlState.Normal);
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            LOTAnimationView animation = LOTAnimationView.AnimationNamed("heart");

            View.AddSubview(animation);
            animation.Play();
        }
Пример #9
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            MvxFluentBindingDescriptionSet <TabDetailsView, TabDetailsViewModel> set = this.CreateBindingSet <TabDetailsView, TabDetailsViewModel>();

            //ANIMATIES OPVRAGEN, GROTE INSTELLEN, SCALEN, LOOP & BINDEN MET HUN IMAGE
            this._uvIndexAnimation             = LOTAnimationView.AnimationNamed("UVIndexAnim.json"); //your animation name for the uv sun
            this._uvIndexAnimation.Frame       = new CoreGraphics.CGRect(0, 0, 50, 50);               //Depending on the dimensions of you animation and cell
            this._uvIndexAnimation.ContentMode = UIViewContentMode.ScaleAspectFill;
            this.imgUvInd.AddSubview(this._uvIndexAnimation);

            this._pressureAnimation               = LOTAnimationView.AnimationNamed("Pressure.json");
            this._pressureAnimation.Frame         = new CoreGraphics.CGRect(0, 0, 50, 50); //Depending on the dimensions of you animation and cell
            this._pressureAnimation.ContentMode   = UIViewContentMode.ScaleAspectFill;
            this._pressureAnimation.LoopAnimation = true;
            this.imgPress.AddSubview(this._pressureAnimation);

            this._humidityAnimation             = LOTAnimationView.AnimationNamed("Humidity.json");
            this._humidityAnimation.Frame       = new CoreGraphics.CGRect(0, 0, 50, 50); //Depending on the dimensions of you animation and cell
            this._humidityAnimation.ContentMode = UIViewContentMode.ScaleAspectFill;
            this.imgHum.AddSubview(this._humidityAnimation);

            this._visibilityAnimation               = LOTAnimationView.AnimationNamed("Visibility.json");
            this._visibilityAnimation.Frame         = new CoreGraphics.CGRect(0, 0, 50, 50); //Depending on the dimensions of you animation and cell
            this._visibilityAnimation.ContentMode   = UIViewContentMode.ScaleAspectFill;
            this._visibilityAnimation.LoopAnimation = true;
            this.imgVis.AddSubview(this._visibilityAnimation);

            this._dewpointAnimation             = LOTAnimationView.AnimationNamed("dewing.json");
            this._dewpointAnimation.Frame       = new CoreGraphics.CGRect(0, 0, 50, 50); //Depending on the dimensions of you animation and cell
            this._dewpointAnimation.ContentMode = UIViewContentMode.ScaleAspectFill;
            this.imgDew.AddSubview(this._dewpointAnimation);

            this._apparenttempAnimation               = LOTAnimationView.AnimationNamed("apparenttemp.json");
            this._apparenttempAnimation.Frame         = new CoreGraphics.CGRect(0, 0, 50, 50); //Depending on the dimensions of you animation and cell
            this._apparenttempAnimation.ContentMode   = UIViewContentMode.ScaleAspectFill;
            this._apparenttempAnimation.LoopAnimation = true;
            this.imgApparentTemp.AddSubview(this._apparenttempAnimation);

            //set.Bind(_uvIndexAnimation).For(ani => ani.SceneModel);

            /*
             * .To(rev => rev.Weather.Currently.UvIndex)
             * .WithConversion<StringToImageConverter>();
             */

            //Alle details binden met de waarden
            set.Bind(lblApparentTemp).To(vm => vm.Weather.Currently.ApparentTemp);
            set.Bind(lblHum).To(vm => vm.Weather.Currently.Hum);
            set.Bind(lblUv).To(vm => vm.Weather.Currently.UvIndex);
            set.Bind(lblVis).To(vm => vm.Weather.Currently.Vis);
            set.Bind(lblDew).To(vm => vm.Weather.Currently.Dew);
            set.Bind(lblPress).To(vm => vm.Weather.Currently.Press);

            set.Apply();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.lottieLogo               = LOTAnimationView.AnimationNamed("video_cam");
            this.lottieLogo.ContentMode   = UIViewContentMode.ScaleAspectFill;
            this.lottieLogo.LoopAnimation = true;
            this.View.AddSubview(this.lottieLogo);
        }
Пример #11
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     this.lottieLogo                  = LOTAnimationView.AnimationNamed("LottieLogo1");
     this.lottieLogo.ContentMode      = UIViewContentMode.ScaleAspectFill;
     this.lottieLogo.Frame            = this.View.Bounds;
     this.lottieLogo.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
     this.lottieLogo.LoopAnimation    = true;
     this.View.AddSubview(this.lottieLogo);
 }
Пример #12
0
        private void AddAnimationView()
        {
            if (!animationAdded)
            {
                var loadingAnimation = LOTAnimationView.AnimationNamed("truckAnimation");
                loadingAnimation.Play();

                this.AddSubview(loadingAnimation);
            }
        }
Пример #13
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     this.lottieLogo                  = LOTAnimationView.AnimationNamed("LottieLogo1");
     this.lottieLogo.ContentMode      = LOTViewContentMode.ScaleAspectFill;
     this.lottieLogo.Frame            = this.View.Bounds;
     this.lottieLogo.AutoresizingMask = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable;
     this.lottieLogo.LoopAnimation    = true;
     this.View.AddSubview(this.lottieLogo);
 }
Пример #14
0
        private void LoadAnimationNamed(string named)
        {
            this.laAnimation.RemoveFromSuperview();
            this.laAnimation = null;
            this.ResetAllButtons();

            this.laAnimation             = LOTAnimationView.AnimationNamed(named);
            this.laAnimation.ContentMode = UIViewContentMode.ScaleAspectFit;
            this.View.AddSubview(this.laAnimation);
            this.View.SetNeedsLayout();
        }
Пример #15
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var viewAnimation = LOTAnimationView.AnimationNamed("Logo");

            View.AddSubview(viewAnimation);
            viewAnimation.PlayWithCompletion((finished) =>
            {
                UIApplication.SharedApplication.Delegate.FinishedLaunching(UIApplication.SharedApplication,
                                                                           new Foundation.NSDictionary());
            });
        }
Пример #16
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var animationView = LOTAnimationView.AnimationNamed("18066_covid_green");

            this.View.AddSubview(animationView);
            animationView.PlayWithCompletion((animationFinished) =>
            {
                UIApplication.SharedApplication.Delegate.FinishedLaunching(UIApplication.SharedApplication,
                                                                           new Foundation.NSDictionary());
            });
        }
        // Shared initialization code
        void Initialize()
        {
            RegisterForDraggedTypes(new string[] { NSPasteboard.NSFilenamesType });

            this.lottieLogo                  = LOTAnimationView.AnimationNamed("LottieLogo1");
            this.lottieLogo.ContentMode      = LOTViewContentMode.ScaleAspectFill;
            this.lottieLogo.Frame            = this.Bounds;
            this.lottieLogo.AutoresizingMask = NSViewResizingMask.WidthSizable |
                                               NSViewResizingMask.HeightSizable;

            this.lottieLogo.Layer.ZPosition = -10000;
            this.AddSubview(this.lottieLogo);
        }
Пример #18
0
        public LoadingOverlay(CGRect frame, string text = "") : base(frame)
        {
            BackgroundColor          = UIColor.FromWhiteAlpha(0, 0.2f);
            _animation               = LOTAnimationView.AnimationNamed("Animations/preloader");
            _animation.ContentMode   = UIViewContentMode.ScaleAspectFit;
            _animation.Frame         = frame;
            _animation.LoopAnimation = true;
            _animation.Play();
            Alpha = 0.75f;
            Add(_animation);
            Frame = frame;

            AutoresizingMask = UIViewAutoresizing.All;
            //nfloat labelHeight = 22;
            //nfloat labelWidth = Frame.Width - 20;

            //// derive the center x and y
            //nfloat centerX = Frame.Width / 2;
            //nfloat centerY = Frame.Height / 2;

            // create the activity spinner, center it horizontall and put it 5 points above center x
            //activitySpinner = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
            //activitySpinner.Color = ConstantsiOS.GeneralRedColor;
            //activitySpinner.Frame = new CGRect(
            //	centerX - (activitySpinner.Frame.Width / 2),
            //	centerY - activitySpinner.Frame.Height - 20,
            //	activitySpinner.Frame.Width,
            //	activitySpinner.Frame.Height);
            //activitySpinner.AutoresizingMask = UIViewAutoresizing.All;
            //AddSubview(activitySpinner);
            //activitySpinner.StartAnimating();

            //// create and configure the "Loading Data" label
            //loadingLabel = new UILabel(new CGRect(
            //	centerX - (labelWidth / 2),
            //	centerY + 20,
            //	labelWidth,
            //	labelHeight
            //	));
            //loadingLabel.BackgroundColor = UIColor.Clear;
            ////loadingLabel.TextColor = ConstantsiOS.LabelDarkGrayColor;
            //if (!string.IsNullOrEmpty(text))
            //	loadingLabel.Text = text;
            //else
            //{
            //	loadingLabel.Text = "Loading"; //TranslationExtension.LanguageBundle.LocalizedString("Mobile_Loading", "");
            //}
            //loadingLabel.TextAlignment = UITextAlignment.Center;
            //loadingLabel.AutoresizingMask = UIViewAutoresizing.All;
            //AddSubview(loadingLabel);
        }
Пример #19
0
        public void UpdateCell(string title, string subtitle, bool shouldShowLottie)
        {
            FontUtil.ApplyFontAttribute(this);
            this.TitleLabel.Text    = title;
            this.SubtitleLabel.Text = subtitle;

            if (shouldShowLottie)
            {
                LOTAnimationView animation = LOTAnimationView.AnimationNamed("RightArrow");
                animation.Frame         = this.ImageView.Bounds;
                animation.LoopAnimation = true;
                this.ImageView.AddSubview(animation);
                animation.Play();
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.BackgroundColor = UIColor.White;

            animationView = LOTAnimationView.AnimationNamed("trophy");

            View.AddSubview(animationView);

            animationView.PlayWithCompletion((animationFinished) =>
            {
                UIApplication.SharedApplication.Delegate.FinishedLaunching(UIApplication.SharedApplication,
                                                                           new Foundation.NSDictionary());
            });
        }
Пример #21
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            var viewAnimation = LOTAnimationView.AnimationNamed("ironman");
            var boundSize     = UIScreen.MainScreen.Bounds.Size;

            viewAnimation.Frame       = new CGRect(x: 0, y: 0, width: boundSize.Width, height: boundSize.Height);
            viewAnimation.ContentMode = UIViewContentMode.ScaleAspectFit;

            View.AddSubview(viewAnimation);
            viewAnimation.PlayWithCompletion((finished) =>
            {
                UIApplication.SharedApplication.Delegate.FinishedLaunching(UIApplication.SharedApplication,
                                                                           new Foundation.NSDictionary());
            });
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var AnimationNamed = "intro";

            if (UIDevice.CurrentDevice.CheckSystemVersion(12, 0))
            {
                var userInterfaceStyle = TraitCollection.UserInterfaceStyle;
                if (userInterfaceStyle == UIUserInterfaceStyle.Dark)
                {
                    AnimationNamed = "introdm";
                }
            }

            animation = LOTAnimationView.AnimationNamed(AnimationNamed);
            viewAnimation.AddSubview(animation);
        }
Пример #23
0
        public void StartLoading(LoadingColor color)
        {
            StopLoading();

            _lottieAnimation             = color == LoadingColor.Blue ? LOTAnimationView.AnimationNamed("load_blue") : LOTAnimationView.AnimationNamed("load_white");
            _lottieAnimation.ContentMode = UIViewContentMode.ScaleAspectFit;

            if (_view == null)
            {
                _view = ((AppDelegate)UIApplication.SharedApplication.Delegate).Window;
            }

            _lottieAnimation.Frame  = new CGRect(0, 0, 90, 90);
            _lottieAnimation.Center = _view.Center;

            _view.AddSubview(_lottieAnimation);
            _lottieAnimation.LoopAnimation = true;
            _lottieAnimation.Play();
        }
Пример #24
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.lottieLogo             = LOTAnimationView.AnimationNamed("LottieLogo1");
            this.lottieLogo.ContentMode = UIViewContentMode.ScaleAspectFill;
            this.View.AddSubview(this.lottieLogo);

            this.lottieButton = new UIButton(UIButtonType.Custom);
            this.lottieButton.AddTarget((sender, e) => { PlayLottieAnimation(); }, UIControlEvent.TouchUpInside);
            this.View.AddSubview(lottieButton);

            this.tableView = new UITableView(CGRect.Empty, UITableViewStyle.Plain);

            var source = new TableSource();

            source.ItemSelected  += Source_ItemSelected;
            this.tableView.Source = source;
            this.View.Add(this.tableView);
        }
        private void InitAnimationView()
        {
            if (_loadingAnimationView != null)
            {
                _loadingAnimationView.RemoveFromSuperview();
            }

            _loadingAnimationView = LOTAnimationView.AnimationNamed("lottie_pull_to_refresh");
            _loadingAnimationView.ClipsToBounds  = true;
            _loadingAnimationView.AnimationSpeed = 3.0f;
            _loadingAnimationView.ContentMode    = UIViewContentMode.ScaleAspectFill;
            _loadingAnimationView.LoopAnimation  = true;
            _loadingAnimationView.TranslatesAutoresizingMaskIntoConstraints = false;
            this.AddSubview(_loadingAnimationView);
            var animationCenterX = NSLayoutConstraint.Create(_loadingAnimationView, NSLayoutAttribute.CenterX, NSLayoutRelation.Equal, this, NSLayoutAttribute.CenterX, 1f, 0f);
            //var animationCenterY = NSLayoutConstraint.Create(_loadingAnimationView, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, refreshControl, NSLayoutAttribute.CenterY, 1f, 0f);
            var animationWidth  = NSLayoutConstraint.Create(_loadingAnimationView, NSLayoutAttribute.Width, NSLayoutRelation.Equal, this, NSLayoutAttribute.Width, 0.3f, 0f);
            var animationHeight = NSLayoutConstraint.Create(_loadingAnimationView, NSLayoutAttribute.Height, NSLayoutRelation.Equal, this, NSLayoutAttribute.Height, 1f, 0f);

            this.AddConstraint(animationCenterX);
            //this.AddConstraint(animationCenterY);
            this.AddConstraint(animationWidth);
            this.AddConstraint(animationHeight);
        }
        public void SetCharacter(string character)
        {
            string sanatizedChar = character.Substring(0, 1);
            bool   valid         = Regex.IsMatch(sanatizedChar, @"^[a-z]+$", RegexOptions.IgnoreCase);


            if (character.Equals("BlinkingCursor"))
            {
                sanatizedChar = character;
            }

            if (sanatizedChar.Equals(","))
            {
                sanatizedChar = "Comma";
                valid         = true;
            }
            else if (sanatizedChar.Equals("'"))
            {
                sanatizedChar = "Apostrophe";
                valid         = true;
            }
            else if (sanatizedChar.Equals(":"))
            {
                sanatizedChar = "Colon";
                valid         = true;
            }
            //else if (sanatizedChar.Equals("?"))
            //{
            //    sanatizedChar = "QuestionMark";
            //    valid = true;
            //}
            //else if (sanatizedChar.Equals("!"))
            //{
            //    sanatizedChar = "ExclamationMark";
            //    valid = true;
            //}
            //else if (sanatizedChar.Equals("."))
            //{
            //    sanatizedChar = "Period";
            //    valid = true;
            //}


            if (sanatizedChar.Equals(this.character))
            {
                return;
            }

            this.animationView?.RemoveFromSuperview();
            this.animationView = null;
            this.character     = null;

            if (!valid)
            {
                return;
            }


            this.character                 = sanatizedChar;
            this.animationView             = LOTAnimationView.AnimationNamed("TypeFace/" + sanatizedChar);
            this.animationView.ContentMode = UIViewContentMode.ScaleAspectFit;
            this.ContentView.AddSubview(this.animationView);
            CGRect c = this.ContentView.Bounds;

            this.animationView.Frame = new CGRect(-c.Size.Width, 0, c.Size.Width * 3, c.Size.Height);
        }