Exemplo n.º 1
0
        public MultiRelsizeProperty(string relDefault, ControlSizeNotifier sizeNotifier)
            : base(relDefault)
        {
            double.TryParse(relDefault, out _DefaultRelsize);

            sizeNotifier.HeightUpdated += SizeNotifier_HeightUpdated;
        }
Exemplo n.º 2
0
        public RelsizeProperty(string relDefault, ControlSizeNotifier sizeNotifier, Action <double> actionOnChange = null)
            : base(relDefault)
        {
            double.TryParse(relDefault, out _DefaultRelsize);

            _ActionOnChange = actionOnChange == null ? _NullAction : actionOnChange;

            sizeNotifier.HeightUpdated += SizeNotifier_HeightUpdated;

            this.PropertyChanged += RelsizeProperty_PropertyChanged;
        }