void Attach()
 {
     _contentTemplateProperty.Attach(OnContentTemplateChanged);
     _contentProperty.Attach(OnContentChanged);
     HorizontalContentAlignmentProperty.Attach(OnContentAlignmentChanged);
     VerticalContentAlignmentProperty.Attach(OnContentAlignmentChanged);
     TemplateControlProperty.Attach(OnTemplateControlChanged);
 }
Example #2
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);
        }