示例#1
0
        void Attach()
        {
            _sourceProperty.Attach(OnSourceChanged);
            _fallbackSourceProperty.Attach(OnFallbackSourceChanged);
            _stretchProperty.Attach(OnArrangeGetsInvalid);
            _stretchDirectionProperty.Attach(OnArrangeGetsInvalid);
            _thumbnailProperty.Attach(OnArrangeGetsInvalid);
            _skinNeutralProperty.Attach(OnArrangeGetsInvalid);

            WidthProperty.Attach(OnImageSizeChanged);
            HeightProperty.Attach(OnImageSizeChanged);
        }