Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Layout ComponentBase
七天.NET 8操作SQLite入门到实战 - 第七天BootstrapBlazor UI组件库引入(1)
前言 由于第七天Blazor前端页面编写和接口对接的内容比较的多,所以这一章节将会分为三篇文章来进行讲解,大家可以认为分为早、中、晚来进行阶段性学习,从而提高学习效率😁。 七天.NET 8 操作 SQLite 入门到实战详细教程 第一天 SQLite 简介 第二天 在 Windows 上配置 SQLite 环境 第三天 SQLite 快速入门 第四天 EasySQLite 前后端项目框架搭建 第五天引入 SQLite-net ORM 并封装常用方法 第六天后端班级管理相关接口完善和Swagger自定义配置 EasySQLite 项目源码地址 GitHub 地址:https://github.com/YSGStudyHards/EasySQLite Blazor简介和快速入门 不熟悉Blazor的同学可以先看这篇文章大概了解一下。 全面的ASP.NET Core Blazor简介和快速入门:https://mp.weixin.qq.com/s/5jdmNolX44EDHy-kiUgVfg BootstrapBlazor介绍...
如何将现有的`Blazor`项目的主题切换写的更好看? - tokengo - 博客园
在现有的系统当中,我们的主题切换会比较生硬,下面我们将基于Masa Blazor实现好看的扩散主题切换的样式效果。 安装MASA.Template dotnet new install MASA.Template 创建Masa Blazor项目 打开vs2022 选择server app模板 打开wwwroot/css/site.css 添加一下代码,这个代码是核心样式实现。 animation: clip .5s ease-in;的.5s则是扩散时间。 ::view-transition-old(root) { animation: none; } ::view-transition-new(root) { mix-blend-mode: normal; animation: clip .5s ease-in; } @keyframes clip { from { clip-path: circle(0% at var(--x) var(--y)); } to{ clip-path: circle(100% at var(--x) var(--y)); } }...
ASP.NET 8 Blazor Sections Fully Explained
.NET 8 introduced sections for controlling content from child components. Let’s explore sections in Blazor and how to implement them with layouts. In .NET 8, ASP.NET Core introduced sections, a new feature that allows the control of content from child components. Sections can be used both in layouts and across nested parent-child components. While sections are entirely new to Blazor, the concept may seem familiar if you’ve used other ASP.NET technologies.
MAUI Blazor 项目实战 - 从0到1轻松构建多平台应用UI
最近在项目中尝鲜了MAUI,总体感受下来还是挺不错的,优缺点并存,但是瑕不掩瑜,目前随着.Net版本的迭代升级对它的支持也越来越友好,相信未来可期!感兴趣的朋友欢迎关注。文章中如有不妥的地方,也请多多指教。 网上关于MAUI介绍相关的内容也挺多的了,这里只做简单介绍。了解更多 .Net 7 Visual Studio 2022 MultiPlatform.Blazor MultiPlatform.Maui MultiPlatform.Server 整个项目结构如下: 项目整体思路就是将Blazor UI样式抽离至 MultiPlatform.Blazor(Razor类库)项目中,MultiPlatform.Maui(安卓、IOS等)项目用来构建多端应用,MultiPlatform.Server 则用来跑Web,可以方便我们调整样式。 1.抽离 MultiPlatform.Maui UI 至 MultiPlatform.Blazor 添加 MultiPlatform.Blazor 项目引用 文件抽离过去后注意调整命名空间,直接调整 MultiPlatform.Blazor 项目的...
如何使用Photino创建Blazor项目进行跨平台 - tokengo - 博客园
Photino是什么 Photino是一组使用Web (HTML/CSS/JavaScript)UI创建桌面应用程序的技术。TryPhotino.io 维护 .NET 构建,并鼓励社区开发 Photino.Native 控件以用于其他语言和平台。我们鼓励并将支持Photino.CPP,Photino.Rust,Photino.Go等的开发。 使用Photino Blazor 首先我们创建一个.Net Core控制台项目,项目SDK最低6.0 在项目中添加wwwroot文件夹 修改项目文件 <Project Sdk="Microsoft.NET.Sdk.Razor"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference...
实现简单的`Blazor`低代码 - tokengo - 博客园
本篇博客只实现基本的低代码,比如新增组件,动态修改组件参数 创建项目 首先创建一个空的Blazor Server,并且命名LowCode.Web 实现我们还需要引用一个Blazor组件库,由于作者用Masa Blazor比较多所以使用Masa Blazor 安装Masa Blazor 将Masa Blazor添加到项目依赖中 <ItemGroup> <PackageReference Include="Masa.Blazor" Version="1.0.0-preview.3" /> </ItemGroup> 修改Program.cs文件 增加了builder.Services.AddMasaBlazor(); var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); builder.Services.AddServerSideBlazor(); builder.Services.AddMasaBlazor(); var app = builder.Build(); if...
学习ASP.NET Core Blazor编程系列二十三--登录(3)
虽然在上一篇文章(学习ASP.NET Core Blazor编程系列二十三——登录(2) )中我们制作出了登录页面,但那个登录页面,不符合我们平时使用的样式,需要进行修改,同时也没有实现登录验证。这一文章学习如何对Login.razor使用特有的布局组件,实现正常的登录样式,学习使用AuthenticationStateProvider类来进行登录验证。 虽然在上一篇文章(学习ASP.NET Core Blazor编程系列二十三——登录(2) )中我们制作出了登录页面,但那个登录页面,不符合我们平时使用的样式,需要进行修改,同时也没有实现登录验证。这一文章学习如何对Login.razor使用特有的布局组件,实现正常的登录样式,学习使用AuthenticationStateProvider类来进行登录验证。 登录页面的布局与之前的内容页面中的布局是不一样的。例如之前的图书编辑页面是有侧边导航栏的,但登录页面显然是不需要的。因此,我们需要单独写一个LoginLayout组件,和默认布局MainLayout分开,只用于Login页面: 1.
Blazor Hybrid (Blazor混合开发)更好的读取本地图片
在 Blazor Hybrid 应用中,Razor 组件在设备上本机运行。 组件通过本地互操作通道呈现到嵌入式 Web View 控件。 组件不在浏览器中运行,并且不涉及 WebAssembly。 Razor 组件可快速加载和执行代码,组件可通过 .NET 平台完全访问设备的本机功能。 Web View 中呈现的组件样式与平台相关,可能需要你使用自定义样式表来说明不同平台之间的呈现差异。 如何在Blazor Hybrid中读取本地图片展示? 在Blazor Hybrid经常遇到一些读取选中的图片并且渲染,但是文件的目录在Blazor中直接src填写是无法读取到的,这个时候就可能需要将文件Copy到wwwroot中,或者将其转换Base64放入到html中,但是base64转换图片是很长的一串字符串,这样可能会导致渲染可能卡扽,所以我们将使用js提供的功能去实现,其实在Blazor Hybrid为了兼容,可以采用js提供的部分功能实现,效果更好, 创建一个Winform项目 示图: 添加...
Blazor如何实现类似于微信的Tab切换? - tokengo - 博客园
是否有小伙伴在使用tab的时候想进行滑动切换Tab? 并且有滑动左出左进,右出右进的效果 ,本文将讲解怎么在Blazor中去通过滑动切换Tab 本文中的UI组件使用的是MASA Blazor,您也可以是其他的UI框架,这个并不影响实际的运行效果,本文案例是兼容PC和Android的,演示效果是android中执行的,在PC中执行效果依然有效(亲测) 首先安装MASA Blazor 根据 MASA Blazor安装MASA Blazor 准备工作 创建 AppBar.razor文件 修改MainLayout.razor文件代码 @inherits LayoutComponentBase <MApp> <AppBar> <div class="body"> @Body </div> </AppBar> </MApp> <style> .body { /*设置内容高度 需要减去导航栏的高度*/ height: calc(100vh - 48px); max-height: calc(100vh - 48px); } </style> 创建 AppBar.razor.css...
ASP.NET Core Blazor cascading values and parameters
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 11/08/2022 20 minutes to read In this article This article explains how to flow data from an ancestor Razor component to descendent components. Cascading values and parameters provide a convenient way to flow data down a component hierarchy from an ancestor component to any number of descendent components.
ASP.NET Core Blazor layouts
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 11/08/2022 30 minutes to read In this article This article explains how to create reusable layout components for Blazor apps. Some app elements, such as menus, copyright messages, and company logos, are usually part of app's overall presentation. Placing a copy of the markup for these elements into all of the components of an app isn't efficient.
ASP.NET Core Blazor layouts
Read in English Read in English Feedback Edit Twitter LinkedIn Facebook Email Article 09/01/2022 30 minutes to read In this article This article explains how to create reusable layout components for Blazor apps. Some app elements, such as menus, copyright messages, and company logos, are usually part of app's overall presentation. Placing a copy of the markup for these elements into all of the components of an app isn't efficient.
在MAUI中使用Masa Blazor
Masa Blazor是什么 在此之前我们已经介绍过什么是Masa Blazor,以及如何使用Masa Blazor,如果还有不了解Masa Blazor的同学可以看我上篇文章【初识Masa Blazor】。那么今天就带大家探索一下如何在MAUI中使用Masa Blazor,那么我们先来了解一下什么是MAUI? MAUI是什么 .NET MAUI全称为 .NET Multi-platform App UI ,顾名思义就是.NET多平台应用 UI,是一个跨平台的框架,是 Xamarin.Forms 的演变,其使用C#和XAML创建本机移动和桌面应用,这里的XAML可以替换成RazorView。 使用 .NET MAUI,可以开发可在 Android、iOS、macOS 和 Windows从单个共享代码库运行的应用,一套代码多端运行。 MAUI优点: 从 XAML 和 C# 中的单个共享代码库编写跨平台Visual Studio。 跨平台共享 UI 布局和设计。 跨平台共享代码、测试和业务逻辑。 另一个优点是跨框架重用 Razor 组件,它可以实现为 Razor 类库 (RCL)...
Building a Blazor WASM and Server All In One Solution
This article shows how to build a single Blazor application that runs in both WASM and Server Modes. Code Repository The Code repository for the article is here - https://github.com/ShaunCurtis/AllinOne The Solution and Projects Create a new solution called Blazor using the Blazor WebAssembly template. Don't choose to host it on Aspnetcore. You will get a single project called Blazor. Now add a second project to the solution using the ASP.NET Core Web App template. Call it Blazor.Web.
ASP.NET Core Blazor cascading values and parameters
02/02/2021 5 minutes to read g R In this article Cascading values and parameters provide a convienent way to flow data down a component hierarchy from an ancestor component to any number of decendent components. Unlike Component parameters, cascading values and parameters don't require an attribute assignment for each descendent component where the data is consumed. Cascading values and parameters also allow components to coordinate with each other across a component hierarchy.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Layout
Contact Layout, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack