Exemple #1
0
 internal ViewRecord GetViewRecord(object collection, Appercode.UI.Data.CollectionViewSource cvs)
 {
     ViewTable item = this[collection];
     ViewRecord viewRecord = null;
     if (item != null)
     {
         viewRecord = item[cvs];
         if (viewRecord != null)
         {
             return viewRecord;
         }
     }
     return this.CreateAndCacheNewView(collection, cvs);
 }
Exemple #2
0
 internal static void AddCustomTemplateRoot(Appercode.UI.Controls.UIElement container, Appercode.UI.Controls.UIElement uiElement)
 {
     throw new NotImplementedException();
 }
 internal PropertyPathListener(PropertyPath path, object source, bool listenToChanges, Appercode.UI.Data.BindingExpression exp)
 {
     this.expression = exp;
     this.ConnectToSource(path, source, listenToChanges);
 }
 internal CollectionViewGroupRoot(Appercode.UI.Data.CollectionView view)
     : base((object)"Root", (CollectionViewGroupInternal)null)
 {
     this.view = view;
 }
Exemple #5
0
 private ViewRecord CreateAndCacheNewView(object collection, Appercode.UI.Data.CollectionViewSource cvs)
 {
     ICollectionView collectionViews = this.CreateNewView(collection);
     ViewTable viewTable = this.EnsureViewTableForCollection(collection);
     ViewRecord viewRecord = new ViewRecord(collectionViews);
     viewTable[cvs] = viewRecord;
     ((IViewLifetime)collectionViews).ViewManagerData = viewTable;
     this.Cleanup();
     return viewRecord;
 }
Exemple #6
0
 internal PropertyPathListener GetListener(object source, bool listenToChanges, Appercode.UI.Data.BindingExpression exp)
 {
     return new PropertyPathListener(this, source, listenToChanges, exp);
 }
 internal static void AddNodeToLogicalTree(DependencyObject parent, Type type, bool treeNodeIsFE, Appercode.UI.Controls.UIElement treeNodeFE, Appercode.UI.Controls.UIElement treeNodeFCE)
 {
     Appercode.UI.Controls.UIElement frameworkContentElement = parent as Appercode.UI.Controls.UIElement;
     if (frameworkContentElement != null)
     {
         IEnumerator logicalChildren = frameworkContentElement.LogicalChildren;
         if (logicalChildren != null && logicalChildren.MoveNext())
         {
             throw new InvalidOperationException("AlreadyHasLogicalChildren");
         }
     }
     IAddChild addChild = parent as IAddChild;
     if (addChild == null)
     {
         throw new InvalidOperationException("CannotHookupFCERoot");
     }
     if (treeNodeFE != null)
     {
         addChild.AddChild(treeNodeFE);
         return;
     }
     addChild.AddChild(treeNodeFCE);
 }