
WPF-文章管理系统
WPF相关知识
愚公搬代码
专注于c#,前端,python的技术研究。
.Net学习推荐关注公众号:朝夕Net社区
-
原创 (精华)2021年02月26日 WPF课程管理系统项目实战(内容中心-骨架屏的使用)
1.定义骨架屏模板<UserControl x:Class="Zhaoxi.Controls.SkeletonScreen" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.open2021-02-09 22:15:559369
4
-
原创 (精华)2020年02月09日 WPF课程管理系统项目实战(内容中心-FilTer过滤排序)
1.页面<ItemsControl ItemsSource="{Binding CourseList}" Name="icCourses"><RadioButton Content="{Binding CategoryName}" IsChecked="{Binding IsSelected}" Template="{StaticResource CategoryItemButtonTemplate}" Margin="5,0" GroupName="teacher" Cli2021-02-09 21:46:298424
1
-
原创 (精华)2020年02月08日 WPF课程管理系统项目实战(首页界面-ItemsControl的使用)
1.后台相关代码public class BoolToArrowConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null && bool.Parse(value.ToString()))2021-02-08 00:03:308460
1
-
原创 (精华)2020年02月08日 WPF课程管理系统项目实战(首页界面-Canvas控件的封装)
1.控件部分代码<UserControl x:Class="Zhaoxi.Controls.Instrument" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlfo2021-02-06 22:28:198449
2
-
原创 (精华)2020年02月08日 WPF课程管理系统项目实战(首页界面-LiveCharts的使用)
1:首先引入第三方包LiveCharts.Wpf2:引入命名空间并使用xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"<Border CornerRadius="5" Background="White" Margin="10"> <Border.Effect> <DropShadowEffect C2021-02-06 16:32:288418
0
-
原创 (精华)2020年02月06日 WPF课程管理系统项目实战(平台布局-转换器的使用)
1:引入命名空间xmlns:converter="clr-namespace:Zhaoxi.CourseManagement.Converter"2:转换器类public class GenderConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {2021-02-06 11:12:548406
0
-
原创 (精华)2020年02月06日 WPF课程管理系统项目实战(平台布局-抽屉侧滑栏)
相关代码<!--抽屉侧滑栏--> <Border Background="#EE444444" Width="240" HorizontalAlignment="Right" CornerRadius="0,5,5,0"> <Border.Effect> <DropShadowEffect Color="Gray" Shadow2021-02-06 11:00:338422
0
-
原创 (精华)2020年02月04日 WPF课程管理系统项目实战(平台布局-Tab切换页面)
页面代码<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center"> <RadioButton Content="首页" Style="{StaticResource NavButtonStyle}" IsChecked="True" C2021-02-04 00:34:528438
0
-
原创 (精华)2020年01月27日 WPF课程管理系统项目实战(平台布局-窗口事件)
页面定义事件<Border Background="#007DFA" Height="200" VerticalAlignment="Top" CornerRadius="5,5,0,0" MouseLeftButtonDown="Border_MouseLeftButtonDown"/>private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)2021-01-27 00:17:2868999
0
-
原创 (精华)2020年01月26日 WPF课程管理系统项目实战(登陆界面-input聚焦和enter事件监听)
监听enter事件触发<TextBox.InputBindings> <KeyBinding Key="Enter" Command="{Binding LoginCommand}" CommandParameter="{Binding ElementName=window}"/> </TextBox.InputBindings>聚2021-01-26 23:51:1468980
0
-
原创 (精华)2020年01月26日 WPF课程管理系统项目实战(登陆界面-等待与跳转)
修改窗体模式<Application x:Class="Zhaoxi.CourseManagement.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Zhaoxi.C2021-01-26 23:39:4169001
0
-
原创 (精华)2020年01月26日 WPF课程管理系统项目实战(登陆界面-值的双向绑定)
3.附加类实现登陆界面信息绑定public class NotifyBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void DoNotify([CallerMemberName] string propName = "") { PropertyChanged?.Invoke(th2021-01-26 23:17:2668979
0
-
原创 (精华)2020年01月24日 WPF课程管理系统项目实战(登陆界面-界面移动)
在界面定义MouseLeftButtonDown事件,触发窗体移动<Border Background="#007DFA" CornerRadius="10,10,0,0" MouseLeftButtonDown="WinMove_LeftButtonDown"/>private void WinMove_LeftButtonDown(object sender, MouseButtonEventArgs e){ if (e.LeftButton == MouseButtonSt2021-01-24 22:26:4268999
2
-
原创 (精华)2020年01月24日 WPF课程管理系统项目实战(登陆界面-关闭逻辑实现)
1:定义公用关闭类public class CommandBase : ICommand{ public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { return DoCanExecute?.Invoke(parameter) == true; } public void Execute(object parameter)2021-01-24 22:24:0768978
0
-
原创 (精华)2020年01月26日 WPF课程管理系统项目实战(平台布局-资源字典的使用)
1.以图标为例<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Zhaoxi.CourseManagement.Assets.Styes"2021-01-17 23:28:4968988
0
-
原创 (精华)2020年01月24日 WPF课程管理系统项目实战(登陆界面-界面布局)
一.登录界面布局<Window x:Class="Zhaoxi.CourseManagement.View.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/expr2021-01-10 23:27:3869006
0
-
原创 (精华)2020年01月03日 WPF综合案例(菜单布局)
<Window x:Class="MicrosoftToDO.MainWindow" 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"2021-01-09 23:55:5769048
0
-
原创 (精华)2020年01月03日 WPF获取窗体资源
2020-12-25 python占位2020-12-26 23:34:02133678
0
-
原创 (精华)2020年01月02日 WPF数据模板
2020-12-25 python占位2020-12-26 23:32:57133672
0
-
原创 (精华)2020年01月02日 WPF控件模板
2020-12-25 python占位2020-12-26 23:32:21133680
0
-
原创 (精华)2020年01月02日 WPF MVVM框架
2020-12-25 python占位2020-12-26 23:31:02133678
0
-
原创 (精华)2020年01月02日 WPF绑定
2020-12-25 python占位2020-12-26 23:30:02133694
0
-
原创 (精华)2020年01月02日 WPF触发器
2020-12-25 python占位2020-12-26 23:29:31133683
2
-
原创 (精华)2020年01月02日 WPF样式
2020-12-25 python占位2020-12-26 23:28:47133687
1
-
原创 (精华)2020年01月02日 WPF控件
2020-12-25 python占位2020-12-25 23:35:33133688
0
-
原创 (精华)2020年01月02日 WPF布局
2020-12-25 python占位2020-12-25 23:34:49133684
0