Exemplo n.º 1
0
 internal static void EnsureInternalAssemblies()
 {
     if (loader == null)
     {
         loader = EmbeddedAssemblyLoader.Register("PabloDraw.Console.Assemblies");
     }
 }
Exemplo n.º 2
0
        static Platform()
        {
            EmbeddedAssemblyLoader.Register("Eto.Wpf.CustomControls.Assemblies");

            Style.Add <ThemedSegmentedButtonHandler>(null, h =>
            {
                h.Control.Styles.Add <ToggleButtonHandler>(null, tb =>
                {
                    if (tb.Widget.Parent is TableLayout tl && tl.Rows.Count > 0 && tl.Spacing.Width == 0)
                    {
                        var isFirst                = ReferenceEquals(tl.Rows[0].Cells[0].Control, tb.Widget);
                        var thickness              = tb.Control.BorderThickness;
                        thickness.Left             = isFirst ? thickness.Right : 0;
                        tb.Control.BorderThickness = thickness;
                    }
                });
            });
Exemplo n.º 3
0
 static Platform()
 {
     EmbeddedAssemblyLoader.Register("Eto.Wpf.CustomControls.Assemblies");
 }
Exemplo n.º 4
0
 static Program()
 {
     EmbeddedAssemblyLoader.Register();
 }