public ListScreen() { this.InitializeComponent(); this.dbHelper = new DatabaseHelper(); ObservableCollection<Encryption> encryptions = dbHelper.GetEncryptions(); this.lv_crypt.DataContext = encryptions; if (encryptions.Count == 0) { this.tb_empyList.Text = "No value to display"; } else { this.tb_empyList.Text = ""; } }