Esempio n. 1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Window = new UIWindow (UIScreen.MainScreen.Bounds);

            var size = new FAViewSize (Window.Bounds.Width-10);
            var controller = new FAViewController (size.FlowLayout(), size);
            var nav = new UINavigationController (controller);
            Window.RootViewController = nav;
            Window.MakeKeyAndVisible ();
            return true;
        }
Esempio n. 2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var size       = new FAViewSize(Window.Bounds.Width - 10);
            var controller = new FAViewController(size.FlowLayout(), size);
            var nav        = new UINavigationController(controller);

            Window.RootViewController = nav;
            Window.MakeKeyAndVisible();
            return(true);
        }
Esempio n. 3
0
        public FAViewController(UICollectionViewFlowLayout layout, FAViewSize size)
            : base(layout)
        {
            _fasize = size;

            _datasource = FA.Empty.Values();
            _searchresult = _datasource;
            _searchbar = new UISearchBar ();
            _searchbar.SearchBarStyle = UISearchBarStyle.Prominent;
            _pinchrecognizer = new UIPinchGestureRecognizer (PinchDetected);

            var searchdelegate = new UISearchFADelegate(this, _searchbar);
            _searchbar.Delegate = searchdelegate;
        }
Esempio n. 4
0
        public FAViewController(UICollectionViewFlowLayout layout, FAViewSize size)
            : base(layout)
        {
            _fasize = size;

            _datasource               = FA.Empty.Values();
            _searchresult             = _datasource;
            _searchbar                = new UISearchBar();
            _searchbar.SearchBarStyle = UISearchBarStyle.Prominent;
            _pinchrecognizer          = new UIPinchGestureRecognizer(PinchDetected);

            var searchdelegate = new UISearchFADelegate(this, _searchbar);

            _searchbar.Delegate = searchdelegate;
        }