Added alternative .NET 4.6.2 project; MultiPageViewForm now has a default constructor just so it doesn't upset the Windows Forms designer
git-svn-id: file:///srv/devel/repo-conversion/nuwi@57 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
db68a9741e
commit
857917aad5
186
Nuclex.Windows.Forms (net-4.6).csproj
Normal file
186
Nuclex.Windows.Forms (net-4.6).csproj
Normal file
|
@ -0,0 +1,186 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{B2BFA3EC-3B7B-4EE0-8395-8426B5C7A8B8}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Nuclex.Windows.Forms</RootNamespace>
|
||||
<AssemblyName>Nuclex.Windows.Forms</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\net-4.0\Debug\</OutputPath>
|
||||
<DefineConstants>TRACE;DEBUG;UNITTEST</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>bin\net-4.0\Debug\Nuclex.Windows.Forms.xml</DocumentationFile>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\net-4.6\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;UNITTEST</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>bin\net-4.6\Release\Nuclex.Windows.Forms.xml</DocumentationFile>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<AssemblyOriginatorKeyFile>..\Foundation.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\References\nunit\net-4.0\framework\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Source\AutoBinding\ConventionBinder.cs" />
|
||||
<Compile Include="Source\AutoBinding\IAutoBinder.cs" />
|
||||
<Compile Include="Source\CommonDialogs\CommonDialogManager.cs" />
|
||||
<Compile Include="Source\CommonDialogs\ICommonDialogService.cs" />
|
||||
<Compile Include="Source\Controls\ProgressSpinner.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\Controls\ProgressSpinner.Designer.cs">
|
||||
<DependentUpon>ProgressSpinner.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\LateCheckedSynchronizer.cs" />
|
||||
<Compile Include="Source\Messages\IMessageService.cs" />
|
||||
<Compile Include="Source\Messages\MessageEventArgs.cs" />
|
||||
<Compile Include="Source\Messages\MessageEventArgs.Test.cs">
|
||||
<DependentUpon>MessageEventArgs.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\Messages\MessageServiceHelper.cs" />
|
||||
<Compile Include="Source\Messages\MessageText.cs" />
|
||||
<Compile Include="Source\Messages\MessageText.Test.cs">
|
||||
<DependentUpon>MessageText.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\Messages\StandardMessageBoxManager.cs" />
|
||||
<Compile Include="Source\NullActiveWindowTracker.cs" />
|
||||
<Compile Include="Source\ViewModels\DialogViewModel.cs" />
|
||||
<Compile Include="Source\ViewModels\DialogViewModel.Test.cs">
|
||||
<DependentUpon>DialogViewModel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ViewModels\IMultiPageViewModel.cs" />
|
||||
<Compile Include="Source\ViewModels\MultiPageViewModel.cs" />
|
||||
<Compile Include="Source\ViewModels\ThreadedAction.cs" />
|
||||
<Compile Include="Source\ViewModels\ThreadedAction.Test.cs">
|
||||
<DependentUpon>ThreadedAction.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ViewModels\ThreadedDialogViewModel.cs" />
|
||||
<Compile Include="Source\ViewModels\ThreadedDialogViewModel.Test.cs">
|
||||
<DependentUpon>ThreadedDialogViewModel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ViewModels\ThreadedViewModel.cs" />
|
||||
<Compile Include="Source\ViewModels\ThreadedViewModel.Test.cs">
|
||||
<DependentUpon>ThreadedViewModel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\IActiveWindowTracker.cs" />
|
||||
<Compile Include="Source\Views\IView.cs" />
|
||||
<Compile Include="Source\IWindowManager.cs" />
|
||||
<Compile Include="Source\Views\MultiPageViewForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\Views\ViewControl.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\Views\ViewForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\WindowManager.cs" />
|
||||
<Compile Include="Source\WindowManager.Test.cs">
|
||||
<DependentUpon>WindowManager.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Source\Controls\ProgressSpinner.resx">
|
||||
<DependentUpon>ProgressSpinner.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Source\ProgressReporter\ProgressReporterForm.resx">
|
||||
<DependentUpon>ProgressReporterForm.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Source\AsyncProgressBar\AsyncProgressBar.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\AsyncProgressBar\AsyncProgressBar.Designer.cs">
|
||||
<DependentUpon>AsyncProgressBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\AsyncProgressBar\AsyncProgressBar.Test.cs">
|
||||
<DependentUpon>AsyncProgressBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ContainerListView\ContainerListView.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\ContainerListView\ContainerListView.Designer.cs">
|
||||
<DependentUpon>ContainerListView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ContainerListView\ContainerListView.Test.cs">
|
||||
<DependentUpon>ContainerListView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\ContainerListView\ListViewEmbeddedControl.cs" />
|
||||
<Compile Include="Source\ProgressReporter\ProgressReporterForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\ProgressReporter\ProgressReporterForm.Designer.cs">
|
||||
<DependentUpon>ProgressReporterForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Source\TrackingBar\ToolStripTrackingBar.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\TrackingBar\TrackingBar.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Source\TrackingBar\TrackingBar.Designer.cs">
|
||||
<DependentUpon>TrackingBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\Foundation.snk">
|
||||
<Link>Foundation.snk</Link>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Nuclex.Support.Transactions\Nuclex.Support.Transactions %28net-4.6%29.csproj">
|
||||
<Project>{2f487c4d-8e06-496f-bcd5-7119b18c78d8}</Project>
|
||||
<Name>Nuclex.Support.Transactions %28net-4.6%29</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Nuclex.Support\Nuclex.Support %28net-4.6%29.csproj">
|
||||
<Project>{00567408-4f44-4c00-866e-b04a99e482f2}</Project>
|
||||
<Name>Nuclex.Support %28net-4.6%29</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
|
@ -59,6 +59,11 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
|
||||
#endregion // struct RedrawLockScope
|
||||
|
||||
/// <summary>Initializes a new multi page view window for the windows forms designer</summary>
|
||||
public MultiPageViewForm() {
|
||||
this.createViewMethod = typeof(IWindowManager).GetMethod(nameof(IWindowManager.CreateView));
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new multi page view window</summary>
|
||||
/// <param name="windowManager">
|
||||
/// Window manager that is used to set up the child views
|
||||
|
|
|
@ -36,6 +36,18 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
this.onViewModelPropertyChangedDelegate = OnViewModelPropertyChanged;
|
||||
}
|
||||
|
||||
/// <summary>Provides the data binding target for the view</summary>
|
||||
public object DataContext {
|
||||
get { return this.dataContext; }
|
||||
set {
|
||||
if(value != this.dataContext) {
|
||||
object oldDataContext = this.dataContext;
|
||||
this.dataContext = value;
|
||||
OnDataContextChanged(this, oldDataContext, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Called when the window's data context is changed</summary>
|
||||
/// <param name="sender">Window whose data context was changed</param>
|
||||
/// <param name="oldDataContext">Data context that was previously used</param>
|
||||
|
@ -67,18 +79,6 @@ namespace Nuclex.Windows.Forms.Views {
|
|||
object sender, PropertyChangedEventArgs arguments
|
||||
) { }
|
||||
|
||||
/// <summary>Provides the data binding target for the view</summary>
|
||||
public object DataContext {
|
||||
get { return this.dataContext; }
|
||||
set {
|
||||
if(value != this.dataContext) {
|
||||
object oldDataContext = this.dataContext;
|
||||
this.dataContext = value;
|
||||
OnDataContextChanged(this, oldDataContext, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Active data binding target, can be null</summary>
|
||||
private object dataContext;
|
||||
/// <summary>Delegate for the OnViewModelPropertyChanged() method</summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user