dotnet / dotnet/dotnet-api-docs

Request for clarification on value taking from owner and ability to unset a local value

Open
#810 3 comments 0 reactions 0 assignees View on GitHub
.net/prod area-WinForms Pri2 waiting-on-feedback
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

When is the value retrieved from the parent? On construction? On property access?

Is it possible to "unset" the ambient property so that it will no longer use a (temporary) local value but the parents again? (e.g. for temporarily setting Form.Cursor to WaitCursor and then returning to using the parents)

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: a19792a8-cf3a-ccb9-e346-6d8db28de034
* Version Independent ID: 26385aee-80b5-9df5-ba0e-6a9c0b679d17
* Content: [AmbientProperties Class (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.ambientproperties?view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Forms/AmbientProperties.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/AmbientProperties.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnet-bot**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.