导航:首页 > 五金知识 > 类似于vs工具箱的控件

类似于vs工具箱的控件

发布时间:2021-02-28 01:59:18

❶ 在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/

阅读全文

与类似于vs工具箱的控件相关的资料

热点内容
路由器上有unknown连接是什么设备 浏览:525
启辰D50分离轴承多少钱 浏览:386
牙机雕刻机与电动工具 浏览:208
外汇期货交易实验装置 浏览:791
设备投资怎么算 浏览:95
好的摄影器材有哪些 浏览:463
温州新五金制品有限公司怎么样 浏览:293
锦州五金机电城出租出售 浏览:417
卡尔蔡司公司有哪些医学器材 浏览:261
重庆市机械凿打岩石套什么定额 浏览:557
阀门外面加个框是什么意思 浏览:756
会议设备系统哪里有 浏览:340
打印室需要哪些设备多少钱 浏览:577
通用型机床设备加工用于什么 浏览:290
书画工具箱套装 浏览:772
燃烧固体需要哪些仪器 浏览:969
2213ktn1是什么轴承 浏览:640
电脑固体硬盘怎么加机械硬盘 浏览:197
昆山汽车门板超声波焊接机怎么样 浏览:787
发说说怎么隐藏设备 浏览:804