1、model

class JX_Unit
{
public enum SumUnit
{
KW = 1,
L = 2,
Kt = 3,
}

}

 

2、viewModel

public string waterUnit {
get { return JX_Unit.SumUnit.Kt.ToString();
}
set { waterUnit = value; }
}

 

3、view

 

<TextBlock Text="{Binding waterUnit}" FontSize="15"/>

相关文章:

  • 2019-06-02
  • 2021-12-06
  • 2021-09-24
  • 2021-09-24
  • 2021-05-29
  • 2021-04-28
  • 2021-09-24
  • 2019-01-15
猜你喜欢
  • 2021-06-12
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2021-06-13
  • 2021-11-27
  • 2021-05-01
相关资源
相似解决方案