Fix runtime ERR regarding WinType
WinType can only be set during construction, so SetWinType() should never be called. Use the constructor parameter for this.
This commit is contained in:
parent
b55e5150c9
commit
169f569af6
|
@ -10,8 +10,7 @@ public class Example : Efl.Csharp.Application
|
|||
protected override void OnInitialize(Eina.Array<System.String> args)
|
||||
{
|
||||
// Create a window and initialize it
|
||||
var win = new Efl.Ui.Win(null);
|
||||
win.SetWinType(Efl.Ui.WinType.Basic);
|
||||
var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
|
||||
win.SetText("Focus example");
|
||||
win.SetAutohide(true);
|
||||
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
|
||||
|
|
|
@ -60,8 +60,7 @@ public class Example : Efl.Csharp.Application
|
|||
protected override void OnInitialize(Eina.Array<System.String> args)
|
||||
{
|
||||
// Create a window and initialize it
|
||||
Efl.Ui.Win win = new Efl.Ui.Win(null);
|
||||
win.SetWinType(Efl.Ui.WinType.Basic);
|
||||
Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
|
||||
win.SetText("Container demo");
|
||||
win.SetAutohide(true);
|
||||
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
|
||||
|
|
|
@ -13,8 +13,7 @@ public class Example : Efl.Csharp.Application
|
|||
protected override void OnInitialize(Eina.Array<System.String> args)
|
||||
{
|
||||
// Create a window and initialize it
|
||||
Efl.Ui.Win win = new Efl.Ui.Win(null);
|
||||
win.SetWinType(Efl.Ui.WinType.Basic);
|
||||
Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
|
||||
win.SetText("Size Control");
|
||||
win.SetAutohide(true);
|
||||
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
|
||||
|
|
Loading…
Reference in New Issue