How to use margin as property of WPF usercontrol?

Posted by rockrule on Stack Overflow See other posts from Stack Overflow or by rockrule
Published on 2010-06-18T05:18:14Z Indexed on 2010/06/18 5:23 UTC
Read the original article Hit count: 178

How to use margin as property of WPF usercontrol?

    public Double pCusSPAge
    {
        get
        {
            return btnCusSPAge.Margin.Left;
        }
        set
        {
            btnCusSPAge.Margin = new Thickness(value);
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs("pCusSPAge"));
        }
    }

© Stack Overflow or respective owner

Related posts about wpf

Related posts about usercontrols