示例#1
0
        public TabStrip(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            UrlGenerator  = urlGenerator;
            Authorization = authorization;

            Animation = new PopupAnimation();

            Items            = new List <TabStripItem>();
            SelectedIndex    = -1;
            HighlightPath    = true;
            SecurityTrimming = new SecurityTrimming();
        }
示例#2
0
文件: Menu.cs 项目: mslucass/Study
        public Menu(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            Animation = new PopupAnimation();

            UrlGenerator  = urlGenerator;
            Authorization = authorization;

            Items = new LinkedObjectCollection <MenuItem>(null);

            CloseOnClick     = true;
            HighlightPath    = true;
            SecurityTrimming = new SecurityTrimming();
        }
示例#3
0
文件: PanelBar.cs 项目: wanaxe/Study
        public PanelBar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            Authorization = authorization;
            UrlGenerator  = urlGenerator;

            Animation = new ExpandableAnimation();

            ExpandMode    = PanelBarExpandMode.Multiple;
            HighlightPath = true;

            Items = new LinkedObjectCollection <PanelBarItem>(null);

            SelectedIndex    = -1;
            SecurityTrimming = new SecurityTrimming();
        }
示例#4
0
文件: TreeView.cs 项目: wanaxe/Study
        public TreeView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
            : base(viewContext, initializer)
        {
            UrlGenerator  = urlGenerator;
            Authorization = authorization;

            Animation = new ExpandableAnimation();

            this.DragAndDrop = false;

            Items = new LinkedObjectCollection <TreeViewItem>(null);

            SelectedIndex    = -1;
            SecurityTrimming = new SecurityTrimming();

            LoadOnDemand = true;

            Checkboxes = new TreeViewCheckboxesSettings();

            DataSource = new DataSource();

            AutoBind = true;
        }