Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created May 24, 2017 12:09
Show Gist options
  • Select an option

  • Save atzimler/4d54b4705b8a61435651e76e8a02c17f to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/4d54b4705b8a61435651e76e8a02c17f to your computer and use it in GitHub Desktop.
public static readonly DependencyProperty SideProperty = DependencyProperty.RegisterAttached(nameof(Side), typeof(Side), typeof(LeftRightLayoutControl), new PropertyMetadata(Side.None, UpdateSide));
public static Side GetSide(UIElement target)
{
return (Side)target.GetValue(SideProperty);
}
public static void SetSide(UIElement target, Side value)
{
target.SetValue(SideProperty, value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment