55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
/* Generated by MyraPad at 01/12/2020 15:39:17 */
|
|
using Myra;
|
|
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 = 30;
|
|
BtnNoteView.Height = 30;
|
|
BtnNoteView.Padding = new Thickness(5);
|
|
BtnNoteView.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
|
BtnNoteView.Id = "BtnNoteView";
|
|
|
|
BtnNoteCenter = new ImageButton();
|
|
BtnNoteCenter.Width = 30;
|
|
BtnNoteCenter.Height = 30;
|
|
BtnNoteCenter.Padding = new Thickness(5);
|
|
BtnNoteCenter.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
|
BtnNoteCenter.Id = "BtnNoteCenter";
|
|
|
|
|
|
Spacing = 15;
|
|
VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
|
Widgets.Add(LblNoteText);
|
|
Widgets.Add(BtnNoteView);
|
|
Widgets.Add(BtnNoteCenter);
|
|
}
|
|
|
|
|
|
public Label LblNoteText;
|
|
public ImageButton BtnNoteView;
|
|
public ImageButton BtnNoteCenter;
|
|
}
|
|
}
|