コード例 #1
0
ファイル: TabStrip.cs プロジェクト: vvarshne/monodevelop
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
		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;
		}
コード例 #5
0
		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;
		}