示例#1
0
        private void ChangeDescription()
        {
            var composer = new Composer {
                Title = "Description", Text = _model.Description
            };

            composer.NewComment(this, () => {
                var text           = composer.Text;
                _model.Description = text;
                composer.CloseComposer();
            });
        }
示例#2
0
            public ComposerView (RectangleF bounds, Composer composer) : base (bounds)
            {
                textView = new UITextView (RectangleF.Empty) {
                    Font = UIFont.SystemFontOfSize (18),
                };
                
                // Work around an Apple bug in the UITextView that crashes
                if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
                    textView.AutocorrectionType = UITextAutocorrectionType.No;

                AddSubview (textView);
            }
示例#3
0
            public ComposerView(RectangleF bounds, Composer composer) : base(bounds)
            {
                textView = new UITextView(RectangleF.Empty)
                {
                    Font = UIFont.SystemFontOfSize(18),
                };

                // Work around an Apple bug in the UITextView that crashes
                if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
                {
                    textView.AutocorrectionType = UITextAutocorrectionType.No;
                }

                AddSubview(textView);
            }
 private void ChangeDescription()
 {
     var composer = new Composer { Title = "Description", Text = _model.Description };
     composer.NewComment(this, () => {
         var text = composer.Text;
         _model.Description = text;
         composer.CloseComposer();
     });
 }