private void OnPaneToggled()
{
if (this._parent.IsPaneOpen)
{
this.ItemsPanelRoot.ClearValue(WidthProperty);
this.ItemsPanelRoot.ClearValue(HorizontalAlignmentProperty);
}
else if (this._parent.DisplayMode == SplitViewDisplayMode.CompactInline
|| this._parent.DisplayMode == SplitViewDisplayMode.CompactOverlay)
{
this.ItemsPanelRoot.SetValue(WidthProperty, this._parent.CompactPaneLength);
this.ItemsPanelRoot.SetValue(HorizontalAlignmentProperty, HorizontalAlignment.Left);
}
}