WindowContentElement.cs 517 B

1234567891011121314151617181920
  1. using PixiEditor.Extensions.Wasm.Api.FlyUI;
  2. using PixiEditor.Extensions.Wasm.Api.Localization;
  3. namespace FlyUISample;
  4. public class WindowContentElement : StatelessElement
  5. {
  6. public override CompiledControl BuildNative()
  7. {
  8. Layout layout = new Layout(body:
  9. new Column(
  10. new Center(
  11. new Text("Hello there!")
  12. ),
  13. new Text("This is a sample window content element."))
  14. );
  15. return layout.BuildNative();
  16. }
  17. }