Ejemplo n.º 1
0
        void Attach()
        {
            _contentProperty.Attach(OnContentChanged);
            _wrapProperty.Attach(OnLayoutPropertyChanged);
            _scrollProperty.Attach(OnLayoutPropertyChanged);

            HorizontalAlignmentProperty.Attach(OnLayoutPropertyChanged);
            VerticalAlignmentProperty.Attach(OnLayoutPropertyChanged);
            FontFamilyProperty.Attach(OnFontChanged);
            FontSizeProperty.Attach(OnFontChanged);

            HorizontalContentAlignmentProperty.Attach(OnLayoutPropertyChanged);
            VerticalContentAlignmentProperty.Attach(OnLayoutPropertyChanged);
        }