mirror of https://github.com/abpframework/abp.git
2 changed files with 22 additions and 7 deletions
@ -1,16 +1,29 @@ |
|||||
using System.Collections.Generic; |
using System.Collections.ObjectModel; |
||||
|
using System.ComponentModel; |
||||
using Volo.Abp.AspNetCore.Components.Web.Theming.PageToolbars; |
using Volo.Abp.AspNetCore.Components.Web.Theming.PageToolbars; |
||||
using Volo.Abp.BlazoriseUI; |
using Volo.Abp.BlazoriseUI; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Components.Web.Theming.Layout; |
namespace Volo.Abp.AspNetCore.Components.Web.Theming.Layout; |
||||
|
|
||||
public class PageLayout : IScopedDependency |
public class PageLayout : IScopedDependency, INotifyPropertyChanged |
||||
{ |
{ |
||||
|
private string title; |
||||
|
|
||||
// TODO: Consider using this property for setting Page Title too.
|
// TODO: Consider using this property for setting Page Title too.
|
||||
public virtual string Title { get; set; } |
public virtual string Title |
||||
|
{ |
||||
|
get => title; |
||||
|
set |
||||
|
{ |
||||
|
title = value; |
||||
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Title))); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public virtual ObservableCollection<BreadcrumbItem> BreadcrumbItems { get; set; } = new(); |
||||
|
|
||||
public virtual List<BreadcrumbItem> BreadcrumbItems { get; set; } = new(); |
public virtual ObservableCollection<PageToolbarItem> ToolbarItems { get; set; } = new(); |
||||
|
|
||||
public virtual List<PageToolbarItem> ToolbarItems { get; set; } = new(); |
public event PropertyChangedEventHandler PropertyChanged; |
||||
} |
} |
||||
Loading…
Reference in new issue