sledgemapper/Sledgemapper/UI/NoteWindow.Generated.cs
2020-12-01 11:02:08 +00:00

77 lines
No EOL
2 KiB
C#

/* Generated by MyraPad at 29/11/2020 23:51:26 */
using Myra.Graphics2D;
using Myra.Graphics2D.TextureAtlases;
using Myra.Graphics2D.UI;
using Myra.Graphics2D.Brushes;
#if !STRIDE
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#else
using Stride.Core.Mathematics;
#endif
namespace Sledgemapper.UI
{
partial class NoteWindow: Grid
{
private void BuildUI()
{
NoteText = new TextBox();
NoteText.Multiline = true;
NoteText.Wrap = true;
NoteText.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Stretch;
NoteText.Id = "NoteText";
var scrollViewer1 = new ScrollViewer();
scrollViewer1.Content = NoteText;
BtnCancel = new TextButton();
BtnCancel.Text = "Cancel";
BtnCancel.Width = 70;
BtnCancel.Height = 20;
BtnCancel.Padding = new Thickness(5);
BtnCancel.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center;
BtnCancel.Id = "BtnCancel";
BtnOk = new TextButton();
BtnOk.Text = "Ok";
BtnOk.Width = 70;
BtnOk.Height = 20;
BtnOk.Padding = new Thickness(5);
BtnOk.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center;
BtnOk.Id = "BtnOk";
var horizontalStackPanel1 = new HorizontalStackPanel();
horizontalStackPanel1.Spacing = 10;
horizontalStackPanel1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Right;
horizontalStackPanel1.GridRow = 1;
horizontalStackPanel1.Widgets.Add(BtnCancel);
horizontalStackPanel1.Widgets.Add(BtnOk);
RowSpacing = 13;
ColumnsProportions.Add(new Proportion
{
Type = Myra.Graphics2D.UI.ProportionType.Fill,
});
RowsProportions.Add(new Proportion
{
Type = Myra.Graphics2D.UI.ProportionType.Fill,
});
RowsProportions.Add(new Proportion
{
Type = Myra.Graphics2D.UI.ProportionType.Auto,
});
Width = 400;
Height = 300;
Widgets.Add(scrollViewer1);
Widgets.Add(horizontalStackPanel1);
}
public TextBox NoteText;
public TextButton BtnCancel;
public TextButton BtnOk;
}
}