Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Commit ddf07c4

Browse files
committed
Fix minor controls
1 parent 4f88196 commit ddf07c4

File tree

6 files changed

+34
-15
lines changed

6 files changed

+34
-15
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,35 @@ jobs:
4444
- name: Build
4545
run: msbuild MaterialWPF.sln -p:Configuration=Release -m
4646

47-
- name: Publish net50 windows
47+
- name: Publish net60
4848
uses: actions/upload-artifact@v2
4949
id: publish_net5
5050
with:
51-
name: MaterialWPF-NET5-Windows10
51+
name: materialwpf_net6
5252
path: |
53-
MaterialWPF/bin/Release/net5.0-windows10.0.17763.0
53+
MaterialWPF/bin/Release/net6.0-windows
5454
5555
- name: Publish net50
5656
uses: actions/upload-artifact@v2
5757
with:
58-
name: MaterialWPF-NET5
58+
name: materialwpf_net5
5959
path: |
6060
MaterialWPF/bin/Release/net5.0-windows
6161
62+
- name: Publish net48
63+
uses: actions/upload-artifact@v2
64+
with:
65+
name: materialwpf_net48
66+
path: |
67+
MaterialWPF/bin/Release/net48
68+
69+
- name: Publish netcore3
70+
uses: actions/upload-artifact@v2
71+
with:
72+
name: materialwpf_netcore3
73+
path: |
74+
MaterialWPF/bin/Release/netcoreapp3.1
75+
6276
- name: Publish nupkg
6377
uses: actions/upload-artifact@v2
6478
with:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.0.5</Version>
3+
<Version>1.0.6</Version>
44
<Copyright>MaterialWPF</Copyright>
55
</PropertyGroup>
66
</Project>

MaterialWPF.Demo/MainWindow.xaml.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System.Collections.ObjectModel;
1+
using MaterialWPF.UI;
2+
using System.Collections.ObjectModel;
23
using System.Windows;
3-
using MaterialWPF.UI;
44

55
namespace MaterialWPF.Demo
66
{
@@ -19,10 +19,12 @@ public MainWindow()
1919
{
2020
new NavItem { Icon = MaterialIcon.GridView, Name = "Dashboard", Tag = "dashboard", Type = typeof(Pages.Dashboard)},
2121
new NavItem { Icon = MaterialIcon.AdjustHologram, Name = "Controls", Tag = "controls", Type = typeof(Pages.Controls)},
22-
new NavItem { Icon = MaterialIcon.Input, Name = "Fields", Tag = "fields", Type = typeof(Pages.Fields)},
22+
new NavItem { Icon = MaterialIcon.Input, Name = "Forms", Tag = "fields", Type = typeof(Pages.Fields)},
2323
new NavItem { Icon = MaterialIcon.Color, Name = "Colors", Tag = "colors", Type = typeof(Pages.Colors)},
2424
new NavItem { Icon = MaterialIcon.Calories, Name = "Icons", Tag = "icons", Type = typeof(Pages.Icons)},
25+
#if DEBUG
2526
new NavItem { Icon = MaterialIcon.AlignLeft, Name = "Tree List", Tag = "treelist", Type = typeof(Pages.TreeList)}
27+
#endif
2628
};
2729

2830
rootNavigation.Footer = new ObservableCollection<NavItem>
@@ -46,7 +48,10 @@ public void OnSettingsNavigate()
4648

4749
private async void Splash()
4850
{
49-
mainSplash.Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
51+
System.Version? version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
52+
if (version != null)
53+
mainSplash.Version = version.ToString();
54+
5055
mainSplash.Logo = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("pack://application:,,,/Assets/banner-dark.png"));
5156
mainSplash.SubTitle = "Loading a fantastic demo app...";
5257

@@ -69,7 +74,7 @@ private void ToggleTheme(object sender, RoutedEventArgs e)
6974
if (rootNavigation.PageNow == "dashboard")
7075
(rootNavigation.Items[0].Instance as Pages.Dashboard).ToggleTheme(isChecked);
7176

72-
if(!isChecked)
77+
if (!isChecked)
7378
MaterialWPF.Theme.Switch(MaterialWPF.MaterialTheme.Light);
7479
else
7580
MaterialWPF.Theme.Switch(MaterialWPF.MaterialTheme.Dark);

MaterialWPF.Demo/Pages/Dashboard.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@
6767
Margin="4,0,0,0">
6868
<TextBlock Text="GitHub Page" />
6969
<materialwpf:Hyperlink
70-
Content="https://github.com/rapiddev/MaterialWPF"
70+
Content="https://github.com/lepoco/MaterialWPF"
7171
FontSize="10"
72-
NavigateUri="https://github.com/rapiddev/MaterialWPF" />
72+
NavigateUri="https://github.com/lepoco/MaterialWPF" />
7373

7474
<TextBlock Margin="0,4,0,0" Text="Nuget Page" />
7575

MaterialWPF.Demo/Pages/Settings.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
mc:Ignorable="d">
1313

1414
<Grid Margin="20">
15-
<TextBlock Text="To be implemented..." />
15+
<TextBlock Text="Just a navigation element at the bottom." />
1616
</Grid>
1717
</Page>

MaterialWPF/UI/Toast.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ private void BuildToastTemplate()
9191

9292
//Template start
9393
this._xmlTemplate += "<binding template=\"ToastText02\">"; //ToastGeneric works only with packaged project
94-
94+
9595
if (!string.IsNullOrEmpty(this._header))
9696
this._xmlTemplate += "<text id =\"1\">" + this._header + "</text>";
97-
if(!string.IsNullOrEmpty(this._message))
97+
if (!string.IsNullOrEmpty(this._message))
9898
this._xmlTemplate += "<text id=\"2\">" + this._message + "</text>";
9999
if (!string.IsNullOrEmpty(this._footer))
100100
this._xmlTemplate += "<text placement=\"attribution\">" + this._footer + "</text>";

0 commit comments

Comments
 (0)