Fix: Controllers contain no data

This commit is contained in:
lukeIam committed 2018-09-07 17:44:11 +02:00
1 parent c6d221d6c0
commit 12987bcc51
3 files changed
+18 -3

No files matched your search

@@ -5,9 +5,14 @@ namespace Vocaluxe.UI.BasicElements.Button
{
public class CUiElementButton:CUiElement
{
public CControllerElementButton Controller => new CControllerElementButton();
public CControllerElementButton Controller { get; private set; }
public override CController BasicController => Controller;
public CUiElementButton()
{
Controller = new CControllerElementButton();
}
public static CUiElementButton CreateInstance(Dictionary<string, string> properties, IEnumerable<(CUiElement, string)> children)
{
return CUiElement.CreateInstance<CUiElementButton>(properties, children);