Exemplo n.º 1
0
        private void SubElemX_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            SubElementsX.ForEach(x => x.SuspendPropertyChange = true);


            SubElements.ForEach(x => x.Bool1 = ((SubElementX)sender).Bool1);

            //SubElements.ForEach(x => x.Bool1 = !x.Bool1);
            //SubElements.ForEach(x => x.NeutralBool = !x.NeutralBool);
            //SubElements.ForEach(x => x.Val2 = x.Val2 + ".");

            //SubElements.ForEach(x => x.Rad1 = true);
            //SubElements.ForEach(x => x.Rad2 = false);
            //SubElements.ForEach(x => x.Rad3 = false);


            SubElementsX.ForEach(x => x.SuspendPropertyChange = false);
            //SubElements.First().Val2 = "ooo";
            //SubElements.First().OnPropertyChanged("SubElement");

            //Permet de remonter le propertychanged
            //OnPropertyChanged("SubElementsX");
            //OnPropertyChanged("SubElementsX");
            //OnPropertyChanged("Element");
            //OnPropertyChanged("SubElement");
            //OnPropertyChanged("SubElementsX");
        }
Exemplo n.º 2
0
        private void SubElem_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            SubElements.ForEach(x => x.SuspendPropertyChange = true);

            SubElementsX.ForEach(x => x.Bool1 = ((SubElement)sender).Bool1);


            //SubElementsX.ForEach(x => x.Bool1 = !x.Bool1);
            //SubElementsX.ForEach(x => x.Val2 = x.Val2 + ".");
            //SubElementsX.ForEach(x => x.SuspendPropertyChange = false);
            //SubElementsX.First().SuspendPropertyChange = false;
            SubElements.ForEach(x => x.SuspendPropertyChange = false);


            OnPropertyChanged("SubElements");
        }