新增托盘图标
This commit is contained in:
@@ -3,48 +3,7 @@ using System.Text.RegularExpressions;
|
||||
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.Common.Extensions;
|
||||
#region 格式化
|
||||
|
||||
//StringFormat={}{0:C} $123.46
|
||||
//StringFormat={}{0:C1} $123.5
|
||||
//StringFormat=单价:{0:C} 单价:$123.46
|
||||
//StringFormat={}{0}元 123.45678元
|
||||
//StringFormat={}{0:D6} 086723
|
||||
//StringFormat={}{0:F4} 28768234.9329
|
||||
//StringFormat={}{0:N3} 28,768,234.933
|
||||
//StringFormat={}{0:P1} 78.9 %
|
||||
//StringFormat={}{0:0000.00} 0123.46
|
||||
//StringFormat={}{0:####.##} 123.46
|
||||
//StringFormat={}{0:d} 5/4/2015
|
||||
//StringFormat={}{0:D} Monday, May 04, 2015
|
||||
//StringFormat={}{0:f} Monday, May 04, 2015 5:46 PM
|
||||
//StringFormat={}{0:F} Monday, May 04, 2015 5:46:56 PM
|
||||
//StringFormat={}{0:g} 5/4/2015 5:46 PM
|
||||
//StringFormat={}{0:G} 5/4/2015 5:46:56 PM
|
||||
//StringFormat={}{0:m} May 04
|
||||
//StringFormat={}{0:Distinct} May 04
|
||||
//StringFormat={}{0:t} 5:46 PM
|
||||
//StringFormat={}{0:Command} 5:46:56 PM
|
||||
//StringFormat={}{0:yyyy年MM月dd日} 2015年05月04日
|
||||
//StringFormat={}{0:yyyy-MM-dd} 2015-05-04
|
||||
//StringFormat={}{0:yyyy-MM-dd HH:mm} 2015-05-04 17:46
|
||||
//StringFormat={}{0:yyyy-MM-dd HH:mm:ss},,ConverterCulture=zh-CN||StringFormat='yyyy:MM:dd HH:mm:ss',,ConverterCulture=zh-CN 2015-05-04 17:46:56
|
||||
//< TextBox.Text >
|
||||
// < MultiBinding StringFormat = "姓名:{0}	{1}" >
|
||||
// < Binding Path = "FristName" />
|
||||
// < Binding Path = "LastName" />
|
||||
// </ MultiBinding >
|
||||
//</ TextBox.Text >
|
||||
// < !--
|
||||
// \a  BEL
|
||||
// \b  BS - Backspace
|
||||
// \f  FF - Formfeed
|
||||
// \n 
 LF, NL - Linefeed, New Line
|
||||
// \r 
 CR - Carriage return
|
||||
// \t 	 HT - Tab, Horizontal Tabelator
|
||||
// \v  VT - Vertical Tabelator
|
||||
|
||||
#endregion
|
||||
public static class StringExtensions
|
||||
{
|
||||
/// <summary>
|
||||
@@ -297,5 +256,5 @@ public static class StringExtensions
|
||||
? rv
|
||||
: Convert.ToInt32(StrToFloat(expression, defValue));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public class RequiredValidationRule : ValidationRule
|
||||
// InputMethod.IsInputMethodEnabled= "False"
|
||||
// md:HintAssist.Hint= "楼板偏移"
|
||||
// md:TextFieldAssist.SuffixText= "mm" >
|
||||
// < TextBox.Text >
|
||||
// < TextBox.Tip >
|
||||
// < Binding
|
||||
// Path= "FloorOffset"
|
||||
// StringFormat= "{}{0:N2}"
|
||||
@@ -23,7 +23,7 @@ public class RequiredValidationRule : ValidationRule
|
||||
// <domain:RangeValidationRule Max = "100" Min= "0" xmlns:domain= "clr-namespace:Sai.Toolkit.Mvvm.ValidationRules" ValidatesOnTargetUpdated = "True" />
|
||||
// </ Binding.ValidationRules >
|
||||
// </ Binding >
|
||||
// </ TextBox.Text >
|
||||
// </ TextBox.Tip >
|
||||
// </ TextBox >
|
||||
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user