CircularPanel.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WpfWorld
{
public enum Orientation
{
Default,
In,
Out
}
public class CircularPanel:Panel
{
double angleEach; // 角度
Size sizeLargest; // 最大孩子的尺寸
double radius;
double maxnum;
double minnum;
// 圆的半径
double outerEdgeFromCenter;
double innerEdgeFromCenter;
public double Padding
{
get { return (double)GetValue(PaddingProperty); }
set { SetValue(PaddingProperty, value); }
}
/// <summary>
/// DependencyProperty for <see cref="Padding" /> property.
/// </summary>
public static readonly DependencyProperty PaddingProperty
= DependencyProperty.Register("Padding", typeof(double), typeof(CircularPanel),
new FrameworkPropertyMetadata(0.0d, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender));
public bool ChildrenHitVisible
{
get { return (bool)GetValue(ChildrenHitVisibleProperty); }
set { SetValue(ChildrenHitVisibleProperty, value); }
}
// Using a DependencyProperty as the backing store for ChildrenHitVisible. This enables animation, styling, binding, etc...
public static readonly DependencyProperty ChildrenHitVisibleProperty =
DependencyProperty.Register("ChildrenHitVisible", typeof(bool), typeof(CircularPanel),
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender));
public Orientation Orientation
后面还有 130 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。