RaisePropertyChanged() public method

Forces the INotifyPropertyChanged.PropertyChanged event to fire.
public RaisePropertyChanged ( string propertyName ) : void
propertyName string The property name.
return void
Exemplo n.º 1
0
        public void Bind(INotifyPropertyChanged frame, string frameProperty, string tagProperty, Action validator)
        {
            /*bool found = false;
             * foreach (System.Reflection.PropertyInfo pi in typeof(FrameContainer).GetProperties())
             * {
             *  if (pi.Name == tagProperty)
             *  {
             *      found = true;
             *      break;
             *  }
             * }
             * if (found == false)
             * {
             * }*/

            frame.PropertyChanged += delegate
            {
                m_FrameContainer.RaisePropertyChanged(tagProperty);
                validator?.Invoke();
            };
        }
Exemplo n.º 2
0
        public void Bind(INotifyPropertyChanged frame, string frameProperty, string tagProperty, Action validator)
        {
            /*bool found = false;
            foreach (System.Reflection.PropertyInfo pi in typeof(FrameContainer).GetProperties())
            {
                if (pi.Name == tagProperty)
                {
                    found = true;
                    break;
                }
            }
            if (found == false)
            {
            }*/

            frame.PropertyChanged += delegate
            {
                m_FrameContainer.RaisePropertyChanged(tagProperty);
                if (validator != null) 
                    validator();
            };
        }