();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/Shared/MainLayout.razor:
--------------------------------------------------------------------------------
1 | @inherits LayoutComponentBase
2 | @inject IUriHelper UriHelper
3 | @inject AppState AppState
4 |
5 |
6 | @if (showTopBar)
7 | {
8 |
9 |
10 | UriHelper.NavigateTo("/") ) />
14 |
15 |
16 | }
17 |
18 | @Body
19 |
20 |
21 |
22 | @functions{
23 | private bool showTopBar = true;
24 |
25 | protected override void OnInit()
26 | {
27 | UriHelper.OnLocationChanged += (s, a) =>
28 | {
29 | showTopBar = !a.Contains("drawer");
30 | StateHasChanged();
31 | };
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Components.Builder;
2 | using Microsoft.Extensions.DependencyInjection;
3 |
4 | namespace BlazorMaterial.Test
5 | {
6 | public class Startup
7 | {
8 | public void ConfigureServices(IServiceCollection services)
9 | {
10 | services.AddSingleton();
11 | }
12 |
13 | public void Configure(IComponentsApplicationBuilder app)
14 | {
15 | app.AddComponent("app");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using System.Net.Http
2 | @using Microsoft.AspNetCore.Components.Layouts
3 | @using Microsoft.AspNetCore.Components.Routing
4 | @using Microsoft.JSInterop
5 | @using BlazorMaterial.Test
6 | @using BlazorMaterial.Test.Shared
7 | @using BlazorMaterial
8 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/animal1.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/animal2.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/animal3.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_button_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_card_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_chips_24dp.svg:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_component_24px.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_component_24px_white.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_dialog_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_list_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_menu_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_progress_activity.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_radio_button_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_responsive_layout_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_ripple_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_selection_control_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_shadow_24px.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_side_navigation_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_switch_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_tabs_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_text_field_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_theme_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_toast_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_toolbar_24px.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/images/ic_typography_24px.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/test/BlazorMaterial.Test/wwwroot/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | BlazorMaterial Demos
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | Loading Blazor Material Components Demos...
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------