View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001610 | NoesisGUI | Unity | public | 2019-12-28 14:58 | 2019-12-28 14:58 |
| Reporter | Gwynneth | Assigned To | |||
| Priority | normal | Severity | major | ||
| Status | new | Resolution | open | ||
| Product Version | 2.2.5 | ||||
| Summary | 0001610: Type casting in a binding does not work | ||||
| Description | When using type casting in a binding the binding fails which will get logged by Noesis as an error (with Log Verbosity set to Binding). Noesis will also warn about not being able to find the bound property on the cast object. | ||||
| Steps To Reproduce | Create a binding in which an object is cast to a specific type to access its properties. Generically this is done as follows: Specifically, I created a data template and used the binding below on a custom TextBlock. The binding will not work and Noesis will complain about OverviewViewModel not containing the property 'TextSettings'. When exposing the viewmodel differently in a typed manner (in this case OverviewView.ViewModel is of type OverviewViewModel), the binding works: | ||||
| Platform | Windows | ||||