Exemple #1
0
        public StyleListView()
        {
            IsNavigationBarVisible = true;

            Container               = new BaseScrollView();
            Container.Orientation   = ScrollOrientation.Horizontal;
            Container.ScrollEnabled = false;

            BackgroundColor = Background;

            MyStyles        = new StyleContainer();
            MyStyles.Header = StyleContainer.GetHeaderLabel("MY STYLES");

            Templates        = new StyleContainer();
            Templates.Header = StyleContainer.GetHeaderLabel("TEMPLATE STYLES");
            Templates.ContainsRefreshButton = true;

            AddStyle        = new AddStyleItem();
            MyStyles.Footer = AddStyle;

            Tabs = new StyleTabBar();

            FileList = new FileListPopup();
            Webview  = new WebviewPopup();
            Settings = new SettingsPopup();

            SettingsButton = new SettingsButton();
            NavigationBar.AddRightBarButton(SettingsButton);
        }
Exemple #2
0
        public StyleContainer()
        {
            styleList = new BaseScrollView();

            separator = new BaseView {
                BackgroundColor = Color.Black
            };

            RefreshButton           = new RefreshButton();
            RefreshButton.IsVisible = false;
        }
Exemple #3
0
        protected override void OnElementChanged(VisualElementChangedEventArgs e)
        {
            base.OnElementChanged(e);

            if (e.NewElement != null)
            {
                View = (BaseScrollView)e.NewElement;
#if __IOS__
                ScrollEnabled = View.ScrollEnabled;
#endif
            }
        }