packages/MaterialDesignThemes.2.5.0.1205/src/net45/Transitions/TransitionAssist.cs
(完整代码) 1KBusing System.Windows;
namespace MaterialDesignThemes.Wpf.Transitions
{
/// <summary>
/// Allows transitions to be disabled where supported.
/// </summary>
public static class TransitionAssist
{
/// <summary>
/// Allows transitions to be disabled where supported. Note this is an inheritable property.
/// </summary>
public static readonly DependencyProperty DisableTransitionsProperty = DependencyProperty.RegisterAttached(
"DisableTransitions", typeof (bool), typeof (TransitionAssist), new FrameworkPropertyMetadata(default(bool), FrameworkPropertyMetadataOptions.Inherits));
/// <summary>
/// Allows transitions to be disabled where supported. Note this is an inheritable property.
/// </summary>
public static void SetDisableTransitions(DependencyObject element, bool value)
{
element.SetValue(DisableTransitionsProperty, value);
}
/// <summary>
/// Allows transitions to be disabled where supported. Note this is an inheritable property.
/// </summary>
public static bool GetDisableTransitions(DependencyObject element)
{
return (bool) element.GetValue(DisableTransitionsProperty);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
