View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004151 | NoesisGUI | Studio | public | 2025-05-12 16:18 | 2026-04-07 17:24 |
| Reporter | dstewart | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Product Version | Studio_Beta | ||||
| Target Version | Studio_Beta | ||||
| Summary | 0004151: Phantom Bindings Occur When Default Template Elements Removed from Template | ||||
| Description | Currently, when creating a Template, certain Elements within will be pre-bound. If the ContentPresenter is removed altogether, and new Elements are introduced to the Template, some Properties of the newly-introduced Elements will find themselves bound, despite having no Bindings active in their Properties. In this case, replacing a ContentPresenter with a completely fresh TextBlock will result in the TextBlock being coloured by the Button Template's "Foreground" property, despite the TextBlock's 'Foreground' containing no Bindings to the TemplatedParent. Video attached. Repro Steps: 1) Create a Project with a MainPage.xaml 5) Introduce a TextBlock into the Template. 6) From within the Template, MiddleMouseClick over the TextBlock's 'Foreground' Property. 7) Right-Click on the Template's default Border element, and from its Context Menu navigate to 'Layout', 'Replace With', then 'Grid'. Expected Results: Only Elements containing deliberate Bindings reflect the values of another Property. | ||||
| Attached Files | |||||
| Platform | Any | ||||
|
This has nothing to do with bindings, but another feature of the dependency properties: inheritance. Some properties are defined to inherit through the UI tree (like DataContext, FlowDirection, Foreground, FontSize, FontWeight, FontStyle, FontStretch...) so you don't need to set them everywhere. For example you can set the Foreground in a ListBox and all the items will inherit that foreground without you having to set it in each item. |
|
|
Ah okay, understood! Thanks Sergio! |
|
|
Closing as agreed during meeting, not a bug! Will create new tickets for visibility of 'where the value comes from'. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-05-12 16:18 | dstewart | New Issue | |
| 2025-05-12 16:18 | dstewart | File Added: 2025-05-12 09-56-17_Compressed.mp4 | |
| 2025-05-12 16:24 | dstewart | Description Updated | |
| 2025-05-12 16:59 | sfernandez | Assigned To | => sfernandez |
| 2025-05-12 16:59 | sfernandez | Status | new => feedback |
| 2025-05-12 16:59 | sfernandez | Note Added: 0010621 | |
| 2025-05-12 17:26 | dstewart | Note Added: 0010624 | |
| 2025-05-12 17:26 | dstewart | Status | feedback => assigned |
| 2025-05-13 11:42 | jsantos | Target Version | => Studio_Beta |
| 2026-04-07 17:24 | dstewart | Status | assigned => closed |
| 2026-04-07 17:24 | dstewart | Resolution | open => no change required |
| 2026-04-07 17:24 | dstewart | Note Added: 0012163 |