he estado tratando de hacer este menú usando WinForm.
Ya he intentado con KeyTrasparent del Form, pongo el Form transparente y un panel semi transparente pero solo pasa esto:
Y cree el panel transparente creando una nueva clase extendiendo de Panel
public class PanelTraslucido : Panel
{
const int WS_EX_TRANSPARENT = 0x20;
int opacity = 50;
public int Opacity
{
get
{
return opacity;
}
set
{
if (value < 0 || value > 100) throw new ArgumentException("Valor entre 0 y 100");
opacity = value;
}
}
protected override CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
cp.ExStyle = cp.ExStyle | WS_EX_TRANSPARENT;
return cp;
}
}
protected override void OnPaint(PaintEventArgs e)
{
using (var b = new SolidBrush(Color.FromArgb(opacity * 255 / 100, BackColor)))
{
e.Graphics.FillRectangle(b, ClientRectangle);
}
base.OnPaint(e);
}
}
Y en todo lo que investigue este efecto se puede hacer con WPF y algunas nugets, pero finalmente ambos son .NET y tal vez se puede lograr el mismo efecto con WinForms