❶ 在sharpdevelop有沒有控制項 像VS2013中工具箱的那些控制項在哪裡比如按鈕,textbox等 等
如圖點擊設計(Design)切換下就OK了!!當然首先要在視圖里選擇工具(tools)
❷ Extended WPF Toolkit中有沒有類似VS工具箱的那種可隱藏的側邊欄控制項,是哪一個,全英文完全看不懂
用復AvalonDock 這個庫,制
[原譯]AVALONDOCK 2.0入門指南第一部分 - lazycoding - 博客園
http://www.cnblogs.com/lazycoding/archive/2012/09/27/2705025.html
❸ 我想在軟體中加一個類似於VS工具箱的窗口,c#中有這種控制項嗎
1.可以直接分組的控制項有,treeView
2.像qq一樣的分組:自己用BUTTON或者PANEL寫一個,可以用location貨dock來改變
3.自己寫控制項,其實很簡單的,DOWNLOAD點資料就ok了
4.第三方調用,比如DevComponents
記得給我點分哦!http://www.dotnetmagic.com/downloads/Magic174AndKrypton.zip
還有用NavBarControl這個,下載地址自己找
或者重寫treeview
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace SiteView.Ecc.MMC.UserContorls
{
/// <summary>
/// 繼承TreeView控制項,實現VS工具箱風格
/// </summary>
class ToolBox :TreeView
{
public ToolBox()
{
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
this.SetStyle(ControlStyles.EnableNotifyMessage, true);
this.ShowLines = false;
this.HotTracking = true;
this.FullRowSelect = true;
this.DrawMode = TreeViewDrawMode.OwnerDrawAll;
this.Nodes.Add("test");
}
/// <summary>
/// 重新DrawNode方法
/// </summary>
/// <param name="e"></param>
protected override void OnDrawNode(DrawTreeNodeEventArgs e)
{
//base.OnDrawNode(e);
if(e.Node.Level == 0)
{
DrawRoot(e);
}
else
{
DrawItem(e);
}
}
/// <summary>
/// 繪制根節點
/// </summary>
/// <param name="e"></param>
private void DrawRoot(DrawTreeNodeEventArgs e)
{
try
{
Rectangle rect = e.Bounds;
rect.Y += 1;
rect.Width -= 1;
rect.Height -= 3;
if(e.Node.IsSelected)
//if (e.State == TreeNodeStates.Marked || e.State == TreeNodeStates.Selected)
{
using (System.Drawing.Brush selBrush = new System.Drawing.SolidBrush(Color.FromArgb(225, 230, 232)))
using (System.Drawing.Pen outerPen = new System.Drawing.Pen(Color.FromArgb(49, 106, 197)))
{
e.Graphics.FillRectangle(selBrush, rect);
e.Graphics.DrawRectangle(outerPen, rect);
}
}
else
{
using (System.Drawing.Drawing2D.LinearGradientBrush lgBrush = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, Color.FromArgb(221, 220, 203), Color.FromArgb(196, 193, 176), LinearGradientMode.Vertical))
using (System.Drawing.Pen linePen = new System.Drawing.Pen(this.BackColor))
{
e.Graphics.FillRectangle(lgBrush, rect);
e.Graphics.DrawLine(linePen, 0, rect.Bottom - 2, rect.Width, rect.Bottom - 2);
}
}
if (e.Node.IsExpanded == true)
{
//e.Graphics.DrawImage(this.imageList3.Images[0], new Point(rect.Left + 3, rect.Top + 4));
e.Graphics.DrawImage(IconResource.expanded, new Rectangle(rect.Left + 3, rect.Top + 4, 10, 10));
}
else
{
e.Graphics.DrawImage(IconResource.collapsed, new Rectangle(rect.Left + 3, rect.Top + 4, 10, 10));
}
rect.Offset(16, 2);
e.Graphics.DrawString(e.Node.Text, new Font("Microsoft Sans Serif", 8.25F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))), SystemBrushes.ControlText, rect.Location);
}
catch (Exception ex)
{
//隱藏錯誤
//log.Error("繪制根節點", ex);
}
}
private System.Drawing.Brush selBrush = new System.Drawing.SolidBrush(Color.FromArgb(175, Color.Gold));
private System.Drawing.Pen pen = SystemPens.HotTrack;
/// <summary>
/// 繪制子結點
/// </summary>
/// <param name="e"></param>
private void DrawItem(DrawTreeNodeEventArgs e)
{
try
{
Rectangle nodeTextRect = e.Bounds;
nodeTextRect.Width -= 1;
nodeTextRect.Height -= 1;
Rectangle rect = e.Bounds;
rect.Inflate(-1, -1);
if (e.Node.IsSelected)
{
e.Graphics.FillRectangle(selBrush, rect);
e.Graphics.DrawRectangle(pen, rect);
}
else
{
e.Graphics.FillRectangle(new System.Drawing.SolidBrush(e.Node.BackColor), e.Bounds);
e.Graphics.DrawRectangle(new System.Drawing.Pen(e.Node.BackColor), e.Bounds);
}
if (this.ImageList != null && e.Node.ImageIndex < this.ImageList.Images.Count)
{
e.Graphics.DrawImage(this.ImageList.Images[e.Node.ImageIndex], new Point(e.Bounds.Left + 3, e.Bounds.Top + 2));
}
nodeTextRect.Offset(20, 3);
e.Graphics.DrawString(e.Node.Text, this.Font, SystemBrushes.ControlText, nodeTextRect.Location);
}
catch (Exception ex)
{
//隱藏錯誤
//log.Error("繪制子節點", ex);
}
}
}
}
還有兩個資源文件,一個加號圖片(IconResource.expanded),一個減號圖片(IconResource.collapsed)。你自己做兩張圖片加進去
❹ WPF有沒有類似VS工具箱那樣的控制項,就是可以點擊後出現,滑鼠移開後自動隱藏那樣的
請參考SharpDevelop。
❺ 求C#控制項,動態toolbar,工具箱,像VS開發環境那樣的
有個開源的panel,挺好用回的。答
DockPanel Suite:http://sourceforge.net/project/showfiles.php?group_id=110642&package_id=128114
❻ c#有沒有像vs10工具箱這樣的控制項
你截圖的是PropertyGrid
❼ c# 折疊菜單 類似於VS中左側的工具箱那種 知道的求不吝解答,有類似源碼也可以。
之前做過一個,是在vs中使用了ajax的控制項包,裡面有一個折疊面板的控制項,你可以用這個來實現內,很簡單容,只需要下載一個ajax的dll之後,直接拖控制項即可,控制項名稱是:
Accordion:可折疊面板的集合(Accordion控制項中可以包含若干個面板,讓用戶通過點擊不同面板的標題欄一次只展開並顯示其中的一個內容,就像將好多個CollapsiblePanel堆到了一起。)希望可以幫到你
❽ c#中有沒有類似vs2010的工具箱的目錄控制項,各位大神跪求答案。
TreeView控制項,樹形目錄,不會用的話可以追問!
❾ 想要用c#編寫一個和vs界面類似的軟體,工具箱的控制項可拖拽到編輯塊里
我倒是有個半成品..你要的功能基本都有了..
如果要的話.留個郵箱
❿ c# 類似vs的工具箱的可伸展收縮 控制項 怎麼實現
dockpane,網上教程很多,線程的控制項。下面版是下載地址。權
http://sourceforge.net/projects/dockpanelsuite/