跳转至

SplashScreenViewModel 类

通用启动画面的视图模型。它仅承载呈现数据,不含应用程序品牌;应用程序通过派生它并在其构造函数中为属性(背景图像、版本、版权)赋值来提供品牌。

命名空间: Eremex.AvaloniaUI.Controls.ApplicationServices
程序集: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet 包: Eremex.Avalonia.Controls.ApplicationServices

声明

public class SplashScreenViewModel : ViewModelBase

构造函数

名称 说明
SplashScreenViewModel() 默认构造函数。

属性

名称 说明
BackgroundImage { get; set; }
Build { get; set; }
Copyright { get; set; }
Foreground { get; set; }
Icon { get; set; }
Progress { get; set; }
Version { get; set; }

方法

名称 说明
virtual SetText(…) 更新 Progress。重写它以同时响应标题,或对消息进行本地化。

另请参阅



* 本页面使用机器翻译技术翻译。