Exemple #1
0
        //private void _viewProvider_ViewRefreshed(object sender, ViewRefreshedEventArgs e)
        //{
        //    System.Diagnostics.Debug.WriteLine("CVS received as ViewRefreshed Event.");
        //}

        //private void Dsp_DataChanged(object sender, EventArgs e)
        //{
        //    System.Diagnostics.Debug.WriteLine("CVS's DSP received as ViewRefreshed Event.");
        //}

        public override object Clone()
        {
            //throw new NotSupportedException($"This Prop Item of type: {typeof(ICViewSourceProp<CollectionViewSource>).Name} does not implement the Clone method.");
            object result = new CViewSourceProp(this.PropertyName, null, this._template);

            return(result);
        }
Exemple #2
0
        public override IProp CreateCVSProp(PropNameType propertyName, IProvideAView viewProvider, IPropTemplate propTemplate)
        {
            IEqualityComparer <CollectionViewSource> comparer = RefEqualityComparer <CollectionViewSource> .Default;

            bool comparerIsRefEquality = true;

            if (propTemplate == null)
            {
                propTemplate = GetPropTemplate <CollectionViewSource>(PropKindEnum.CollectionViewSource, PropStorageStrategyEnum.Internal, comparer.Equals, comparerIsRefEquality, null);
            }
            propTemplate.PropCreator = CookedCVSPropCreator;

            ICViewSourceProp <CollectionViewSource> result = new CViewSourceProp(propertyName, viewProvider, (IPropTemplate <CollectionViewSource>)propTemplate);

            return(result);
        }
Exemple #3
0
        private static IProp CookedCVSPropCreator(string propertyName2, object initialValue2, bool typeIsSolid2, IPropTemplate propTemplate2)
        {
            ICViewSourceProp <CollectionViewSource> result2 = new CViewSourceProp(propertyName2, (IProvideAView)initialValue2, (IPropTemplate <CollectionViewSource>)propTemplate2);

            return(result2);
        }