static TabStrip() { Xwt.Drawing.NinePatchImage tabBackImage9; if (tabBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)tabBackImage).GetImage(Xwt.Drawing.Context.GlobalStyles); tabBackImage9 = img as Xwt.Drawing.NinePatchImage; } else { tabBackImage9 = tabBackImage as Xwt.Drawing.NinePatchImage; } TabPadding = tabBackImage9.Padding; Xwt.Drawing.NinePatchImage tabActiveBackImage9; if (tabActiveBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)tabActiveBackImage).GetImage(Xwt.Drawing.Context.GlobalStyles); tabActiveBackImage9 = img as Xwt.Drawing.NinePatchImage; } else { tabActiveBackImage9 = tabBackImage as Xwt.Drawing.NinePatchImage; } TabActivePadding = tabActiveBackImage9.Padding; }
static DockItemTitleTab() { pixClose = Xwt.Drawing.Image.FromResource("pad-close-9.png"); pixAutoHide = Xwt.Drawing.Image.FromResource("pad-minimize-9.png"); pixDock = Xwt.Drawing.Image.FromResource("pad-dock-9.png"); Xwt.Drawing.NinePatchImage tabBackImage9; if (dockTabBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)dockTabBackImage).GetImage(Xwt.Drawing.Context.GlobalStyles); tabBackImage9 = img as Xwt.Drawing.NinePatchImage; } else { tabBackImage9 = dockTabBackImage as Xwt.Drawing.NinePatchImage; } TabPadding = tabBackImage9.Padding; Xwt.Drawing.NinePatchImage tabActiveBackImage9; if (dockTabActiveBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)dockTabActiveBackImage).GetImage(Xwt.Drawing.Context.GlobalStyles); tabActiveBackImage9 = img as Xwt.Drawing.NinePatchImage; } else { tabActiveBackImage9 = dockTabActiveBackImage as Xwt.Drawing.NinePatchImage; } TabActivePadding = tabActiveBackImage9.Padding; }
public void SetPadding(Xwt.WidgetSpacing spacing) { _alignment.LeftPadding = (uint)spacing.Left; _alignment.RightPadding = (uint)spacing.Right; _alignment.TopPadding = (uint)spacing.Top; _alignment.BottomPadding = (uint)spacing.Bottom; }
static DockItemTitleTab () { pixClose = Xwt.Drawing.Image.FromResource ("pad-close-9.png"); pixAutoHide = Xwt.Drawing.Image.FromResource ("pad-minimize-9.png"); pixDock = Xwt.Drawing.Image.FromResource ("pad-dock-9.png"); Xwt.Drawing.NinePatchImage tabBackImage9; if (dockTabBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)dockTabBackImage).GetImage (Xwt.Drawing.Context.GlobalStyles); tabBackImage9 = img as Xwt.Drawing.NinePatchImage; } else tabBackImage9 = dockTabBackImage as Xwt.Drawing.NinePatchImage; TabPadding = tabBackImage9.Padding; Xwt.Drawing.NinePatchImage tabActiveBackImage9; if (dockTabActiveBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)dockTabActiveBackImage).GetImage (Xwt.Drawing.Context.GlobalStyles); tabActiveBackImage9 = img as Xwt.Drawing.NinePatchImage; } else tabActiveBackImage9 = dockTabActiveBackImage as Xwt.Drawing.NinePatchImage; TabActivePadding = tabActiveBackImage9.Padding; }
static TabStrip () { Xwt.Drawing.NinePatchImage tabBackImage9; if (tabBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)tabBackImage).GetImage (Xwt.Drawing.Context.GlobalStyles); tabBackImage9 = img as Xwt.Drawing.NinePatchImage; } else tabBackImage9 = tabBackImage as Xwt.Drawing.NinePatchImage; TabPadding = tabBackImage9.Padding; Xwt.Drawing.NinePatchImage tabActiveBackImage9; if (tabActiveBackImage is Xwt.Drawing.ThemedImage) { var img = ((Xwt.Drawing.ThemedImage)tabActiveBackImage).GetImage (Xwt.Drawing.Context.GlobalStyles); tabActiveBackImage9 = img as Xwt.Drawing.NinePatchImage; } else tabActiveBackImage9 = tabBackImage as Xwt.Drawing.NinePatchImage; TabActivePadding = tabActiveBackImage9.Padding; }