using System.Windows;

namespace FirstDataBinding
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            //// nowy obiekt Binding
            //Binding binding = new Binding();
            //// obiekt docelowy
            //binding.Source = slider1;
            //// ustawienie właściwości docelowej
            //binding.Path = new PropertyPath("Value");
            //// dołączanie wartości do właściwości docelowych
            //rectangle1.SetBinding(Rectangle.RadiusXProperty, binding);
            //rectangle1.SetBinding(Rectangle.RadiusYProperty, binding);
        }

        private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            //rectangle1.RadiusX = slider1.Value;
            //rectangle1.RadiusY = slider1.Value;
        }
    }
}
