添加登录界面UI
添加文件loginview.xaml。注意本界面使用的是md内的图标。没有登录界面的图片
<UserControl
x:Class="Mytodo.Views.LoginView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:Mytodo.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:prism="http://prismlibrary.com/"
mc:Ignorable="d">
<prism:Dialog.WindowStyle>
<Style TargetType="Window">
<Setter Property="Width" Value="600" />
<Setter Property="Height" Value="400" />
<Setter Property="SizeToContent" Value="WidthAndHeight" />
<Setter Property="ResizeMo

这篇博客详细记录了WPF应用中创建登录界面的过程,包括设计登录UI、编写对应的ViewModel以及设置启动项。通过loginview.xaml文件实现界面,LoginViewModel.cs用于处理业务逻辑,并在App.xaml.cs中进行视图注册和应用启动配置。
最低0.47元/天 解锁文章
2900

被折叠的 条评论
为什么被折叠?



