i have the code:
public HomePage1()
{
InitializeComponent();
LoadExcelFile loader = new LoadExcelFile();
loader.ReadAndParse();
Title = "Home Page";
StackLayout layout = new StackLayout();
layout.Children.Add(new Image() { Source = "@drawable/img" });
foreach (Block block in loader.Blocks)
{
switch (block.Title.ToLower())
{
case "hp-int":
layout.Children.Add(new Label(){Text=**block.Content**});
break;
default:
//layout.Children.Add(new Label() { Text = block.Content });
break;
}
}
Content = layout;
I want show in a label the text it's in block.content with title "hp-int" but appears the error "Cannot implicitly convert type 'System.Collections.Generic.IEnumerable to string". if i choose the title works fine, but the content...
Can help me?? thanks
Blockclass look like? What is the type of theContentproperty? What does it contain? - Yacoub Massad