init badge

This commit is contained in:
NaBian committed 2019-03-05 22:35:38 +08:00
1 parent 5d8e4e566a
commit fa7342819c
12 files changed
+175 -13

No files matched your search

+18
View File
@@ -276,6 +276,15 @@ namespace HandyControlDemo.Properties.Langs {
}
}
/// <summary>
/// 查找类似 评论 的本地化字符串。
/// </summary>
public static string Comment {
get {
return ResourceManager.GetString("Comment", resourceCulture);
}
}
/// <summary>
/// 查找类似 一般 的本地化字符串。
/// </summary>
@@ -915,6 +924,15 @@ namespace HandyControlDemo.Properties.Langs {
}
}
/// <summary>
/// 查找类似 回复 的本地化字符串。
/// </summary>
public static string Reply {
get {
return ResourceManager.GetString("Reply", resourceCulture);
}
}
/// <summary>
/// 查找类似 代码仓库 的本地化字符串。
/// </summary>
@@ -510,4 +510,10 @@
<data name="ComingSoon" xml:space="preserve">
<value>Coming Soon</value>
</data>
<data name="Comment" xml:space="preserve">
<value>Comment</value>
</data>
<data name="Reply" xml:space="preserve">
<value>Reply</value>
</data>
</root>
@@ -510,4 +510,10 @@
<data name="ComingSoon" xml:space="preserve">
<value>敬请期待</value>
</data>
<data name="Comment" xml:space="preserve">
<value>评论</value>
</data>
<data name="Reply" xml:space="preserve">
<value>回复</value>
</data>
</root>
@@ -1,6 +1,15 @@
<UserControl x:Class="HandyControlDemo.UserControl.BadgeDemoCtl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:userControl="clr-namespace:HandyControlDemo.UserControl">
<userControl:UnderConstruction/>
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
xmlns:langs="clr-namespace:HandyControlDemo.Properties.Langs"
Background="{DynamicResource RegionBrush}">
<StackPanel Margin="32" Orientation="Horizontal">
<controls:Badge Value="99">
<Button Content="{x:Static langs:Lang.Comment}"/>
</controls:Badge>
<controls:Badge Value="99" Margin="16,0,0,0" Style="{StaticResource BadgeChromeDanger}">
<Button Content="{x:Static langs:Lang.Reply}"/>
</controls:Badge>
</StackPanel>
</UserControl>