Exemplo n.º 1
0
 protected SingleItemSelector(ObservableCollection <TModel> collection,
                              Func <TModel, TModelPresenter> factory,
                              ISelectionPolicy selectionPolicy)
     : base(collection, factory)
 {
     _selectionPolicy = selectionPolicy;
 }
Exemplo n.º 2
0
        public BrowsePivot(IModelItemOwner owner, string stDescription, string stNoContentText, IList listContent)
            : base(owner, stDescription)
        {
            this.m_stNoContentText   = stNoContentText;
            this.m_listContent       = listContent;
            this.m_stContentTemplate = StandardGalleryTemplate;
            this.m_stDetailTemplate  = StandardDetailTemplate;
            CustomSelectionPolicy policy = new CustomSelectionPolicy();

            policy.SelectOnGainFocus         = true;
            policy.ClearSelectionOnLostFocus = true;
            this.m_policyContent             = policy;
        }
Exemplo n.º 3
0
 public StaticHtmlParser(ISelectionPolicy selectionPolicy)
 {
     _selectionPolicy = selectionPolicy;
 }
Exemplo n.º 4
0
 public TestSingleItemSelector(ObservableCollection <ITestItem> models,
                               Func <ITestItem, ITestItemPresenter> func,
                               ISelectionPolicy selectionPolicy)
     : base(models, func, selectionPolicy)
 {
 }
Exemplo n.º 5
0
 public static IHTMLRenderer DefaultRenderer(ISelectionPolicy selectionPolicy)
 {
     return(new StaticHtmlParser(selectionPolicy));
 }
Exemplo n.º 6
0
 public BrowsePivot(IModelItemOwner owner, string stDescription, string stNoContentText, IList listContent)
     : base(owner, stDescription)
 {
     this.m_stNoContentText = stNoContentText;
     this.m_listContent = listContent;
     this.m_stContentTemplate = StandardGalleryTemplate;
     this.m_stDetailTemplate = StandardDetailTemplate;
     CustomSelectionPolicy policy = new CustomSelectionPolicy();
     policy.SelectOnGainFocus = true;
     policy.ClearSelectionOnLostFocus = true;
     this.m_policyContent = policy;
 }