Skip to content

Commit 110bf9b

Browse files
committed
Added Version
1 parent 149ceb3 commit 110bf9b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ComponentViewer.Docs/Shared/MainLayout.razor

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<MudIconButton Class="white-text" Icon="@Icons.Material.Filled.Menu" OnClick="@(() => _drawerOpen = !_drawerOpen)"></MudIconButton>
1313
<MudIconButton Class="white-text" Icon="@Icons.Custom.Brands.MudBlazor" Href="https://mudblazor.com/" Target="_blank" />
1414
<MudSpacer />
15-
<MudText Style="font-weight: 900; color: white">CodeBeam MudExtensions</MudText>
15+
<MudText Style="font-weight: 900; color: white">CodeBeam MudExtensions @Version</MudText>
1616
<MudSpacer />
1717
<div class="d-flex">
1818
<MudToggleIconButton @bind-Toggled="IsDarkMode" Class="white-text" Icon="@Icons.Material.Filled.DarkMode" ToggledIcon="@Icons.Material.Filled.LightMode"/>
@@ -173,4 +173,13 @@
173173
_borderRadius = val;
174174
FontChanged();
175175
}
176+
177+
private string Version
178+
{
179+
get
180+
{
181+
var v = typeof(MudAnimate).Assembly.GetName().Version;
182+
return $"v{v.Major}.{v.Minor}.{v.Build}";
183+
}
184+
}
176185
}

0 commit comments

Comments
 (0)