packages/MaterialDesignThemes.2.5.1/src/net45/ValidationAssist.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace MaterialDesignThemes.Wpf
{
public static class ValidationAssist
{
#region ShowOnFocusProperty
/// <summary>
/// The hint property
/// </summary>
public static readonly DependencyProperty OnlyShowOnFocusProperty = DependencyProperty.RegisterAttached(
"OnlyShowOnFocus",
typeof(bool),
typeof(ValidationAssist),
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits));
public static bool GetOnlyShowOnFocus(DependencyObject element)
{
return (bool)element.GetValue(OnlyShowOnFocusProperty);
}
public static void SetOnlyShowOnFocus(DependencyObject element, bool value)
{
element.SetValue(OnlyShowOnFocusProperty, value);
}
#endregion
#region UsePopupProperty
/// <summary>
/// The hint property
/// </summary>
public static readonly DependencyProperty UsePopupProperty = DependencyProperty.RegisterAttached(
"UsePopup",
typeof(bool),
typeof(ValidationAssist),
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits));
public static bool GetUsePopup(DependencyObject element)
{
return (bool)element.GetValue(UsePopupProperty);
}
public static void SetUsePopup(DependencyObject element, bool value)
{
element.SetValue(UsePopupProperty, value);
}
#endregion
/// <summary>
/// The hint property
/// </summary>
public static readonly DependencyProperty PopupPlacementProperty = DependencyProperty.RegisterAttached(
"PopupPlacement",
typeof(PlacementMode),
后面还有 51 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。