Fix: Button data binding
This commit is contained in:
1 parent
5e908e2768
commit
a294382c7d
2 files changed
+41
-2
No files matched your search
@@ -17,7 +17,16 @@ namespace Vocaluxe.UI.BasicElements.Text
|
||||
{
|
||||
var instance = CUiElement.CreateInstance<CUiElementText>(properties, children);
|
||||
properties.TryGetValue("value", out string value);
|
||||
instance.Controller.Text = value;
|
||||
|
||||
if (properties.ContainsKey("bindingid"))
|
||||
{
|
||||
instance.Controller.Text = DummyClass.RegisterBinding<string>(properties["bindingid"], (sender, s) => instance.Controller.Text = s);
|
||||
}
|
||||
else
|
||||
{
|
||||
instance.Controller.Text = value;
|
||||
}
|
||||
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user