Skip to content

Commit

Permalink
HomeContent系统进一步优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zsh2401 committed Jun 8, 2019
1 parent 57cc979 commit 522746a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions AutumnBox.GUI/MVVM/ViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using AutumnBox.GUI.Util.Bus;
using AutumnBox.GUI.Util.Debugging;
using AutumnBox.GUI.Util.Net.HomeContent;
using AutumnBox.GUI.Util.UI;
using AutumnBox.Logging;
using System;
using System.Diagnostics;
Expand Down Expand Up @@ -80,6 +81,8 @@ public ICommand RefreshHomeContent
}
private ICommand _refreshHomeContent;

public string Sentence => Sentences.Next();

public ViewModelBase()
{
OpenUrl = _OpenUrlCommand;
Expand Down
2 changes: 1 addition & 1 deletion AutumnBox.GUI/Resources/Languages/en-US.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ Agreement modification:
The Box of Autumn is currently open sourced with LGPL 3.0, safe, free, trustworthy, and if necessary, please comply with the open source agreement.
Acknowledgement:
MonoLogueChi,饼干怪兽,hxy,yume,白瀛,web1n,咖枯,毛线没有团团,my0402
Newtonsoft.Json | Google | Android | Linux | C# | Microsoft | MaterialDesignInXaml</s:String>
Newtonsoft.Json | Google | Android | Linux | C# | Microsoft | HandyControl</s:String>
<!--关于信息-->

<s:String x:Key="warningOpenNetDebugging">
Expand Down
2 changes: 1 addition & 1 deletion AutumnBox.GUI/Resources/Languages/zh-CN.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
秋之盒目前以LGPL3.0进行开源,安全,免费,值得信任,在必要时,也请您遵守开源协议
鸣谢:
MonoLogueChi,饼干怪兽,hxy,yume,白瀛,web1n,咖枯,毛线没有团团,my0402
Newtonsoft.Json | Google | Android | Linux | C# | Microsoft | MaterialDesignInXaml
Newtonsoft.Json | Google | Android | Linux | C# | Microsoft | HandyOrg
</s:String>
<!--关于信息-->

Expand Down
2 changes: 1 addition & 1 deletion AutumnBox.GUI/Util/Net/HomeContent/RemoteXamlReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static RemoteXamlReader()
context.XmlnsDictionary.Add("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006");
context.XmlnsDictionary.Add("vm", "clr-namespace:AutumnBox.GUI.ViewModel");
context.XmlnsDictionary.Add("system", "clr-namespace:System;assembly=mscorlib");
//context.XmlnsDictionary.Add("handycontrol", "clr-namespace:HandyControl.Controls;assembly=HandyControl");
context.XmlnsDictionary.Add("handycontrol", "clr-namespace:HandyControl.Controls;assembly=HandyControl");
//context.XmlnsDictionary.Add("panel", "clr-namespace:AutumnBox.GUI.View.Panel");
//context.XmlnsDictionary.Add("atmbctrl", "clr-namespace:AutumnBox.GUI.View.Controls");
}
Expand Down
8 changes: 5 additions & 3 deletions AutumnBox.GUI/View/Panel/PanelMain.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
<TabItem TabIndex="0" Width="120" Background="Transparent" Header="{DynamicResource Home}">
<DockPanel>
<controls:LoadingLine x:Name="LoadingLine" DockPanel.Dock="Top"/>
<ContentControl x:Name="HomeContent">
<local:PanelDefaultInformation/>
</ContentControl>
<ScrollViewer>
<ContentControl x:Name="HomeContent">
<local:PanelDefaultInformation/>
</ContentControl>
</ScrollViewer>
</DockPanel>
</TabItem>
<TabItem TabIndex="1" Background="Transparent" Header="{DynamicResource Functions}">
Expand Down

0 comments on commit 522746a

Please sign in to comment.