Пример #1
0
 public CachedTile([NotNull] Panel container, PositionKey key, double x, double y)
 {
     _key     = key;
     _x       = x;
     _y       = y;
     State    = TileState.Locked;
     UiCanvas = Win2dCanvasManager.Employ(container, this, x, y);
 }
Пример #2
0
 /// <summary>
 /// Remove event bindings
 /// </summary>
 public void Detach()
 {
     Win2dCanvasManager.Retire(UiCanvas);
     _detached = true;
 }