SpotPanel
このパネルは、特定の子供または計算された長方形の境界に相対的な子要素を置くのに便利です。
継承元: Panel
メソッド
protected override Size ArrangeOverride(Size finalSize)
result = spotPanel.ArrangeOverride(finalSize)
スポットやアライメントの付随するプロパティとメインの付随するプロパティで最初の子供のサイズに応じて、すべての子供を整理します。
- finalSize
protected virtual Rect ComputeBorder()
result = spotPanel.ComputeBorder()
要素が配置されるべき長方形を計算します。
戻り値: このパネルがAdornmentにあり、LocationElementの場合、AdornedElementのサイズを返します。 そうでなければ、この最初の子供DesiredSizeに基づいてRectを返します。 サイズとサイズの計算でRectの幅と高さのみ)。
public static Spot GetAlignment(DependencyObject d)
result = SpotPanel.GetAlignment(d)
DependencyObject に位置する要素のスポットポイントを取得します。
- d
- UIElement の使い方
戻り値: このデフォルトは、Center のデフォルト値です。
public static bool GetMain(DependencyObject d)
result = SpotPanel.GetMain(d)
要素が SpotPanelの "main" 要素と見なされるかどうかを、 兄弟要素のすべてが配置されているかを確認します。
- d
- this should be a child of a SpotPanel
戻り値: デフォルトは false です。
public static Spot GetSpot(DependencyObject d)
result = SpotPanel.GetSpot(d)
要素が配置されるべきスポットを取得します。
- d
- UIElement の使い方
戻り値: このデフォルトは、Center のデフォルト値です。
protected override Size MeasureOverride(Size availableSize)
result = spotPanel.MeasureOverride(availableSize)
子供のすべてを測定し、Spot と Alignment の添付プロパティとメインの添付プロパティで配置された要素の境界の大きさのユニオンのサイズを返します。
- availableSize
public static void SetAlignment(DependencyObject d, Spot v)
SpotPanel.SetAlignment(d, v)
DependencyObject に位置する要素のスポットポイントを設定します。
- d
- UIElement の使い方
- v
- IsSpotが真のスポットです。パネルは、そうでなければセンターを想定しています。
public static void SetMain(DependencyObject d, bool v)
SpotPanel.SetMain(d, v)
要素が SpotPanelの "main" 要素と見なされるかどうかを設定します。 周りの要素は、すべてのシブリング要素が配置されているかを設定します。
- d
- this should be a child of a SpotPanel
- v
- SpotPanelのそのような子は、このプロパティが真に設定されている必要があります
public static void SetSpot(DependencyObject d, Spot v)
SpotPanel.SetSpot(d, v)
要素が配置されるべき点を設定します。
- d
- UIElement の使い方
- v
- IsSpotが真のスポットです。パネルは、そうでなければセンターを想定しています。
フィールド
public static readonly DependencyProperty AlignmentProperty
value = SpotPanel.AlignmentProperty
添付の依存関係プロパティを識別します。
public static readonly DependencyProperty MainProperty
value = SpotPanel.MainProperty
添付の依存関係プロパティを識別します。
public static readonly DependencyProperty SpotProperty
value = SpotPanel.SpotProperty
スポットに付随する依存性プロパティを特定します。