How binding a element of TArray?
Posted: 12 Mar 2018, 03:04
I want to binding to TArray[0], so is there a way to get TArray[0], I find a class NoesisArrayWrapper, but in Private directory. may be I need a fucntion such as NoesisCreateTArrayForComponent?
Code: Select all
<Button Content="{Binding SpellList, Converter={StaticResource SpellIndexConverter}, ConverterParameter=0}" Width="236.5" Height="100" Canvas.Left="345" Canvas.Top="529.5">
</Button>
Code: Select all
bool SpellIndexConverter::TryConvert(BaseComponent* value, const Type* targetType, BaseComponent* parameter, Ptr<BaseComponent>& result)
{
int Idx = Boxing::Unbox<int>(parameter);
//UObject* Array = NoesisCreateUObjectForComponent(value);
/*NoesisArrayWrapper* Array = NsDynamicCast<NoesisArrayWrapper>(value);
if (Array)
{
return Array->NativeGet(Idx);
}*/
return false;
}