diff --git a/Samples/.nuget/NuGet.Config b/Samples/.nuget/NuGet.Config new file mode 100644 index 0000000..67f8ea0 --- /dev/null +++ b/Samples/.nuget/NuGet.Config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Samples/.nuget/NuGet.exe b/Samples/.nuget/NuGet.exe new file mode 100644 index 0000000..9cba6ed Binary files /dev/null and b/Samples/.nuget/NuGet.exe differ diff --git a/Samples/.nuget/NuGet.targets b/Samples/.nuget/NuGet.targets new file mode 100644 index 0000000..2c3545b --- /dev/null +++ b/Samples/.nuget/NuGet.targets @@ -0,0 +1,151 @@ + + + + $(MSBuildProjectDirectory)\..\ + + + false + + + false + + + true + + + false + + + + + + + + + + + $([System.IO.Path]::Combine($(SolutionDir), ".nuget")) + + + + + $(SolutionDir).nuget + + + + packages.$(MSBuildProjectName.Replace(' ', '_')).config + + + + + + $(PackagesProjectConfig) + + + + + packages.config + + + + + + + $(NuGetToolsPath)\NuGet.exe + @(PackageSource) + + "$(NuGetExePath)" + mono --runtime=v4.0.30319 $(NuGetExePath) + + $(TargetDir.Trim('\\')) + + -RequireConsent + -NonInteractive + + "$(SolutionDir) " + "$(SolutionDir)" + + + $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir) + $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols + + + + RestorePackages; + $(BuildDependsOn); + + + + + $(BuildDependsOn); + BuildPackage; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml b/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml index cc92fa2..5f99960 100644 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml +++ b/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml @@ -5,13 +5,14 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:redditapi="clr-namespace:Stylet.Samples.RedditBrowser.RedditApi" xmlns:s="http://github.com/canton7/Stylet" + xmlns:uc="clr-namespace:Stylet.Samples.RedditBrowser.UserControls" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> - - - @@ -20,7 +21,7 @@ - - + + diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml.cs b/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml.cs deleted file mode 100644 index c7185f0..0000000 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/PostCommentsView.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace Stylet.Samples.RedditBrowser.Pages -{ - /// - /// Interaction logic for PostCommentsView.xaml - /// - public partial class PostCommentsView : UserControl - { - public PostCommentsView() - { - InitializeComponent(); - } - } -} diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/PostsView.xaml.cs b/Samples/Stylet.Samples.RedditBrowser/Pages/PostsView.xaml.cs deleted file mode 100644 index e628039..0000000 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/PostsView.xaml.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace Stylet.Samples.RedditBrowser.Pages -{ - /// - /// Interaction logic for PostsView.xaml - /// - public partial class PostsView : UserControl - { - public PostsView() - { - InitializeComponent(); - } - - private void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) - { - - } - } -} diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/ShellView.xaml.cs b/Samples/Stylet.Samples.RedditBrowser/Pages/ShellView.xaml.cs deleted file mode 100644 index 50978df..0000000 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/ShellView.xaml.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Shapes; - -namespace Stylet.Samples.RedditBrowser.Pages -{ - /// - /// Interaction logic for ShellView.xaml - /// - public partial class ShellView : Window - { - public ShellView() - { - InitializeComponent(); - } - } -} diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/SubredditView.xaml.cs b/Samples/Stylet.Samples.RedditBrowser/Pages/SubredditView.xaml.cs deleted file mode 100644 index bfcd204..0000000 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/SubredditView.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace Stylet.Samples.RedditBrowser.Pages -{ - /// - /// Interaction logic for SubredditView.xaml - /// - public partial class SubredditView : UserControl - { - public SubredditView() - { - InitializeComponent(); - } - } -} diff --git a/Samples/Stylet.Samples.RedditBrowser/Pages/TaskbarView.xaml.cs b/Samples/Stylet.Samples.RedditBrowser/Pages/TaskbarView.xaml.cs deleted file mode 100644 index 04a2a21..0000000 --- a/Samples/Stylet.Samples.RedditBrowser/Pages/TaskbarView.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace Stylet.Samples.RedditBrowser.Pages -{ - /// - /// Interaction logic for TaskbarView.xaml - /// - public partial class TaskbarView : UserControl - { - public TaskbarView() - { - InitializeComponent(); - } - } -} diff --git a/Samples/Stylet.Samples.RedditBrowser/Stylet.Samples.RedditBrowser.csproj b/Samples/Stylet.Samples.RedditBrowser/Stylet.Samples.RedditBrowser.csproj index ee9c35c..89290f1 100644 --- a/Samples/Stylet.Samples.RedditBrowser/Stylet.Samples.RedditBrowser.csproj +++ b/Samples/Stylet.Samples.RedditBrowser/Stylet.Samples.RedditBrowser.csproj @@ -13,6 +13,8 @@ 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 + ..\ + true AnyCPU @@ -67,33 +69,19 @@ Designer - - PostCommentsView.xaml - - - PostsView.xaml - - - ShellView.xaml - - - SubredditView.xaml - + - - TaskbarView.xaml - Code @@ -161,6 +149,7 @@ +