View Issue Details

IDProjectCategoryView StatusLast Update
0001036NoesisGUIC# SDKpublic2018-11-22 20:11
Reporterai_enabled Assigned Tosfernandez  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version1.3.0 
Target Version2.2.0Fixed in Version2.2.0b1 
Summary0001036: Cannot add strings to InlinesCollection
Description

Hi guys,

this code will crash NoesisGUI:

var textBlock = new TextBlock();
var inlines = textBlock.Inlines;
inlines.Add(new Run("someText"));
inlines.Add(new LineBreak());
// it seems this is not supported by NoesisGUI right now but compiles properly
inlines.Add(protoItem.Description);

// grid is LayoutRoot of the UserControl
grid.Children.Add(textBlock);

I think it would be better if you could add strong typing for Add() methods - as in WPF.

Regards!

PlatformAny

Activities

sfernandez

sfernandez

2017-03-16 13:04

manager   ~0004531

Yes, InlineCollection should only allow to add Inlines, we will fix it.

Issue History

Date Modified Username Field Change
2017-03-15 08:41 ai_enabled New Issue
2017-03-16 12:46 sfernandez Assigned To => sfernandez
2017-03-16 12:46 sfernandez Status new => assigned
2017-03-16 13:04 sfernandez Note Added: 0004531
2018-11-01 02:14 jsantos View Status public => private
2018-11-22 20:10 sfernandez Target Version => 2.2.0
2018-11-22 20:10 sfernandez View Status private => public
2018-11-22 20:10 sfernandez Platform => Any
2018-11-22 20:11 sfernandez Status assigned => resolved
2018-11-22 20:11 sfernandez Resolution open => fixed
2018-11-22 20:11 sfernandez Fixed in Version => 2.2.0b1