Exemplo n.º 1
0
            /// <summary>
            /// Initializes a new SimplePropertyMap instance mapping for a calculated
            /// value.
            /// </summary>
            private static SimplePropertyMap FromDelegate(DependencyProperty property,
                                                          CalculateValueCallback callback, string xmlName)
            {
                SimplePropertyMap result = new SimplePropertyMap();

                result.Property       = property;
                result.CalculateValue = callback;
                result.XmlName        = xmlName;

                return(result);
            }
Exemplo n.º 2
0
            /// <summary>
            /// Initializes a new SimplePropertyMap instance mapping for a calculated
            /// value.
            /// </summary>
            private static SimplePropertyMap FromDelegate(DependencyProperty property,
                CalculateValueCallback callback, string xmlName)
            {
                SimplePropertyMap result = new SimplePropertyMap();

                result.Property = property;
                result.CalculateValue = callback;
                result.XmlName = xmlName;

                return result;
            }