首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏dotNET编程大全

    C# CM框架下一行代码实现多页面管理

    { get; set; } public string SelectedItem { get; set; } ListBoxItems = new ObservableCollection <string>() { }; ListBoxItems.Add("ShellView"); ListBoxItems.Add("EventAggregatorView "); ListBoxItems.Add("ConductorView"); ListBoxItems.Add("MatchTemplateView"); ListBoxItems.Add("IndicatorLightView"); ListBoxItems.Add("MemorandumView"); ListBoxItems.Add("FTPTestView"); ②listbox选择改变后切换页面: public void ListBoxItems_SelectionChanged

    79220编辑于 2022-03-23
  • 来自专栏历史专栏

    【愚公系列】2023年02月 .NET CORE工具案例-MahApps.Metro基于WPF的UI控件库

    <Button x:Name="testBtn" Content="testBtn" Background="LightCyan"/> <ListBox Name="<em>ListBoxItems</em> ($source,$eventArgs)]; [Event MouseUp]=[<em>ListBoxItems</em>_MouseUp($source = new ObservableCollection<string>() { }; <em>ListBoxItems</em>.Add("愚公一号"); ListBoxItems.Add ("愚公二号"); ListBoxItems.Add("愚公三号"); } public ObservableCollection<string> ListBoxItems ; NotifyOfPropertyChange(()=> TextContent); } public void ListBoxItems_MouseUp(object

    1.2K20编辑于 2023-03-16
  • 来自专栏dotNET编程大全

    C# wpf编程CM框架快速入门项目实例

    ($source,$eventArgs)]; [Event MouseUp]=[ListBoxItems_MouseUp($source = new ObservableCollection<string>() { }; ListBoxItems.Add("dotNet编程大全"); ListBoxItems.Add ("Csharp编程大全"); ListBoxItems.Add("dotnet工控上位机编程"); } public ObservableCollection <string> ListBoxItems { get; set; } public string TextContent { get; set; } public void ; NotifyOfPropertyChange(()=> TextContent); } public void ListBoxItems_MouseUp

    1.3K30编辑于 2021-12-29
  • 来自专栏dotNET编程大全

    C# 值得永久收藏的WPF项目实战(经典)

    = new ObservableCollection<string>() { }; ListBoxItems.Add("ShellView"); ListBoxItems.Add ("EventAggregatorView"); ListBoxItems.Add("ConductorView"); logger.Info($"Leave [MainWindowViewModel]."); } public void ListBoxItems_SelectionChanged() { ()是listbox的选择改变事件: <ListBox Name="<em>ListBoxItems</em>" Grid.Column="0" SelectedItem="{Binding SelectedItem}" Margin="2" cal:Message.Attach="[Event SelectionChanged] = [Action <em>ListBoxItems</em>_SelectionChanged]"/>

    5.9K10编辑于 2021-12-17
领券