修改窗体图标

This commit is contained in:
wbin 2021-02-16 16:48:20 +08:00
parent 7741bdb1c0
commit 8423cfdfe6
5 changed files with 5 additions and 2 deletions

View File

@ -32,6 +32,7 @@ namespace JianGongYun.TRTC.Windows
public LiveWindow() public LiveWindow()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = new BitmapImage(new Uri("logo.ico", UriKind.RelativeOrAbsolute));
NoticeManager.Initialize(); NoticeManager.Initialize();
//AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出 //AttachConsole(-1);//把进程挂在控制台,通过命令行启动程序可以看到控制台输出
LiveWindowViewModel = new ViewModels.LiveWindowViewModel(); LiveWindowViewModel = new ViewModels.LiveWindowViewModel();

View File

@ -7,7 +7,7 @@
xmlns:local="clr-namespace:JianGongYun.TRTC.Windows" xmlns:local="clr-namespace:JianGongYun.TRTC.Windows"
mc:Ignorable="d" mc:Ignorable="d"
ResizeMode="NoResize" ResizeMode="NoResize"
Title="设置" Height="380" Width="650"> Title="设置" Height="380" Width="650" >
<Metro:MetroWindow.Resources> <Metro:MetroWindow.Resources>
<DataTemplate x:Key="CusHeaderTitle1"> <DataTemplate x:Key="CusHeaderTitle1">

View File

@ -29,6 +29,7 @@ namespace JianGongYun.TRTC.Windows
{ {
_Instance = new SettingWindow(); _Instance = new SettingWindow();
} }
_Instance.Icon= new BitmapImage(new Uri("logo.ico", UriKind.Relative));
return _Instance; return _Instance;
} }

View File

@ -6,7 +6,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:JianGongYun.Views" xmlns:local="clr-namespace:JianGongYun.Views"
mc:Ignorable="d" mc:Ignorable="d"
Title="Login" Height="450" Width="800"> Title="Login" Height="450" Width="800" >
<Grid> <Grid>
</Grid> </Grid>

View File

@ -30,6 +30,7 @@ namespace JianGongYun.Views
public Login() public Login()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = new BitmapImage(new Uri("logo.ico", UriKind.Relative));
string errMsg = "", classHead = default, classSubHead = default, teacherId = default, teacherName = default; string errMsg = "", classHead = default, classSubHead = default, teacherId = default, teacherName = default;
var urltemps = Environment.GetCommandLineArgs(); var urltemps = Environment.GetCommandLineArgs();
if (urltemps.Length < 2) if (urltemps.Length < 2)