mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
fixes the memory list issue (#20)
* fixes a wrongly migrated property * UTF-8-BOM
This commit is contained in:
parent
b53600bfc4
commit
485d381eac
1 changed files with 4 additions and 6 deletions
|
@ -19,14 +19,12 @@ namespace CalculatorApp
|
||||||
|
|
||||||
public CalculatorApp.ViewModel.StandardCalculatorViewModel Model
|
public CalculatorApp.ViewModel.StandardCalculatorViewModel Model
|
||||||
{
|
{
|
||||||
get { return (CalculatorApp.ViewModel.StandardCalculatorViewModel)GetValue(ModelProperty); }
|
get
|
||||||
set { SetValue(ModelProperty, value); }
|
{
|
||||||
|
return (CalculatorApp.ViewModel.StandardCalculatorViewModel)this.DataContext;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Using a DependencyProperty as the backing store for Model. This enables animation, styling, binding, etc...
|
|
||||||
public static readonly DependencyProperty ModelProperty =
|
|
||||||
DependencyProperty.Register(nameof(Model), typeof(CalculatorApp.ViewModel.StandardCalculatorViewModel), typeof(Memory), new PropertyMetadata(default(CalculatorApp.ViewModel.StandardCalculatorViewModel)));
|
|
||||||
|
|
||||||
public GridLength RowHeight
|
public GridLength RowHeight
|
||||||
{
|
{
|
||||||
get { return (GridLength)GetValue(RowHeightProperty); }
|
get { return (GridLength)GetValue(RowHeightProperty); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue