I have a ux class called Tab, i’m trying to set the child rectangle height using ux:property
<Panel ux:Class="Tab">
<string ux:Property="Text"/>
<float ux:Property="RectHeight"/>
<Rectangle Height="{Property this.RectHeight}" Alignment="Top"/>
<Text TextAlignment="Center" FontSize="11" Padding="0, 20, 0, 0" Value="{Property this.Text}"/>
</Panel>
<Grid RowCount="1" ColumnCount="4">
<Tab ux:Name="tab1" Row="0" Column="0" Text="Home" RectHeight="2">
<Clicked>
<Set pages.Active="page1"/>
</Clicked>
</Tab>
<Tab ux:Name="tab2" Row="0" Column="1" Text="Friends" RectHeight="2">
<Clicked>
<Set pages.Active="page2"/>
</Clicked>
</Tab>
<Tab ux:Name="tab3" Row="0" Column="2" Text="Notifications" RectHeight="2">
<Clicked>
<Set pages.Active="page3"/>
</Clicked>
</Tab>
<Tab ux:Name="tab4" Row="0" Column="3" Text="Settings" RectHeight="2">
<Clicked>
<Set pages.Active="page4"/>
</Clicked>
</Tab>
</Grid>
However, i am unable to get RectHeight working. Error log
ERROR: Sequence contains no elements
System.InvalidOperationException occured.
at System.Linq.Enumerable.First[ConstructorInfo] (IEnumerable1 source) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.CompiledTypeReflection+<Instantiate>c__AnonStorey4.<>m__0 () [0x00000] in /usr/local/Teamcity/Agents/tcagent-osx-agent02-teamcity-dyson/work/b939dc4c6ac331f9/Source/Outracks.Simulator.Runtime/Reflection/CompiledTypeReflection.cs:202
at Outracks.Simulator.Runtime.TryInvokeExtension.Try (System.Func1 func) [0x00000] in /usr/local/Teamcity/Agents/tcagent-osx-agent02-teamcity-dyson/work/b939dc4c6ac331f9/Source/Outracks.Simulator.Runtime/Reflection/CompiledTypeReflection.cs:282
at Outracks.Simulator.Runtime.CompiledTypeReflection.Instantiate (Outracks.Simulator.Bytecode.TypeName typeName, System.Object[] args) [0x00037] in /usr/local/Teamcity/Agents/tcagent-osx-agent02-teamcity-dyson/work/b939dc4c6ac331f9/Source/Outracks.Simulator.Runtime/Reflection/CompiledTypeReflection.cs:201
at Outracks.Fuse.Preview.RuntimeObjectPoker.<HookUpReflectionInterface>m__8 (System.String a, System.Object[] b) [0x00000] in /usr/local/Teamcity/Agents/tcagent-osx-agent02-teamcity-dyson/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/RuntimeObjectPoker.cs:39
at Outracks.Simulator.Reflection.DelegateReflection.Outracks.Simulator.Runtime.IReflection.Instantiate (Outracks.Simulator.Bytecode.TypeName typeName, System.Object[] args) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Instantiate i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.ImmutableList1 arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallStaticMethod m) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func () [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.ImmutableList1 arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallStaticMethod m) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable1 statements) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Action (System.Object a1) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[Object] (System.Func2 a1, System.Func2 a2, System.Func2 a3, System.Func2 a4, System.Func2 a5, System.Func2 a6, System.Func2 a7, System.Func2 a8, System.Func2 a9, System.Func2 a10, System.Func2 a11, System.Func2 a12, System.Func2 a13, System.Func2 a15, System.Func2 a16) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable1 statements) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (IReflection reflection, Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Reifying.OnEnterState () [0x00000] in <filename unknown>:0
at Outracks.Simulator.Application.SetState (Outracks.Simulator.State nextState) [0x00000] in <filename unknown>:0
at Outracks.Simulator.Application.OnUpdate () [0x00000] in <filename unknown>:0
at Fuse.App.Update () [0x00000] in <filename unknown>:0