mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-11-30 02:48:03 +08:00
add GlowWindow doc
This commit is contained in:
parent
ae01af5918
commit
90e208eb7c
@ -1,3 +1,42 @@
|
|||||||
---
|
---
|
||||||
title: GlowWindow
|
title: GlowWindow 辉光窗口
|
||||||
---
|
---
|
||||||
|
|
||||||
|
边框具有辉光效果的窗口,代码提取自Visual Studio
|
||||||
|
|
||||||
|
```cs
|
||||||
|
public class GlowWindow : Window
|
||||||
|
```
|
||||||
|
|
||||||
|
# 属性
|
||||||
|
|
||||||
|
|属性|描述|默认值|备注|
|
||||||
|
|-|-|-|-|
|
||||||
|
|ActiveGlowColor|窗口激活时辉光颜色|||
|
||||||
|
|InactiveGlowColor|窗口非激活时辉光颜色||||
|
||||||
|
|
||||||
|
# 案例
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<hc:GlowWindow x:Class="HandyControlDemo.Window.GlowWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||||
|
xmlns:langs="clr-namespace:HandyControlDemo.Properties.Langs"
|
||||||
|
xmlns:ex="clr-namespace:HandyControlDemo.Tools.Extension"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Style="{StaticResource WindowGlow}"
|
||||||
|
Background="{DynamicResource MainContentBackgroundBrush}"
|
||||||
|
WindowStartupLocation="CenterScreen"
|
||||||
|
Title="{ex:Lang Key={x:Static langs:LangKeys.Title}}"
|
||||||
|
ActiveGlowColor="{DynamicResource PrimaryColor}"
|
||||||
|
Height="450"
|
||||||
|
Width="800"
|
||||||
|
Icon="/HandyControlDemo;component/Resources/Img/icon.ico">
|
||||||
|
<Border Background="{DynamicResource MainContentForegroundDrawingBrush}"/>
|
||||||
|
</hc:GlowWindow>
|
||||||
|
```
|
||||||
|
|
||||||
|
![GlowWindow](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/GlowWindow.png)
|
1
doc/themes/next/_config.yml
vendored
1
doc/themes/next/_config.yml
vendored
@ -252,6 +252,7 @@ menu:
|
|||||||
FlipClock 翻页时钟: /flipClock/ ||
|
FlipClock 翻页时钟: /flipClock/ ||
|
||||||
FloatingBlock 漂浮块: /floatingBlock/ ||
|
FloatingBlock 漂浮块: /floatingBlock/ ||
|
||||||
GifImage Gif图片: /gifImage/ ||
|
GifImage Gif图片: /gifImage/ ||
|
||||||
|
GlowWindow 辉光窗口: /glowWindow/ ||
|
||||||
GotoTop 回到顶部: /gotoTop/ ||
|
GotoTop 回到顶部: /gotoTop/ ||
|
||||||
Gravatar 头像: /gravatar/ ||
|
Gravatar 头像: /gravatar/ ||
|
||||||
Grid 栅格: /grid/ ||
|
Grid 栅格: /grid/ ||
|
||||||
|
Loading…
Reference in New Issue
Block a user