Beispiel #1
0
        internal LayoutAnchorControl(LayoutAnchorable model) : this()
        {
            _model = model;
            _model.IsActiveChanged   += _model_IsActiveChanged;
            _model.IsSelectedChanged += _model_IsSelectedChanged;

            SetSide(_model.FindParent <LayoutAnchorSide>().Side);
        }
Beispiel #2
0
        internal LayoutAnchorControl(LayoutAnchorable model)
        {
            _model = model;
            _model.IsActiveChanged   += new EventHandler(_model_IsActiveChanged);
            _model.IsSelectedChanged += new EventHandler(_model_IsSelectedChanged);

            SetSide(_model.FindParent <LayoutAnchorSide>().Side);
        }
 internal LayoutAnchorControl(LayoutAnchorable model)
 {
     _model = model;
     _model.AnchorControl      = this;
     _model.IsActiveChanged   += new EventHandler(_model_IsActiveChanged);
     _model.IsSelectedChanged += new EventHandler(_model_IsSelectedChanged);
     if (_model.Content is FrameworkElement)
     {
         FrameworkElement fele = (FrameworkElement)(_model.Content);
         fele.Loaded += OnModelContentLoaded;
     }
     SetSide(_model.FindParent <LayoutAnchorSide>().Side);
 }