src/Carnac.Logic/Models/PopupSettings.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Windows;
using Carnac.Logic.Enums;
namespace Carnac.Logic.Models
{
public class PopupSettings : NotifyPropertyChanged
{
[DefaultValue(350)]
public int ItemMaxWidth { get; set; }
[DefaultValue(0.5)]
public double ItemOpacity { get; set; }
[DefaultValue("Black")]
public string ItemBackgroundColor { get; set; }
[DefaultValue("White")]
public string FontColor { get; set; }
[DefaultValue(40)]
public int FontSize { get; set; }
public int Screen { get; set; }
[NotifyProperty(AlsoNotifyFor = new[] { "ScaleTransform", "Alignment" })]
public NotificationPlacement Placement { get; set; }
//Used to determine which from it's leftmost co-ord
double left;
public double Left
{
get { return left; }
set
{
left = value;
OnLeftChanged(EventArgs.Empty);
}
}
public event EventHandler LeftChanged;
protected void OnLeftChanged(EventArgs e)
{
var handler = LeftChanged;
if (handler != null) handler(this, e);
}
[NotifyProperty(AlsoNotifyFor = new[] { "Margins" })]
public int TopOffset { get; set; }
[NotifyProperty(AlsoNotifyFor = new[] { "Margins" })]
public int BottomOffset { get; set; }
[NotifyProperty(AlsoNotifyFor = new[] { "Margins" })]
public int LeftOffset { get; set; }
[NotifyProperty(AlsoNotifyFor = new[] { "Margins" })]
public int RightOffset { get; set; }
后面还有 25 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。