update doc

This commit is contained in:
NaBian committed 2020-07-24 00:10:06 +08:00
1 parent f45aa5471c
commit 50776441ef
9 files changed
+136 -24

No files matched your search

-1
View File
@@ -80,7 +80,6 @@
[![Visual Studio Community 2019](https://gitee.com/handyorg/HandyOrgResource/raw/master/HandyControl/Resources/vs2019_logo.png)](https://visualstudio.microsoft.com/free-developer-offers/)
[![JetBrains](https://gitee.com/handyorg/HandyOrgResource/raw/master/HandyControl/Resources/resharper_logo.png)](https://www.jetbrains.com/?from=HandyControl)
[![Cake](https://gitee.com/handyorg/HandyOrgResource/raw/master/HandyControl/Resources/cake_logo.png)](https://cakebuild.net/)
[![AppVeyor](https://gitee.com/handyorg/HandyOrgResource/raw/master/HandyControl/Resources/appveyor_logo.png)](https://www.appveyor.com/)
[![Gitter](https://gitee.com/handyorg/HandyOrgResource/raw/master/HandyControl/Resources/gitter_logo.png)](https://gitter.im/)
## Usage
@@ -49,7 +49,7 @@ public class AnimationPath : Shape
设置动画重复行为,默认为`Forever`,可根据需要设置重复行为。
## 继承至Shape常用属性
## 继承自Shape常用属性
| 属性名称 | 用途 |
| --------------- | -------- |
@@ -1,5 +1,54 @@
---
title: 建设中
title: Carousel 轮播
---
建设中
可以在固定时间内循环切换项目。
```c#
public class Carousel : SimpleItemsControl, IDisposable
```
# 属性
| 属性 | 用途 |
| ---------------------- | ------------------------------|
| AutoRun | 是否自动轮播 |
| Interval | 轮播间隔时间 |
| ExtendWidth | 项内容扩展宽度 |
| IsCenter | 轮播项是否居中显示 |
| PageButtonStyle | 页按钮样式 |
# 案例
## 显示填充轮播项
```xml
<hc:Carousel Margin="32" IsCenter="True" AutoRun="True" Width="600" Height="330" VerticalAlignment="Center">
<Image Width="600" Stretch="UniformToFill" Source="/HandyControlDemo;component/Resources/Img/1.jpg"/>
<Image Width="300" Stretch="UniformToFill" Source="/HandyControlDemo;component/Resources/Img/2.jpg"/>
<hc:SimplePanel Width="600">
<Image Stretch="UniformToFill" Source="/HandyControlDemo;component/Resources/Img/3.jpg"/>
<TextBlock Text="Demo Text" Style="{StaticResource TextBlockDefault}" FontSize="100" FontWeight="Bold" Foreground="White"/>
</hc:SimplePanel>
<Image Width="600" Stretch="UniformToFill" Source="/HandyControlDemo;component/Resources/Img/4.jpg"/>
<Image Width="600" Stretch="UniformToFill" Source="/HandyControlDemo;component/Resources/Img/5.jpg"/>
</hc:Carousel>
```
![Carousel](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/Carousel.gif)
## 使用绑定生成轮播项
```xml
<hc:Carousel AutoRun="True" ItemsSource="{Binding Images}" Width="300" Height="200">
<hc:Carousel.ItemTemplate>
<DataTemplate>
<Image Source="{Binding}" Width="300"/>
</DataTemplate>
</hc:Carousel.ItemTemplate>
</hc:Carousel>
```
{% note info %}
`ExtendWidth`会在最后一个轮播项后扩展一段距离,请注意,这不是偏移的概念,而是扩展的概念。
{% endnote %}
@@ -1,5 +1,24 @@
---
title: 建设中
title: ChatBubble 对话气泡
---
建设中
对话气泡常出现于通讯类软件中,相对于纯文本形式的上下文对话,使用对话气泡可以让聊天界面更加生动有趣。通过扩展,还可以做出气泡皮肤,可使软件个性化功能更加丰富。
```c#
public class ChatBubble : SelectableItem
```
# 属性
| 属性 | 用途 |
| ---------------------- | -------------------|
| Role | 对话角色 |
| Type | 消息类型 |
| IsRead | 是否已读 |
| ReadAction | 该气泡被选中时触发 |
![ChatBubble](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/ChatBubble.png)
{% note warning %}
效果代码详见源码demo
{% endnote %}
@@ -1,5 +1,61 @@
---
title: 建设中
title: CirclePanel 圆形布局
---
建设中
圆形布局常用作方向按钮、功能按钮的容器。
```c#
public class CirclePanel : Panel
```
# 属性
| 属性 | 用途 |
| ---------------------- | ------------------------------|
| Diameter | 直径 |
| KeepVertical | 元素是否保持垂直 |
| OffsetAngle | 整体的角度偏移 |
# 案例
```xml
<Style x:Key="CirclePanelButton" BasedOn="{StaticResource ButtonCustom}" TargetType="Button">
<Setter Property="UseLayoutRounding" Value="False"/>
<Setter Property="Height" Value="77"/>
<Setter Property="Width" Value="36.06"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<hc:SimplePanel>
<Path Data="{StaticResource CirclePanelDemoGeometry}" Fill="{DynamicResource PrimaryBrush}" Height="77" Width="36.06"/>
<Path Data="{StaticResource CirclePanelRightGeometry}" Stretch="Uniform" Margin="12" Fill="White"/>
</hc:SimplePanel>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value=".9"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" Value=".6"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.4"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<hc:CirclePanel Margin="64" Diameter="170">
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
<Button Style="{StaticResource CirclePanelButton}"/>
</hc:CirclePanel>
```
![CirclePanel](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Resources/CirclePanel.jpg)
+2 -2
View File
@@ -4,7 +4,7 @@ title: 鸣谢
# 感谢以下Coder提供代码贡献
<p><a style="border:0" href="https://github.com/ghost1372" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/9213496?s=400&amp;v=4" alt="ghost1372"></a><a style="border:0" href="https://github.com/DingpingZhang" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/8541016?s=400&v=4" alt="Dingping Zhang"></a><a style="border:0" href="https://github.com/M0n7y5" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/17201053?s=400&v=4" alt="M0n7y5"></a><a style="border:0" href="https://github.com/guanguanchuangyu" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/25916858?s=400&v=4" alt="guanguanchuangyu"></a><a style="border:0" href="https://github.com/yanchao891012" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/16846702?s=400&v=4" alt="yanchao891012"></a><a style="border:0" href="https://github.com/noctwolf" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/21022467?s=400&v=4" alt="noctwolf"></a><a style="border:0" href="https://github.com/xianyun666" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/22339210?s=400&v=4" alt="xianyun666"></a><a style="border:0" href="https://github.com/afunc233" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/19919631?s=400&v=4" alt="afunc233"></a><a style="border:0" href="https://github.com/DinoChan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/6076257?s=400&v=4" alt="DinoChan"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=400&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/YC946586" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/49895722?s=64&v=4" alt="YC946586"></a><a style="border:0" href="https://github.com/wihalo" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/26402999?s=64&v=4" alt="wihalo"></a><a style="border:0" href="https://github.com/startewho" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/898009?s=64&v=4" alt="startewho"></a><a style="border:0" href="https://github.com/5653325" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/3361135?s=64&v=4" alt="5653325"></a></p>
<p><a style="border:0" href="https://github.com/ghost1372" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/9213496?s=64&amp;v=4" alt="ghost1372"></a><a style="border:0" href="https://github.com/DingpingZhang" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/8541016?s=64&v=4" alt="Dingping Zhang"></a><a style="border:0" href="https://github.com/M0n7y5" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/17201053?s=64&v=4" alt="M0n7y5"></a><a style="border:0" href="https://github.com/guanguanchuangyu" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/25916858?s=64&v=4" alt="guanguanchuangyu"></a><a style="border:0" href="https://github.com/yanchao891012" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/16846702?s=64&v=4" alt="yanchao891012"></a><a style="border:0" href="https://github.com/noctwolf" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/21022467?s=64&v=4" alt="noctwolf"></a><a style="border:0" href="https://github.com/xianyun666" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/22339210?s=64&v=4" alt="xianyun666"></a><a style="border:0" href="https://github.com/afunc233" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/19919631?s=64&v=4" alt="afunc233"></a><a style="border:0" href="https://github.com/DinoChan" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/6076257?s=64&v=4" alt="DinoChan"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=64&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/JinhuaChen-OMEC" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/47024703?s=64&v=4" alt="JinhuaChen-OMEC"></a><a style="border:0" href="https://github.com/seedtyx" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/5851975?s=64&v=4" alt="seedtyx"></a><a style="border:0" href="https://github.com/KleinPan" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/34428802?s=64&v=4" alt="KleinPan"></a><a style="border:0" href="https://github.com/yxhq" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/10378954?s=64&v=4" alt="yxhq"></a><a style="border:0" href="https://github.com/AiHaibara" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/5195234?s=64&v=4" alt="AiHaibara"></a><a style="border:0" href="https://github.com/walterlv" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/9959623?s=64&v=4" alt="walterlv"></a><a style="border:0" href="https://github.com/Luoyingliang" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/29297262?s=64&v=4" alt="Luoyingliang"></a><a style="border:0" href="https://github.com/lindexi" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/16054566?s=64&v=4" alt="lindexi"></a><a style="border:0" href="https://github.com/danwalmsley" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/4672627?s=64&v=4" alt="danwalmsley"></a><a style="border:0" href="https://github.com/varKeytrap" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/17864005?s=64&v=4" alt="varKeytrap"></a></p>
# 感谢以下组织机构提供开源许可
@@ -12,4 +12,4 @@ title: 鸣谢
# 感谢以下捐赠者
<p><a style="border:0" href="https://github.com/bigorange1900" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/49062011?s=400&v=4" alt="bigorange1900"></a><a style="border:0" href="https://github.com/14632791" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/27358331?s=400&v=4" alt="14632791"></a><a style="border:0" href="https://github.com/IUpdatable" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/51181716?s=400&v=4" alt="IUpdatable"></a><a style="border:0" href="https://github.com/maplewei" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/13778095?s=400&v=4" alt="maplewei"></a><a style="border:0" href="https://github.com/sunshang-hl" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/34593206?s=400&v=4" alt="sunshang-hl"></a><a style="border:0" href="https://github.com/yangkang326" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/51224259?s=400&v=4" alt="yangkang326"></a><a style="border:0" href="https://github.com/zmrbak" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/7257543?s=400&v=4" alt="zmrbak"></a><a style="border:0" href="https://github.com/AFei19911012" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/31465314?s=400&v=4" alt="AFei19911012"></a><a style="border:0" href="https://github.com/wayne2006" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/21210915?s=400&v=4" alt="wayne2006"></a><a style="border:0" href="https://github.com/towerDLH" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/53053537?s=400&v=4" alt="towerDLH"></a><a style="border:0" href="https://github.com/BluceBosen" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars3.githubusercontent.com/u/24750822?s=400&v=4" alt="BluceBosen"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=400&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/YC946586" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars2.githubusercontent.com/u/49895722?s=400&v=4" alt="YC946586"></a><a style="border:0" href="https://github.com/wihalo" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/26402999?s=64&v=4" alt="wihalo"></a><a style="border:0" href="https://github.com/startewho" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars0.githubusercontent.com/u/898009?s=64&v=4" alt="startewho"></a><a style="border:0" href="https://github.com/5653325" target="_blank" rel="noopener"><img width="64" height="64" src="https://avatars1.githubusercontent.com/u/3361135?s=64&v=4" alt="5653325"></a></p>
<p><a style="border:0" href="https://github.com/bigorange1900" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/49062011?s=64&v=4" alt="bigorange1900"></a><a style="border:0" href="https://github.com/14632791" target="_blank" rel="noopener"><img style="border-radius:50%!important" style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/27358331?s=64&v=4" alt="14632791"></a><a style="border:0" href="https://github.com/IUpdatable" target="_blank" rel="noopener"><img style="border-radius:50%!important" style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/51181716?s=64&v=4" alt="IUpdatable"></a><a style="border:0" href="https://github.com/maplewei" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/13778095?s=64&v=4" alt="maplewei"></a><a style="border:0" href="https://github.com/sunshang-hl" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/34593206?s=64&v=4" alt="sunshang-hl"></a><a style="border:0" href="https://github.com/yangkang326" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/51224259?s=64&v=4" alt="yangkang326"></a><a style="border:0" href="https://github.com/zmrbak" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/7257543?s=64&v=4" alt="zmrbak"></a><a style="border:0" href="https://github.com/AFei19911012" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/31465314?s=64&v=4" alt="AFei19911012"></a><a style="border:0" href="https://github.com/wayne2006" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/21210915?s=64&v=4" alt="wayne2006"></a><a style="border:0" href="https://github.com/towerDLH" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/53053537?s=64&v=4" alt="towerDLH"></a><a style="border:0" href="https://github.com/BluceBosen" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/24750822?s=64&v=4" alt="BluceBosen"></a><a style="border:0" href="https://github.com/MrZhangYuan" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/16384123?s=64&v=4" alt="MrZhangYuan"></a><a style="border:0" href="https://github.com/YC946586" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars2.githubusercontent.com/u/49895722?s=64&v=4" alt="YC946586"></a><a style="border:0" href="https://github.com/wihalo" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/26402999?s=64&v=4" alt="wihalo"></a><a style="border:0" href="https://github.com/startewho" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/898009?s=64&v=4" alt="startewho"></a><a style="border:0" href="https://github.com/5653325" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars1.githubusercontent.com/u/3361135?s=64&v=4" alt="5653325"></a><a style="border:0" href="https://github.com/LostAsk" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars0.githubusercontent.com/u/46678241?s=64&v=4" alt="LostAsk"></a><a style="border:0" href="https://github.com/sanshiliuxiao" target="_blank" rel="noopener"><img style="border-radius:50%!important" width="64" height="64" src="https://avatars3.githubusercontent.com/u/25658690?s=64&v=4" alt="sanshiliuxiao"></a></p>
@@ -17,7 +17,7 @@
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ListBox Name="ListBoxChat" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False" Background="Transparent" hc:ChatBubble.MaxWidth="300" BorderThickness="0" Style="{StaticResource StackPanelVerticalListBox}" ItemsSource="{Binding ChatInfos}">
<ListBox Name="ListBoxChat" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False" Background="Transparent" BorderThickness="0" Style="{StaticResource StackPanelVerticalListBox}" ItemsSource="{Binding ChatInfos}">
<hc:Interaction.Triggers>
<hc:RoutedEventTrigger RoutedEvent="hc:ChatBubble.Selected">
<hc:EventToCommand Command="{Binding ReadMessageCmd}" PassEventArgsToCommand="True" />
@@ -25,7 +25,7 @@
</hc:Interaction.Triggers>
<ListBox.ItemTemplate>
<DataTemplate>
<hc:ChatBubble Role="{Binding Role}" Type="{Binding Type}" Content="{Binding Message}" Tag="{Binding}"/>
<hc:ChatBubble MaxWidth="300" Role="{Binding Role}" Type="{Binding Type}" Content="{Binding Message}" Tag="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
@@ -10,17 +10,12 @@ namespace HandyControlDemo.UserControl
public ChatBox()
{
InitializeComponent();
ListBoxChat.ItemContainerGenerator.ItemsChanged += ItemContainerGenerator_ItemsChanged;
}
private void ItemContainerGenerator_ItemsChanged(object sender, System.Windows.Controls.Primitives.ItemsChangedEventArgs e)
{
if (_scrollViewer == null)
{
_scrollViewer = VisualHelper.GetChild<ScrollViewer>(ListBoxChat);
}
_scrollViewer ??= VisualHelper.GetChild<ScrollViewer>(ListBoxChat);
_scrollViewer?.ScrollToBottom();
}
}
@@ -33,12 +33,6 @@ namespace HandyControl.Controls
set => SetValue(IsReadProperty, ValueBoxes.BooleanBox(value));
}
public static void SetMaxWidth(DependencyObject element, double value)
=> element.SetValue(MaxWidthProperty, value);
public static double GetMaxWidth(DependencyObject element)
=> (double) element.GetValue(MaxWidthProperty);
public Action<object> ReadAction { get; set; }
protected override void OnSelected(RoutedEventArgs e)