I have my resource like this.
<ContentView.Resources>
<ResourceDictionary>
<x:String x:Key="LabelAutomationIdentifier">LBL_PD_L_PLV_LV_</x:String>
</ResourceDictionary>
</ContentView.Resources>
I need to use this resource in the AutomationId property of Label like this
<Label AutomationId="{StaticResource LabelAutomationIdentifier} + LabelName" />
But, this is not correct. I tried multiple ways but no luck.
I tried,
<Label AutomationId="{Binding Source={StaticResource LabelAutomationIdentifier}, StringFormat='{}{0}LabelName'}" />
also
<Label AutomationId="{StaticResource LabelAutomationIdentifier, StringFormat='{0}LabelName'}" />