32 lines
773 B
C#
32 lines
773 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Security.Policy;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Controls;
|
|
|
|
namespace WPFWCSDemo.ViewModels.Settings
|
|
{
|
|
public partial class AboutViewModel:ObservableObject
|
|
{
|
|
[RelayCommand]
|
|
void WebNavigation()
|
|
{
|
|
string url = "http://www.yctd.cn/";
|
|
|
|
Uri uri = new Uri(url);
|
|
|
|
// 使用Process.Start打开默认浏览器
|
|
Process.Start(new ProcessStartInfo
|
|
{
|
|
FileName = uri.ToString(),
|
|
UseShellExecute = true
|
|
});
|
|
}
|
|
}
|
|
}
|