Esempio n. 1
0
        public TopNavigationViewDataProvider(NavigationView owner) : base(5)
        {
            //Wow Microsoft, creative naming
            Func <object, int> lambda = (object value) =>
            {
                return(IndexOf(value));
            };

            var primaryVector   = new SplitVector <object, NavigationViewSplitVectorID>(NavigationViewSplitVectorID.PrimaryList, lambda);
            var secondaryVector = new SplitVector <object, NavigationViewSplitVectorID>(NavigationViewSplitVectorID.OverflowList, lambda);

            InitializeSplitVectors(primaryVector, secondaryVector);
        }
Esempio n. 2
0
 public SplitDataSourceBase(int vectorIdSize)
 {
     splitVectors = new SplitVector <T, TVectorID> [vectorIdSize];
 }