Skip to content

Instantly share code, notes, and snippets.

@jesulink2514
Created February 28, 2019 03:49
Show Gist options
  • Save jesulink2514/2b16aff11c6eaaf32b2c83daff0b6f47 to your computer and use it in GitHub Desktop.
Save jesulink2514/2b16aff11c6eaaf32b2c83daff0b6f47 to your computer and use it in GitHub Desktop.
using NControl.Abstractions;
using NGraphics;
using System.Collections.Generic;
namespace DemoGradient.Controls
{
public class GradientButton : NControlView
{
private readonly Label _label;
private readonly NControlView _background;
public GradientButton()
{
_label = new Label
{
Text = "Hello from NControl",
TextColor = Color.White,
FontSize = 17,
BackgroundColor = Color.Transparent,
HorizontalTextAlignment = TextAlignment.Center,
VerticalTextAlignment = TextAlignment.Center
};
_background = new NControlView
{
DrawingFunction = (canvas, rect) =>
{
}
};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment