RelativePanel.SetAlignRightWithPanel(UIElement, Boolean) 方法

定義

設定目標專案的 RelativePanel.AlignRightWithPanel XAML 附加屬性的值。

public:
 static void SetAlignRightWithPanel(UIElement ^ element, bool value);
 static void SetAlignRightWithPanel(UIElement const& element, bool const& value);
public static void SetAlignRightWithPanel(UIElement element, bool value);
function setAlignRightWithPanel(element, value)
Public Shared Sub SetAlignRightWithPanel (element As UIElement, value As Boolean)

參數

element
UIElement

寫入屬性值的物件。

value
Boolean

bool

要設定的值。 (true ,將這個專案的右邊緣與面板的右邊緣對齊;否則為 false.)

備註

這個方法是屬性系統的公用程式方法,而且不會在大部分的應用程式案例中使用。 在大部分情況下,您會在 XAML 中設定 RelativePanel.AlignRightWithPanel XAML 附加屬性,而且不需要此方法。 如需詳細資訊,請參閱 RelativePanel.AlignRightWithPanel 附加屬性。

適用於

另請參閱