internal void DisconnectChildren() { Debug.Assert(OsVersion.IsWindows8OrGreater); if (_rowsAccessibleObjects == null) { return; } foreach (CalendarRowAccessibleObject row in _rowsAccessibleObjects) { row.DisconnectChildren(); HRESULT result = UiaCore.UiaDisconnectProvider(row); Debug.Assert(result == 0); } }
internal void DisconnectChildren() { Debug.Assert(OsVersion.IsWindows8OrGreater); if (_calendarHeaderAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_calendarHeaderAccessibleObject); Debug.Assert(result == 0); } if (_calendarBodyAccessibleObject is not null) { _calendarBodyAccessibleObject.DisconnectChildren(); HRESULT result = UiaCore.UiaDisconnectProvider(_calendarBodyAccessibleObject); Debug.Assert(result == 0); } }
internal void DisconnectChildren() { Debug.Assert(OsVersion.IsWindows8OrGreater); if (_weekNumberCellAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_weekNumberCellAccessibleObject); Debug.Assert(result == 0); } if (_cellsAccessibleObjects is null) { return; } foreach (CalendarCellAccessibleObject cell in _cellsAccessibleObjects) { HRESULT result = UiaCore.UiaDisconnectProvider(cell); Debug.Assert(result == 0); } }
// This function should be called from a single place in the root of MonthCalendar object that already tests for availability of this API internal void DisconnectChildren() { Debug.Assert(OsVersion.IsWindows8OrGreater); if (_previousButtonAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_previousButtonAccessibleObject); Debug.Assert(result == 0); } if (_nextButtonAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_nextButtonAccessibleObject); Debug.Assert(result == 0); } if (_todayLinkAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_todayLinkAccessibleObject); Debug.Assert(result == 0); } if (_focusedCellAccessibleObject is not null) { HRESULT result = UiaCore.UiaDisconnectProvider(_focusedCellAccessibleObject); Debug.Assert(result == 0); } if (_calendarsAccessibleObjects is null) { return; } foreach (CalendarAccessibleObject calendarAccessibleObject in _calendarsAccessibleObjects) { calendarAccessibleObject.DisconnectChildren(); HRESULT result = UiaCore.UiaDisconnectProvider(calendarAccessibleObject); Debug.Assert(result == 0); } }