sledgemapper/Sledgemapper/UI/NoteListItem.Generated.cs

57 lines
No EOL
1.6 KiB
C#

/* Generated by MyraPad at 01/12/2020 23:04:35 */
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 NoteListItem: HorizontalStackPanel
{
private void BuildUI()
{
LblNoteText = new Label();
LblNoteText.Text = "13:13 - Something like this, very long and trimmed";
LblNoteText.AutoEllipsisMethod = Myra.Graphics2D.UI.AutoEllipsisMethod.Character;
LblNoteText.Width = 300;
LblNoteText.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
LblNoteText.Id = "LblNoteText";
BtnNoteView = new ImageButton();
BtnNoteView.Width = 20;
BtnNoteView.Height = 20;
BtnNoteView.Padding = new Thickness(5);
BtnNoteView.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
BtnNoteView.Id = "BtnNoteView";
BtnNoteCenter = new ImageButton();
BtnNoteCenter.Width = 20;
BtnNoteCenter.Height = 20;
BtnNoteCenter.Padding = new Thickness(5);
BtnNoteCenter.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
BtnNoteCenter.Id = "BtnNoteCenter";
Spacing = 15;
VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
Margin = new Thickness(0, 0, 0, 8);
Padding = new Thickness(4);
Background = new SolidBrush("#404040FF");
Widgets.Add(LblNoteText);
Widgets.Add(BtnNoteView);
Widgets.Add(BtnNoteCenter);
}
public Label LblNoteText;
public ImageButton BtnNoteView;
public ImageButton BtnNoteCenter;
}
}