ScreenToGif/Controls/EncoderListViewItem.cs
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using ScreenToGif.ImageUtil;
using ScreenToGif.Util;
using ScreenToGif.Windows.Other;
using Clipboard = System.Windows.Clipboard;
namespace ScreenToGif.Controls
{
/// <summary>
/// ListViewItem used by the Encoder window.
/// </summary>
public class EncoderListViewItem : ListViewItem
{
#region Dependency Properties
public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(UIElement), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata());
public static readonly DependencyProperty PercentageProperty = DependencyProperty.Register("Percentage", typeof(double), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(0.0));
public static readonly DependencyProperty CurrentFrameProperty = DependencyProperty.Register("CurrentFrame", typeof(int), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(1));
public static readonly DependencyProperty FrameCountProperty = DependencyProperty.Register("FrameCount", typeof(int), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(0));
public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata());
public static readonly DependencyProperty IdProperty = DependencyProperty.Register("Id", typeof(int), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(-1));
public static readonly DependencyProperty TokenProperty = DependencyProperty.Register("Token", typeof(CancellationTokenSource), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata());
public static readonly DependencyProperty IsIndeterminateProperty = DependencyProperty.Register("IsIndeterminate", typeof(bool), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(false));
public static readonly DependencyProperty StatusProperty = DependencyProperty.Register("Status", typeof(Status), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(Status.Encoding));
public static readonly DependencyProperty OutputTypeProperty = DependencyProperty.Register("OutputType", typeof(OutputType), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(OutputType.Gif));
public static readonly DependencyProperty SizeInBytesProperty = DependencyProperty.Register("SizeInBytes", typeof(long), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(0L));
public static readonly DependencyProperty OutputPathProperty = DependencyProperty.Register("OutputPath", typeof(string), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata());
public static readonly DependencyProperty OutputFilenameProperty = DependencyProperty.Register("OutputFilename", typeof(string), typeof(EncoderListViewItem),
new FrameworkPropertyMetadata(OutputFilename_PropertyChanged));
后面还有 358 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
