internal static void EnsureInternalAssemblies() { if (loader == null) { loader = EmbeddedAssemblyLoader.Register("PabloDraw.Console.Assemblies"); } }
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; } }); });
static Platform() { EmbeddedAssemblyLoader.Register("Eto.Wpf.CustomControls.Assemblies"); }
static Program() { EmbeddedAssemblyLoader.Register(); }