导航:首页 > 五金知识 > 类似于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工具箱的控件相关的资料

热点内容
摩托后轮毂换轴承多少钱 浏览:517
热水器有个小阀门漏水怎么办 浏览:33
光栅常数的测定的实验装置图 浏览:73
东京汽车贴膜工具箱 浏览:962
如何调暖气阀门os 浏览:608
一加工具箱连不上手机呀 浏览:986
室外给水管道阀门井施工方案 浏览:858
仪表如何提高产品质量 浏览:853
人工物理因子包括哪些理疗仪器 浏览:33
太阳能阀门怎么安装 浏览:806
机械台班消耗量怎么来的 浏览:644
其伟五金制品有限公司招聘信息 浏览:167
一般给水的阀门是什么阀门 浏览:62
仪表波特率自己变是什么原因 浏览:933
汽车加速检测装置 浏览:910
排气阀门改装气浪 浏览:673
儿童游泳池设备哪里有卖的 浏览:829
尼尔机械纪元怎么才能使用9s 浏览:754
太阳能氨制冷系统中制冷剂是什么 浏览:592
自动测定油箱油面高度的装置 浏览:942