#region ActiveButton
private string _activeButton = "";
public string ActiveButton
{
get => _activeButton;
set => SetProperty(ref _activeButton, value);
}
#endregion
private void OnButtonFocused(object sender, FocusEventArgs e)
{
if (sender is Entry cell) _vm.ActiveButton = cell.ReturnCommandParameter as string;
}
<!--#region Квадратный метр (км2) -->
<Label Text="{code:TranslateExtension SquareMsLabel }"/>
<Entry
ReturnCommandParameter="MsValue"
Focused="OnButtonFocused"
Keyboard="Numeric"
Text="{Binding MsValue , Converter={StaticResource DoubleConverter}}"/>
<!--#endregion-->