Fix: Controllers contain no data
This commit is contained in:
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);
|
||||
|
||||
@@ -5,9 +5,14 @@ namespace Vocaluxe.UI.BasicElements.Text
|
||||
{
|
||||
public class CUiElementText:CUiElement
|
||||
{
|
||||
public CControllerElementText Controller => new CControllerElementText();
|
||||
public CControllerElementText Controller { get; private set; }
|
||||
public override CController BasicController => Controller;
|
||||
|
||||
public CUiElementText()
|
||||
{
|
||||
Controller = new CControllerElementText();
|
||||
}
|
||||
|
||||
public static CUiElementText CreateInstance(Dictionary<string, string> properties, IEnumerable<(CUiElement uiElement, string bindingId)> children)
|
||||
{
|
||||
var instance = CUiElement.CreateInstance<CUiElementText>(properties, children);
|
||||
|
||||
@@ -5,9 +5,14 @@ namespace Vocaluxe.UI.Screens.ScreenMain
|
||||
{
|
||||
public class CUiScreenMain:CUiScreen
|
||||
{
|
||||
public CControllerScreenMain Controller => new CControllerScreenMain();
|
||||
public CControllerScreenMain Controller { get; private set; }
|
||||
public override CController BasicController => Controller;
|
||||
|
||||
public CUiScreenMain()
|
||||
{
|
||||
Controller = new CControllerScreenMain();
|
||||
}
|
||||
|
||||
public static CUiScreen CreateInstance(Dictionary<string, string> properties, IEnumerable<(CUiElement uiElement, string bindingId)> children)
|
||||
{
|
||||
return CUiElement.CreateInstance<CUiScreenMain>(properties, children);
|
||||
|
||||
Reference in new issue
Block a user