Skip to content

Instantly share code, notes, and snippets.

@FINDarkside
Created July 7, 2015 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FINDarkside/3897d866db7548984188 to your computer and use it in GitHub Desktop.
Save FINDarkside/3897d866db7548984188 to your computer and use it in GitHub Desktop.
<local:InventoryView item="{Binding inventory}"></local:InventoryView>
public static readonly DependencyProperty itemProperty = DependencyProperty.Register("item", typeof(InventorySaveDataProxy), typeof(InventoryView));
public InventorySaveDataProxy item
{
get{
Debug.WriteLine("getter");
return (InventorySaveDataProxy)GetValue(itemProperty);
}
set
{
Debug.WriteLine("setter");
SetValue(itemProperty, value);
InitializeInventoryView();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment