public MetroPageView(RectangleF frame, IEnumerable<MetroPage> pages) : base(frame) { var f = frame; f.Y = 100; this.pgTitle = new ScrollingPageView(f, true); this.pgTitle.Delegate = this; this.pgTitle.AutoresizingMask = UIViewAutoresizing.All; this.AddSubview(this.pgTitle); this.Load(pages); }
public MetroPageView(RectangleF frame, IEnumerable <MetroPage> pages) : base(frame) { var f = frame; f.Y = 100; this.pgTitle = new ScrollingPageView(f, true); this.pgTitle.Delegate = this; this.pgTitle.AutoresizingMask = UIViewAutoresizing.All; this.AddSubview(this.pgTitle); this.Load(pages); }
public ScrollDelegate(ScrollingPageView parent) { this.parent = new WeakReference(parent); }
public override void ViewDidUnload() { base.ViewDidUnload(); // Clear any references to subviews of the main view in order to // allow the Garbage Collector to collect them sooner. // // e.g. myOutlet.Dispose (); myOutlet = null; this.pagedView.RemoveFromSuperview(); this.pagedView.Dispose(); this.pagedView = null; this.ReleaseDesignerOutlets(); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. // we could have been in here previously, if we were unloaded from a memory warning // todo: we need to anchor to bounds for when the in-call status bar appears this.pagedView = new ScrollingPageView(this.contentView.Bounds, false); this.pagedView.AutoresizingMask = UIViewAutoresizing.All; this.pagedView.Delegate = this; this.pagedView.Alpha = 0f; this.contentView.AddSubview(this.pagedView); this.LoadMinions(this.currentPage); UIView.BeginAnimations("loadFadeIn"); UIView.SetAnimationDuration(0.15f); this.pagedView.Alpha = 1f; UIView.CommitAnimations(); var bus = this.context.EventBus; this.lifetime.Add(bus.ObserveOnMainThread().Subscribe(this.OnNextReadModel)); }
public ScrollDelegate(ScrollingPageView parent) { this.parent = new WeakReference(parent); }