update StepBar & readme

This commit is contained in:
NaBian committed 2020-03-28 14:27:13 +08:00
1 parent 31ee8e91f2
commit b7222be265
4 files changed
+81 -53

No files matched your search

@@ -18,7 +18,7 @@
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<hc:StepBar Grid.ColumnSpan="2">
<hc:StepBar Grid.ColumnSpan="2" StepIndex="{Binding StepIndex}">
<hc:StepBarItem Content="{x:Static langs:Lang.Register}"/>
<hc:StepBarItem Content="{x:Static langs:Lang.BasicInfo}"/>
<hc:StepBarItem Content="{x:Static langs:Lang.UploadFile}"/>
@@ -16,6 +16,18 @@ namespace HandyControlDemo.ViewModel
{
public StepBarDemoViewModel(DataService dataService) => DataList = dataService.GetStepBarDemoDataList();
private int _stepIndex;
public int StepIndex
{
get => _stepIndex;
#if netle40
set => Set(nameof(StepIndex), ref _stepIndex, value);
#else
set => Set(ref _stepIndex, value);
#endif
}
/// <summary>
/// 下一步
/// </summary>