Beispiel #1
0
        public override bool IsCompatible(
            IVirtualizedElement <GridViewColumn> element,
            GridViewColumn data,
            object context)
        {
            Type cellType = ((GridRowElement)context).GetCellType(data);
            Type type     = element.GetType();

            if ((object)cellType != null && cellType.IsAssignableFrom(type))
            {
                return(element.IsCompatible(data, context));
            }
            return(false);
        }
Beispiel #2
0
 public virtual bool IsCompatible(IVirtualizedElement <T> element, T data, object context)
 {
     return(element.IsCompatible(data, context));
 }
Beispiel #3
0
 public bool IsCompatible(IVirtualizedElement <int> element, int data, object context)
 {
     return(element.IsCompatible(data, context));
 }