ScreenToGif/Controls/HexadecimalBox.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace ScreenToGif.Controls
{
public class HexadecimalBox : ExtendedTextBox
{
#region Dependency Properties
public static readonly DependencyProperty RedProperty = DependencyProperty.Register("Red", typeof(int), typeof(HexadecimalBox), new PropertyMetadata(0, Value_PropertyChanged));
public static readonly DependencyProperty GreenProperty = DependencyProperty.Register("Green", typeof(int), typeof(HexadecimalBox), new PropertyMetadata(0, Value_PropertyChanged));
public static readonly DependencyProperty BlueProperty = DependencyProperty.Register("Blue", typeof(int), typeof(HexadecimalBox), new PropertyMetadata(0, Value_PropertyChanged));
public static readonly DependencyProperty AlphaProperty = DependencyProperty.Register("Alpha", typeof(int), typeof(HexadecimalBox), new PropertyMetadata(255, Value_PropertyChanged));
public static readonly DependencyProperty DisplayGlyphProperty = DependencyProperty.Register("DisplayGlyph", typeof(bool), typeof(HexadecimalBox), new PropertyMetadata(true));
#endregion
#region Properties
public int Red
{
get { return (int)GetValue(RedProperty); }
set { SetValue(RedProperty, value); }
}
public int Blue
{
get { return (int)GetValue(BlueProperty); }
set { SetValue(BlueProperty, value); }
}
public int Green
{
get { return (int)GetValue(GreenProperty); }
set { SetValue(GreenProperty, value); }
}
public int Alpha
{
get { return (int)GetValue(AlphaProperty); }
set { SetValue(AlphaProperty, value); }
}
public bool DisplayGlyph
{
get { return (bool)GetValue(DisplayGlyphProperty); }
set { SetValue(DisplayGlyphProperty, value); }
}
#endregion
private static void Value_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
后面还有 172 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
