Unhandled exception when attempting to access grid definitio
Posted: 26 Sep 2013, 18:00
What's happening:
Collections.cs line 62 while being called from:
Where grid has 2 column definitions defined in xaml like so:
I've tried a few variations and all are causing problems.
My goal is to be able to modify a grid column width in code...
The exact line of code invoking it:[ 0] [0x1e221259] Noesis.dll!<Unknown function>
[ 1] [0x1e434ec4] Noesis.dll!<Unknown function>
[ 2] [0x0cd34f2c] <Unknown module>!<Unknown function>
[ 3] [0x09d59232] mono.dll!<Unknown function>
[ 4] [0x09e600b2] mono.dll!<Unknown function>
[ 5] [0x09d51d3d] mono.dll!<Unknown function>
Code: Select all
IntPtr cPtr = NoesisGUI_PINVOKE.Collection_Get(swigCPtr, index);Code: Select all
Grid g = root.FindName<Grid>("MyGrid");
print(g.GetColumnDefinitions().Get((uint)1));Code: Select all
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="1"/>
</Grid.ColumnDefinitions>My goal is to be able to modify a grid column width in code...