ScreenToGif/Controls/DropDownButton.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
namespace ScreenToGif.Controls
{
/// <summary>
/// A non-editable ComboBox style.
/// </summary>
public class DropDownButton : ComboBox
{
#region Variables
public readonly static DependencyProperty ContentProperty;
public readonly static DependencyProperty DescriptionProperty;
public readonly static DependencyProperty MaxSizeProperty;
public readonly static DependencyProperty IsVerticalProperty;
#endregion
#region Properties
/// <summary>
/// The Image of the button.
/// </summary>
[Description("The Image of the DropDownButton."), Category("Common")]
public UIElement Content
{
get { return (UIElement)GetValue(ContentProperty); }
set { SetCurrentValue(ContentProperty, value); }
}
/// <summary>
/// The maximum size of the image.
/// </summary>
[Description("The maximum size of the image."), Category("Common")]
public double MaxSize
{
get { return (double)GetValue(MaxSizeProperty); }
set { SetCurrentValue(MaxSizeProperty, value); }
}
/// <summary>
/// The text of the control.
/// </summary>
[Description("The text of the control."), Category("Common")]
public String Description
{
get { return (String)GetValue(DescriptionProperty); }
set { SetCurrentValue(DescriptionProperty, value); }
}
/// <summary>
/// True if vertical style.
/// </summary>
[Description("True if vertical style."), Category("Common")]
public bool IsVertical
{
get { return (bool)GetValue(IsVerticalProperty); }
后面还有 16 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
