diff --git a/RxSpy.Analyzer/App.config b/RxSpy.Analyzer/App.config new file mode 100644 index 0000000..4e87cd3 --- /dev/null +++ b/RxSpy.Analyzer/App.config @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RxSpy.Analyzer/App.xaml b/RxSpy.Analyzer/App.xaml new file mode 100644 index 0000000..131d5b3 --- /dev/null +++ b/RxSpy.Analyzer/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/RxSpy.Analyzer/App.xaml.cs b/RxSpy.Analyzer/App.xaml.cs new file mode 100644 index 0000000..779abee --- /dev/null +++ b/RxSpy.Analyzer/App.xaml.cs @@ -0,0 +1,14 @@ +using System; +using System.Windows; +using RxSpy.Analyzer.AppStartup; + +namespace RxSpy.Analyzer +{ + public partial class App : Application + { + public App() + { + StartupSequence.Start(); + } + } +} diff --git a/RxSpy.Analyzer/AppStartup/StartupSequence.cs b/RxSpy.Analyzer/AppStartup/StartupSequence.cs new file mode 100644 index 0000000..dd5e5fc --- /dev/null +++ b/RxSpy.Analyzer/AppStartup/StartupSequence.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ReactiveUI; +using RxSpy.Analyzer.ViewModels; +using RxSpy.Analyzer.Views; +using Splat; + +namespace RxSpy.Analyzer.AppStartup +{ + public static class StartupSequence + { + public static void Start() + { + RegisterViewsAndViewModels(); + } + + private static void RegisterViewsAndViewModels() + { + var mainViewModel = new MainViewModel(); + + Locator.CurrentMutable.RegisterConstant(mainViewModel, typeof(MainViewModel)); + + Locator.CurrentMutable.Register(() => new MainView(), typeof(IViewFor)); + } + } +} diff --git a/RxSpy.Analyzer/MainWindow.xaml b/RxSpy.Analyzer/MainWindow.xaml new file mode 100644 index 0000000..f990cb4 --- /dev/null +++ b/RxSpy.Analyzer/MainWindow.xaml @@ -0,0 +1,11 @@ + + + diff --git a/RxSpy.Analyzer/MainWindow.xaml.cs b/RxSpy.Analyzer/MainWindow.xaml.cs new file mode 100644 index 0000000..5414983 --- /dev/null +++ b/RxSpy.Analyzer/MainWindow.xaml.cs @@ -0,0 +1,32 @@ +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; +using RxSpy.Analyzer.ViewModels; +using Splat; + +namespace RxSpy.Analyzer +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + + viewHost.ViewModel = Locator.Current.GetService(); + } + } +} diff --git a/RxSpy.Analyzer/Properties/AssemblyInfo.cs b/RxSpy.Analyzer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1d2c0a8 --- /dev/null +++ b/RxSpy.Analyzer/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("RxSpy.Analyzer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RxSpy.Analyzer")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RxSpy.Analyzer/Properties/Resources.Designer.cs b/RxSpy.Analyzer/Properties/Resources.Designer.cs new file mode 100644 index 0000000..656916a --- /dev/null +++ b/RxSpy.Analyzer/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace RxSpy.Analyzer.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RxSpy.Analyzer.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/RxSpy.Analyzer/Properties/Resources.resx b/RxSpy.Analyzer/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/RxSpy.Analyzer/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/RxSpy.Analyzer/Properties/Settings.Designer.cs b/RxSpy.Analyzer/Properties/Settings.Designer.cs new file mode 100644 index 0000000..b07da41 --- /dev/null +++ b/RxSpy.Analyzer/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34209 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace RxSpy.Analyzer.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/RxSpy.Analyzer/Properties/Settings.settings b/RxSpy.Analyzer/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/RxSpy.Analyzer/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/RxSpy.Analyzer/RxSpy.Analyzer.csproj b/RxSpy.Analyzer/RxSpy.Analyzer.csproj new file mode 100644 index 0000000..83c6262 --- /dev/null +++ b/RxSpy.Analyzer/RxSpy.Analyzer.csproj @@ -0,0 +1,159 @@ + + + + + Debug + AnyCPU + {27EC585C-E163-47C6-86B2-0D9331E77DC9} + WinExe + Properties + RxSpy.Analyzer + RxSpy.Analyzer + v4.5 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + ..\ + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\packages\reactiveui-core.6.0.6\lib\Net45\ReactiveUI.dll + + + ..\packages\reactiveui-events.6.0.6\lib\net45\ReactiveUI.Events.dll + + + ..\packages\Splat.1.4.3\lib\Net45\Splat.dll + + + + + ..\packages\Rx-Core.2.2.5\lib\net45\System.Reactive.Core.dll + + + ..\packages\Rx-Interfaces.2.2.5\lib\net45\System.Reactive.Interfaces.dll + + + ..\packages\Rx-Linq.2.2.5\lib\net45\System.Reactive.Linq.dll + + + ..\packages\Rx-PlatformServices.2.2.5\lib\net45\System.Reactive.PlatformServices.dll + + + False + ..\packages\Rx-XAML.2.2.5\lib\net45\System.Reactive.Windows.Threading.dll + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + MainView.xaml + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + + MainWindow.xaml + Code + + + Designer + MSBuild:Compile + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + + + + + {1e10026e-8a90-46f1-8fb2-06bedc21b4cc} + RxSpy.Shared + + + + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/RxSpy.Analyzer/ViewModels/MainViewModel.cs b/RxSpy.Analyzer/ViewModels/MainViewModel.cs new file mode 100644 index 0000000..ed2379c --- /dev/null +++ b/RxSpy.Analyzer/ViewModels/MainViewModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ReactiveUI; + +namespace RxSpy.Analyzer.ViewModels +{ + public class MainViewModel: ReactiveObject + { + } +} diff --git a/RxSpy.Analyzer/Views/MainView.xaml b/RxSpy.Analyzer/Views/MainView.xaml new file mode 100644 index 0000000..1706480 --- /dev/null +++ b/RxSpy.Analyzer/Views/MainView.xaml @@ -0,0 +1,11 @@ + + + + + diff --git a/RxSpy.Analyzer/Views/MainView.xaml.cs b/RxSpy.Analyzer/Views/MainView.xaml.cs new file mode 100644 index 0000000..85c8e15 --- /dev/null +++ b/RxSpy.Analyzer/Views/MainView.xaml.cs @@ -0,0 +1,51 @@ +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; +using ReactiveUI; +using RxSpy.Analyzer.ViewModels; + +namespace RxSpy.Analyzer.Views +{ + /// + /// Interaction logic for MainView.xaml + /// + public partial class MainView : UserControl, IViewFor + { + public MainView() + { + InitializeComponent(); + + DataContextChanged += (s, e) => ViewModel = e.NewValue as MainViewModel; + } + + public MainViewModel ViewModel + { + get { return GetValue(ViewModelProperty) as MainViewModel; } + set { SetValue(ViewModelProperty, value); } + } + + public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register( + "ViewModel", + typeof(MainViewModel), + typeof(MainView), + new PropertyMetadata(null) + ); + + object IViewFor.ViewModel + { + get { return ViewModel; } + set { ViewModel = value as MainViewModel; } + } + } +} diff --git a/RxSpy.Analyzer/packages.config b/RxSpy.Analyzer/packages.config new file mode 100644 index 0000000..60c0b0f --- /dev/null +++ b/RxSpy.Analyzer/packages.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file