# DMSkin-for-DMSkin-Small
<h3>自用WPF UI无边框方案</h3>
<h4>支持:.NET Framework 3.5 - 4.7</h4>
<h4>支持:Windows XP - Windows 10</h4>
<hr/>
<h1>前言</h1>
<img src="https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/master/图片/A.png" />
DMSkin.WPF M 是我自己开发WPF用的UI框架,开源到github。(以下简称DFW)。
<h1>核心</h1>
DFW实现了比较完美的无边框窗体方案,并且拖拽全部采用WIN32消息实现。拖拽依靠桌面边缘完美,高DPI支持,窗体不会变形或异常
另外,由于我对MVVM不擅长,所以DEMO并不是采用MVVM框架。
<h1>注意事项</h1>
本源码采用VS2017 个人版 开发,部分C# 6.0+语法 vs2015 vs2013 vs2012 请自行修改源码中不支持的部分。
<h1>版本更新</h1>
<blockquote>
<h3>1.0.0.0 (2017-9-21)</h3>
<p>1.此项目正式上线。</p>
</blockquote>
<h1>相关</h1>
加入讨论
<h3>C#.NET 2000人 QQ群: 76566523</h3>
<h3>DMSkin QQ群: 194684812</h3>
<h2>我的QQ:944095635</h2>
官网:http://www.dmskin.com
<h1>帮助改进</h1>
非常欢迎参与DFW的改进。有钱出钱有力出力,如果你觉得DFW很棒,请支持我。
如果你需要相关的资源或者学习资料也请联系我。
<img style="width:200px;" src="https://github.com/944095635/DMSkin-for-WPF/blob/master/%E5%9B%BE%E7%89%87/JZ.jpg" />
<h1>使用说明</h1>
<pre>
<code>
1.引用DMSkin.WPF.DLL
2.Window继承修改为:MainWindow : DMSkinWindow
3.添加引用:xmlns:DMSkin="clr-namespace:DMSkin.WPF;assembly=DMSkin.WPF"
4.XAML继承修改为: DMSkin:DMSkinWindow x:Class="DMSkin.WPF.Test.MainWindow"
</code>
</pre>
<h1>窗体属性</h1>
<pre>
<code>
Foreground="White" //前景色
Background="White" //背景色
DMShowMin="True" //显示系统按钮-最小化
DMShowMax="True" //显示系统按钮-最大化
DMShowClose="True" //显示系统按钮-关闭
DMWindowShadowSize="10" //窗体边框阴影大小
DMWindowShadowColor="#FFC8C8C8" //窗体边框阴影颜色
DMWindowShadowDragVisibility="False" //窗体拖动时是否显示阴影层
DMWindowShadowVisibility="False" //窗体是否有阴影层[关闭阴影层]
DMWindowShadowBackColor="#FF323CAD" //阴影背景色,选择跟主窗体相近的颜色 拉伸跟拖动 用户体验更好|#FF323CAD 为蓝色
DMSystemButtonSize="50" //系统按钮大小
DMSystemButtonForeground="#FF666666" //系统按钮[文字]颜色
DMSystemButtonHoverColor="#33000000" //系统按钮的鼠标悬浮[背景]色
DMSystemButtonHoverForeground="White" //系统按钮的鼠标悬浮[文字]颜色
DMSystemButtonCloseHoverColor="Red" //系统【关闭】按钮的鼠标悬浮[背景]色-默认为红色
DMSystemButtonShadowEffect="0" //系统按钮的阴影大小
ResizeMode="CanResize" //边框拉伸方案CanResiz和CanResizeWithGrip
Height="700" Width="1000" //窗体大小
MinHeight="268" MinWidth="360" //窗体最大以及最小属性
WindowStartupLocation="CenterScreen" //窗体初始位置
<br/>
<del>DMMetroBorderColor="#FFC8C8C8" //窗体边框颜色-仅Metro有效 --2.0中移除</del>
<del>DMMetroBorderSize="1" //边框大小-仅Metro有效 --2.0中移除</del>
<del>DMWindow="Shadow" //Shadow-阴影模式 Metro-线条扁平化模式 --2.0中移除</del>
</code>
</pre>
<h1>资源引用</h1>
<pre>
<code>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/DMSkin.WPF;Component/Themes/DMSkin.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.WPF;Component/Themes/DMColor.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.WPF;Component/Themes/DMScrollViewer.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMTabControl.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMRadioButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMTreeView.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMDataGrid.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMListBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMSlider.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMCheckBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/DMSkin.Wpf;component/Themes/DMContextMenu.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</code>
</pre>
<h1>通用模板</h1>
<pre>
<code>
<Grid>
<Grid Background="White">
<Border Grid.Column="0" BorderThickness="0,0,0,2" BorderBrush="{StaticResource LineColor}" VerticalAlignment="Top">
<Grid>
<TextBlock Foreground="{StaticResource MainColor}" Text="DMSkin" FontSize="20"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"/>
<Button Name="ButtonSkin"
ToolTip="主题"
Focusable="False"
Style="{DynamicResource CaptionButtonStyle}"
Padding="0" HorizontalContentAlignment="Center" HorizontalAlignment="Right" Margin="0,0,150,0" Width="50" Height="50"
>
<Label Foreground="#FF555555"
Content="X" FontSize="22"
HorizontalContentAlignment="Center" FontWeight="Bold" ></Label>
</Button>
</Grid>
</Border>
</Grid>
<ResizeGrip HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" VerticalAlignment="Bottom" HorizontalAlignment="Right"></ResizeGrip>
</Grid>
</code>
</pre>
<h1>圆角窗体</h1>
<pre>
<code>
<Border Background="White" CornerRadius="5" BorderThickness="1">
<Border.Effect>
<DropShadowEffect BlurRadius="12" ShadowDepth="0" Color="#88000000"/>
</Border.Effect>
<Grid Margin="0,0,0,0">
<Grid Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Name="DMTitle">
</Grid>
</Grid>
<ResizeGrip VerticalContentAlignment="Bottom" HorizontalContentAlignment="Right" HorizontalAlignment="Right" VerticalAlignment="Bottom"></ResizeGrip>
</Grid>
</Border>
</code>
</pre>
<h1>更多效果图</1>
<img src="https://raw.githubusercontent.com/944095635/DMSkin-for-WPF/master/图片/A (1).gif" />
<img src="https://raw.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
利用stm32cubeMX 将stm32f767配置为Freertos+lwip+sram+nandflash+usart等可以实现电脑与单片的TCP通信,单片运行TCP服务器端,当收到上位机信息时,向另一进程通过消息队列发送消息,另一进程完成系统配置,当前之配置了PWM而已。上位机采用c#编写,利用网上的界面框架,编写的TCP/UDP传输助手,传输信息为结构体。 仅上传了简单demo,。
资源推荐
资源详情
资源评论
收起资源包目录
stm32f767+Freertos+tcp服务器 +TCP/UDP调试助手 (953个子文件)
DL_767.axf 1.78MB
DMSlider.baml 50KB
DMTabControl.baml 17KB
FormatTool.baml 16KB
DMSkin.baml 14KB
Translate.baml 11KB
DMDataGrid.baml 9KB
DMRadioButton.baml 9KB
DMButton.baml 8KB
DashBoard.baml 8KB
DMScrollViewer.baml 7KB
DMSkin.baml 6KB
DMContextMenu.baml 5KB
DMItemsControl.baml 5KB
MainWindow.baml 5KB
DMTreeView.baml 5KB
Gallery.baml 4KB
App.baml 3KB
DMCheckBox.baml 3KB
DMImage.baml 3KB
DMColor.baml 2KB
Tieba.baml 2KB
DMBorder.baml 1KB
Animation.baml 1KB
myWindow.baml 969B
DMListBox.baml 548B
stm32f7xx_hal_tim.c 180KB
stm32f7xx_hal_i2c.c 159KB
tasks.c 154KB
sockets.c 91KB
stm32f7xx_hal_tim_ex.c 88KB
queue.c 82KB
lcp.c 74KB
stm32f7xx_hal_eth.c 73KB
dhcp.c 71KB
stm32f7xx_hal_rcc_ex.c 71KB
stm32f7xx_hal_uart.c 71KB
tcp_in.c 69KB
auth.c 66KB
tcp.c 65KB
ipcp.c 64KB
eap.c 63KB
stm32f7xx_hal_nand.c 63KB
nd6.c 63KB
api_msg.c 61KB
tcp_out.c 55KB
cmsis_os.c 52KB
ppp.c 49KB
ccp.c 49KB
dns.c 48KB
pbuf.c 47KB
etharp.c 46KB
stm32f7xx_hal_rcc.c 43KB
stm32f7xx_hal_flash_ex.c 43KB
ipv6cp.c 42KB
lowpan6.c 41KB
stm32f7xx_hal_dma.c 41KB
stm32f7xx_ll_fmc.c 41KB
pppol2tp.c 40KB
timers.c 40KB
udp.c 40KB
ip6.c 39KB
ip4.c 39KB
pppoe.c 38KB
netif.c 38KB
chap_ms.c 33KB
stm32f7xx_hal_dac.c 32KB
api_lib.c 32KB
pppos.c 29KB
port.c 28KB
ip4_frag.c 28KB
igmp.c 27KB
mem.c 27KB
stm32f7xx_hal_flash.c 26KB
ip6_frag.c 26KB
ethernetif.c 26KB
event_groups.c 26KB
stm32f7xx_hal_sram.c 23KB
stm32f7xx_hal_pwr.c 22KB
utils.c 21KB
stm32f7xx_hal_pwr_ex.c 20KB
fsm.c 20KB
vj.c 20KB
stm32f7xx_hal_cortex.c 20KB
stm32f7xx_hal_gpio.c 20KB
chap-new.c 19KB
inet_chksum.c 19KB
autoip.c 18KB
stm32f7xx_hal.c 18KB
upap.c 18KB
mld6.c 17KB
heap_4.c 17KB
des.c 16KB
init.c 16KB
slipif.c 16KB
tcpip.c 16KB
raw.c 16KB
stm32f7xx_hal_dac_ex.c 15KB
croutine.c 15KB
multilink.c 14KB
共 953 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
- 芊暖2023-07-27这个文件提供了stm32f767芯片的Freertos tcp服务器的实现,非常实用。
- 蒋寻2023-07-27这个文件不仅提供了tcp服务器的功能,还提供了UDP调试助手,非常方便。
- 断脚的鸟2023-07-27使用这个文件,我成功地建立了一个tcp服务器,功能非常稳定,没有出现任何问题。
- 伯特兰·罗卜2023-07-27虽然我在使用过程中遇到了一些小问题,但作者提供了及时的支持,问题迅速解决了。
- 文润观书2023-07-27文件的代码风格简洁明了,容易理解和修改,特别适合初学者使用。
qq269131024
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功