ATWPF.Theme/AppLayoutMannger.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media.Imaging;
namespace ATWPF.Theme
{
public static class AppLayoutMannger
{
/// <summary>
/// 系数
/// </summary>
private static double _Coefficient = 1;
public static double Coefficient
{
get
{
return AppLayoutMannger._Coefficient;
}
set
{
AppLayoutMannger._Coefficient = value;
}
}
private static string _RootFolder;
public static string RootFolder
{
get
{
return AppLayoutMannger._RootFolder;
}
set
{
ChangeRootFolder(value);
AppLayoutMannger._RootFolder = value;
}
}
private static List<ImageSourceModel> _lstImageSource = new List<ImageSourceModel>();
public static void AddImageSource(ImageSourceModel themeImageSource)
{
_lstImageSource.Add(themeImageSource);
}
private static void ChangeRootFolder(string newRoot)
{
for (int i = 0; i < _lstImageSource.Count; i++)
{
string newPath = _lstImageSource[i].Image.UriSource.ToString();
newPath = newPath.Replace(RootFolder, newRoot);
_lstImageSource[i].Image = new BitmapImage(new Uri(newPath));
}
后面还有 62 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
