Files
HandyControl/skills/handycontrol-wpf-relative-panel/references/api.md
T
2026-10-27 09:12:40 +08:00

3.8 KiB

源码 API 导航

下面是当前工作区的声明摘录,不是完整 C# 文件,不包含全部继承成员、访问器和条件编译条件。属性是否可写、依赖属性默认值、枚举成员和目标框架限制,需打开对应源码核对。

RelativePanel

源码:src/Shared/HandyControl_Shared/Controls/Panel/RelativePanel.cs

public class RelativePanel : Panel
public RelativePanel()
public static void SetAlignLeftWithPanel(DependencyObject element, bool value)
public static bool GetAlignLeftWithPanel(DependencyObject element)
public static void SetAlignTopWithPanel(DependencyObject element, bool value)
public static bool GetAlignTopWithPanel(DependencyObject element)
public static void SetAlignRightWithPanel(DependencyObject element, bool value)
public static bool GetAlignRightWithPanel(DependencyObject element)
public static void SetAlignBottomWithPanel(DependencyObject element, bool value)
public static bool GetAlignBottomWithPanel(DependencyObject element)
public static void SetAlignLeftWith(DependencyObject element, UIElement value)
public static UIElement GetAlignLeftWith(DependencyObject element)
public static void SetAlignTopWith(DependencyObject element, UIElement value)
public static UIElement GetAlignTopWith(DependencyObject element)
public static void SetAlignRightWith(DependencyObject element, UIElement value)
public static UIElement GetAlignRightWith(DependencyObject element)
public static void SetAlignBottomWith(DependencyObject element, UIElement value)
public static UIElement GetAlignBottomWith(DependencyObject element)
public static void SetLeftOf(DependencyObject element, UIElement value)
public static UIElement GetLeftOf(DependencyObject element)
public static void SetAbove(DependencyObject element, UIElement value)
public static UIElement GetAbove(DependencyObject element)
public static void SetRightOf(DependencyObject element, UIElement value)
public static UIElement GetRightOf(DependencyObject element)
public static void SetBelow(DependencyObject element, UIElement value)
public static UIElement GetBelow(DependencyObject element)
public static void SetAlignHorizontalCenterWithPanel(DependencyObject element, bool value)
public static bool GetAlignHorizontalCenterWithPanel(DependencyObject element)
public static void SetAlignVerticalCenterWithPanel(DependencyObject element, bool value)
public static bool GetAlignVerticalCenterWithPanel(DependencyObject element)
public static void SetAlignHorizontalCenterWith(DependencyObject element, UIElement value)
public static UIElement GetAlignHorizontalCenterWith(DependencyObject element)
public static void SetAlignVerticalCenterWith(DependencyObject element, UIElement value)
public static UIElement GetAlignVerticalCenterWith(DependencyObject element)
public bool Measured
public UIElement Element
public Size OriginDesiredSize
public double Left
public double Top
public double Right
public double Bottom
public HashSet<GraphNode> OutgoingNodes
public GraphNode AlignLeftWithNode
public GraphNode AlignTopWithNode
public GraphNode AlignRightWithNode
public GraphNode AlignBottomWithNode
public GraphNode LeftOfNode
public GraphNode AboveNode
public GraphNode RightOfNode
public GraphNode BelowNode
public GraphNode AlignHorizontalCenterWith
public GraphNode AlignVerticalCenterWith
public GraphNode(UIElement element)
public void Arrange(Size arrangeSize)
public void Reset(bool clearPos)
public Size GetBoundingSize()
public Graph()
public IEnumerable<GraphNode> GetNodes()
public void Clear()
public void Reset(bool clearPos = true)
public GraphNode AddLink(GraphNode from, UIElement to)
public GraphNode AddNode(UIElement value)
public void Measure(Size availableSize)
public Size GetBoundingSize(bool calcWidth, bool calcHeight)