I honestly don't know how my components won't show.
basically this is my structure:
and right now i am building a 'thread' which is one of the 'name here' this will be a message preview .....' all i am asking is this: can someone lead me in the right direction. I am a java developer and getting used to c#
MessageThread m = new MessageThread("Example Name", "Hey man, How are you?", "12:34", "000000000325");
m.buildThread();
and here is this class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace FacebookMessenger
{
class MessageThread
{
private String title;
private String preview;
private String time;
private String userId;
public Label lblTitle = new Label();
public MessageThread(String title, String preview, String time, String userId)
{
this.title = title;
this.preview = preview;
this.time = time;
this.userId = userId;
}
public void buildThread()
{
lblTitle.Content = "Name Here";
lblTitle.FontFamily = new FontFamily("Segoe UI Light");
lblTitle.FontSize = 28;
lblTitle.Width = 400;
lblTitle.Height = 50;
lblTitle.Foreground = Brushes.Wheat;
}
}
}
it would be really helpful if someone helped me out thanks.