View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001035 | NoesisGUI | C# SDK | public | 2017-03-14 09:56 | 2019-01-28 16:30 |
| Reporter | ai_enabled | Assigned To | sfernandez | ||
| Priority | normal | Severity | crash | ||
| Status | assigned | Resolution | open | ||
| Product Version | 1.3.0 | ||||
| Summary | 0001035: Crash when using x:Static for accessing value of public static field in C# | ||||
| Description | Hi guys, consider this case:
And then: It works perfectly fine in WPF. Regards! | ||||
| Platform | Any | ||||
|
We don't have support for static reflection yet, and x:Static only works for enums. Is this feature very important for you, or could you use a ResourceDictionary with StaticResources instead? |
|
|
Thanks for clarification, Sergio! Oh, it's not that important then. As workaround we are using ResourceDictionary and finding these resources from C#. But finding these resources from C# is done with string identifiers so it's not so reliable as x:Static. It would be much better if you could quickly add proper error message. We could live without x:Static :-). |
|
|
We will fix the crash and provide a correct error message. |
|
|
Sergio, as far as I understand this should be "trivial" to implement if we implemented the x:Static markup entirely in C# right? |
|
|
BTW would love to have this supported :-) . But as I understand it requires support for C# MarkupExtensions? |
|
|
No, MarkupExtensions are not needed in C# for this but the solution is not trivial because we need to extend our reflection system to support static properties. This is something we must implement soon or later though. It's been requested many times. |
|
|
Thanks! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-03-14 09:56 | ai_enabled | New Issue | |
| 2017-03-16 12:46 | sfernandez | Assigned To | => sfernandez |
| 2017-03-16 12:46 | sfernandez | Status | new => feedback |
| 2017-03-16 12:46 | sfernandez | Note Added: 0004529 | |
| 2017-03-16 12:52 | ai_enabled | Note Added: 0004530 | |
| 2017-03-16 12:52 | ai_enabled | Status | feedback => assigned |
| 2017-03-16 13:22 | sfernandez | Note Added: 0004535 | |
| 2017-03-16 19:03 | jsantos | Note Added: 0004537 | |
| 2018-11-01 02:14 | jsantos | View Status | public => private |
| 2018-11-22 18:01 | sfernandez | Relationship added | related to 0001305 |
| 2018-11-22 18:01 | sfernandez | View Status | private => public |
| 2018-11-22 18:01 | sfernandez | Platform | => Any |
| 2019-01-24 18:16 | ai_enabled | Note Added: 0005415 | |
| 2019-01-28 16:30 | jsantos | Note Added: 0005422 | |
| 2019-01-28 16:30 | ai_enabled | Note Added: 0005423 |