private void PieceBindings(NumberPieceXF thisGraphics, NumberPieceCP thisPiece) { thisGraphics.HeightRequest = _graphicsSize !.GetWidthHeight; thisGraphics.WidthRequest = _graphicsSize.GetWidthHeight; thisGraphics.IsVisible = true; // i think needs to manually be set. var thisBind = GetCommandBinding(nameof(NumberPicker.NumberPickedCommand)); thisGraphics.SetBinding(GameGraphics.Base.GraphicsCommand.CommandProperty, thisBind); thisGraphics.CommandParameter = thisPiece; // must be piece, not simply the color. something else will figure out the color. thisGraphics.BindingContext = thisPiece; thisGraphics.SetBinding(NumberPieceXF.IsSelectedProperty, new Binding(nameof(BaseGraphicsCP.IsSelected))); // i think thisGraphics.SetBinding(IsEnabledProperty, new Binding(nameof(BaseGraphicsCP.IsEnabled))); thisGraphics.SetBinding(NumberPieceXF.NumberValueProperty, new Binding(nameof(NumberPieceCP.NumberValue))); thisGraphics.SendPiece(thisPiece); }