RaisePropertyChangedEvent() 정적인 개인적인 메소드

static private RaisePropertyChangedEvent ( Accessible accessible, AutomationProperty property, object oldValue, object newValue ) : void
accessible Atspi.Accessible
property System.Windows.Automation.AutomationProperty
oldValue object
newValue object
리턴 void
예제 #1
0
        private void OnSelectionChanged(Accessible sender)
        {
            IElement [] newSelection = source.GetSelection();

            AutomationSource.RaisePropertyChangedEvent(element,
                                                       SelectionPattern.SelectionProperty,
                                                       oldSelection ?? new IElement [0],
                                                       newSelection ?? new IElement [0]);
            oldSelection = newSelection;
        }
예제 #2
0
        private void OnColumnDeleted(Accessible sender, int row, int nDeleted)
        {
            int newVal = element.accessible.QueryTable().NColumns;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                GridPatternIdentifiers.ColumnCountProperty,
                newVal + nDeleted,
                newVal);
        }
예제 #3
0
        private void OnRowInserted(Accessible sender, int row, int nInserted)
        {
            int newVal = element.accessible.QueryTable().NRows;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                GridPatternIdentifiers.RowCountProperty,
                newVal - nInserted,
                newVal);
        }
예제 #4
0
        private void OnPropertyChange(Accessible sender, string name, object any)
        {
            if (name != "accessible-value")
            {
                return;
            }
            double newVal = Value.CurrentValue;

            AutomationSource.RaisePropertyChangedEvent(
                element,
                RangeValuePatternIdentifiers.ValueProperty,
                currentValue,
                newVal);
            currentValue = newVal;
        }
예제 #5
0
        private void OnTextChanged(Accessible sender, string detail, int v1, int v2, string any)
        {
            string newValue = Text.GetText();

            if (newValue == currentValue)
            {
                return;
            }

            // LAMESPEC: Client tests confirm OldValue is null.
            AutomationSource.RaisePropertyChangedEvent(element,
                                                       ValuePattern.ValueProperty,
                                                       null,
                                                       newValue);
            currentValue = newValue;
        }