35 changed files with 633 additions and 327 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
using Samples.Infrastructure; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
|
||||
|
namespace Samples.Modules.BusyIndicator |
||||
|
{ |
||||
|
public class BusyIndicatorModule : ModuleBase |
||||
|
{ |
||||
|
protected BusyIndicatorModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -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("Samples.Modules.BusyIndicator")] |
||||
|
[assembly: AssemblyDescription("")] |
||||
|
[assembly: AssemblyConfiguration("")] |
||||
|
[assembly: AssemblyCompany("Microsoft")] |
||||
|
[assembly: AssemblyProduct("Samples.Modules.BusyIndicator")] |
||||
|
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] |
||||
|
[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
|
||||
|
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
|
||||
|
//inside a <PropertyGroup>. For example, if you are using US english
|
||||
|
//in your source files, set the <UICulture> 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")] |
||||
@ -0,0 +1,63 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// This code was generated by a tool.
|
||||
|
// Runtime Version:4.0.30319.235
|
||||
|
//
|
||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
|
// the code is regenerated.
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Samples.Modules.BusyIndicator.Properties { |
||||
|
using System; |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
|
/// </summary>
|
||||
|
// 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() { |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Returns the cached ResourceManager instance used by this class.
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
internal static global::System.Resources.ResourceManager ResourceManager { |
||||
|
get { |
||||
|
if (object.ReferenceEquals(resourceMan, null)) { |
||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Samples.Modules.BusyIndicator.Properties.Resources", typeof(Resources).Assembly); |
||||
|
resourceMan = temp; |
||||
|
} |
||||
|
return resourceMan; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||
|
/// resource lookups using this strongly typed resource class.
|
||||
|
/// </summary>
|
||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
|
internal static global::System.Globalization.CultureInfo Culture { |
||||
|
get { |
||||
|
return resourceCulture; |
||||
|
} |
||||
|
set { |
||||
|
resourceCulture = value; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,28 +1,24 @@ |
|||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
// <auto-generated>
|
||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
// Runtime Version:4.0.30319.235
|
||||
//
|
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
// the code is regenerated.
|
||||
// </auto-generated>
|
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
namespace WPFToolkit.Extended.Samples.Properties |
namespace Samples.Modules.BusyIndicator.Properties { |
||||
{ |
|
||||
|
|
||||
|
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] |
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
||||
{ |
|
||||
|
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
||||
|
|
||||
public static Settings Default |
public static Settings Default { |
||||
{ |
get { |
||||
get |
|
||||
{ |
|
||||
return defaultInstance; |
return defaultInstance; |
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,99 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<Project ToolsVersion="4.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>{1A9C0E21-DE3B-4B2D-9EF0-39AA1922CDA6}</ProjectGuid> |
||||
|
<OutputType>library</OutputType> |
||||
|
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
|
<RootNamespace>Samples.Modules.BusyIndicator</RootNamespace> |
||||
|
<AssemblyName>Samples.Modules.BusyIndicator</AssemblyName> |
||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
||||
|
<FileAlignment>512</FileAlignment> |
||||
|
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
<SccProjectName>SAK</SccProjectName> |
||||
|
<SccLocalPath>SAK</SccLocalPath> |
||||
|
<SccAuxPath>SAK</SccAuxPath> |
||||
|
<SccProvider>SAK</SccProvider> |
||||
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
|
<DebugSymbols>true</DebugSymbols> |
||||
|
<DebugType>full</DebugType> |
||||
|
<Optimize>false</Optimize> |
||||
|
<OutputPath>bin\Debug\</OutputPath> |
||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
|
<DebugType>pdbonly</DebugType> |
||||
|
<Optimize>true</Optimize> |
||||
|
<OutputPath>bin\Release\</OutputPath> |
||||
|
<DefineConstants>TRACE</DefineConstants> |
||||
|
<ErrorReport>prompt</ErrorReport> |
||||
|
<WarningLevel>4</WarningLevel> |
||||
|
</PropertyGroup> |
||||
|
<ItemGroup> |
||||
|
<Reference Include="Microsoft.Practices.Prism, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Prism.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
||||
|
<SpecificVersion>False</SpecificVersion> |
||||
|
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath> |
||||
|
</Reference> |
||||
|
<Reference Include="System" /> |
||||
|
<Reference Include="System.Data" /> |
||||
|
<Reference Include="System.Xaml" /> |
||||
|
<Reference Include="System.Xml" /> |
||||
|
<Reference Include="System.Core" /> |
||||
|
<Reference Include="System.Xml.Linq" /> |
||||
|
<Reference Include="System.Data.DataSetExtensions" /> |
||||
|
<Reference Include="WindowsBase" /> |
||||
|
<Reference Include="PresentationCore" /> |
||||
|
<Reference Include="PresentationFramework" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<Compile Include="BusyIndicatorModule.cs" /> |
||||
|
<Compile Include="Properties\AssemblyInfo.cs"> |
||||
|
<SubType>Code</SubType> |
||||
|
</Compile> |
||||
|
<Compile Include="Properties\Resources.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DesignTime>True</DesignTime> |
||||
|
<DependentUpon>Resources.resx</DependentUpon> |
||||
|
</Compile> |
||||
|
<Compile Include="Properties\Settings.Designer.cs"> |
||||
|
<AutoGen>True</AutoGen> |
||||
|
<DependentUpon>Settings.settings</DependentUpon> |
||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
|
</Compile> |
||||
|
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
|
<Generator>ResXFileCodeGenerator</Generator> |
||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
|
</EmbeddedResource> |
||||
|
<None Include="Properties\Settings.settings"> |
||||
|
<Generator>SettingsSingleFileGenerator</Generator> |
||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
|
</None> |
||||
|
<AppDesigner Include="Properties\" /> |
||||
|
</ItemGroup> |
||||
|
<ItemGroup> |
||||
|
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj"> |
||||
|
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project> |
||||
|
<Name>Samples.Infrastructure</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> |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Prism.Modularity; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
|
||||
|
namespace Samples.Infrastructure |
||||
|
{ |
||||
|
public abstract class ModuleBase : IModule |
||||
|
{ |
||||
|
protected IRegionManager RegionManager { get; private set; } |
||||
|
protected IUnityContainer Container { get; private set; } |
||||
|
|
||||
|
protected ModuleBase(IUnityContainer container, IRegionManager regionManager) |
||||
|
{ |
||||
|
Container = container; |
||||
|
RegionManager = regionManager; |
||||
|
} |
||||
|
|
||||
|
public void Initialize() |
||||
|
{ |
||||
|
RegisterViewsAndTypes(); |
||||
|
} |
||||
|
|
||||
|
protected abstract void RegisterViewsAndTypes(); |
||||
|
} |
||||
|
} |
||||
@ -1,14 +1,14 @@ |
|||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
// <auto-generated>
|
||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
// Runtime Version:4.0.30319.235
|
||||
//
|
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
// the code is regenerated.
|
||||
// </auto-generated>
|
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
namespace WPFToolkit.Extended.Design.Properties |
namespace Samples.Infrastructure.Properties |
||||
{ |
{ |
||||
|
|
||||
|
|
||||
@ -1,7 +1,6 @@ |
|||||
<Application x:Class="WPFToolkit.Extended.Samples.App" |
<Application x:Class="Samples.App" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
StartupUri="MainWindow.xaml"> |
|
||||
<Application.Resources> |
<Application.Resources> |
||||
|
|
||||
</Application.Resources> |
</Application.Resources> |
||||
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Prism.UnityExtensions; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using System.Windows; |
||||
|
|
||||
|
namespace Samples |
||||
|
{ |
||||
|
public class Bootstrapper : UnityBootstrapper |
||||
|
{ |
||||
|
protected override DependencyObject CreateShell() |
||||
|
{ |
||||
|
return Container.Resolve<Shell>(); |
||||
|
} |
||||
|
|
||||
|
protected override void InitializeShell() |
||||
|
{ |
||||
|
base.InitializeShell(); |
||||
|
|
||||
|
App.Current.MainWindow = (Shell)Shell; |
||||
|
App.Current.MainWindow.Show(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,117 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<root> |
||||
|
<!-- |
||||
|
Microsoft ResX Schema |
||||
|
|
||||
|
Version 2.0 |
||||
|
|
||||
|
The primary goals of this format is to allow a simple XML format |
||||
|
that is mostly human readable. The generation and parsing of the |
||||
|
various data types are done through the TypeConverter classes |
||||
|
associated with the data types. |
||||
|
|
||||
|
Example: |
||||
|
|
||||
|
... ado.net/XML headers & schema ... |
||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader> |
||||
|
<resheader name="version">2.0</resheader> |
||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value> |
||||
|
</data> |
||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
||||
|
<comment>This is a comment</comment> |
||||
|
</data> |
||||
|
|
||||
|
There are any number of "resheader" rows that contain simple |
||||
|
name/value pairs. |
||||
|
|
||||
|
Each data row contains a name, and value. The row also contains a |
||||
|
type or mimetype. Type corresponds to a .NET class that support |
||||
|
text/value conversion through the TypeConverter architecture. |
||||
|
Classes that don't support this are serialized and stored with the |
||||
|
mimetype set. |
||||
|
|
||||
|
The mimetype is used for serialized objects, and tells the |
||||
|
ResXResourceReader how to depersist the object. This is currently not |
||||
|
extensible. For a given mimetype the value must be set accordingly: |
||||
|
|
||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format |
||||
|
that the ResXResourceWriter will generate, however the reader can |
||||
|
read any of the formats listed below. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.binary.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.soap.base64 |
||||
|
value : The object must be serialized with |
||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
||||
|
: and then encoded with base64 encoding. |
||||
|
|
||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64 |
||||
|
value : The object must be serialized into a byte array |
||||
|
: using a System.ComponentModel.TypeConverter |
||||
|
: and then encoded with base64 encoding. |
||||
|
--> |
||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
||||
|
<xsd:element name="root" msdata:IsDataSet="true"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:choice maxOccurs="unbounded"> |
||||
|
<xsd:element name="metadata"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" /> |
||||
|
<xsd:attribute name="type" type="xsd:string" /> |
||||
|
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="assembly"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:attribute name="alias" type="xsd:string" /> |
||||
|
<xsd:attribute name="name" type="xsd:string" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="data"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
<xsd:element name="resheader"> |
||||
|
<xsd:complexType> |
||||
|
<xsd:sequence> |
||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
||||
|
</xsd:sequence> |
||||
|
<xsd:attribute name="name" type="xsd:string" use="required" /> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:choice> |
||||
|
</xsd:complexType> |
||||
|
</xsd:element> |
||||
|
</xsd:schema> |
||||
|
<resheader name="resmimetype"> |
||||
|
<value>text/microsoft-resx</value> |
||||
|
</resheader> |
||||
|
<resheader name="version"> |
||||
|
<value>2.0</value> |
||||
|
</resheader> |
||||
|
<resheader name="reader"> |
||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
<resheader name="writer"> |
||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
|
</resheader> |
||||
|
</root> |
||||
@ -0,0 +1,26 @@ |
|||||
|
//------------------------------------------------------------------------------
|
||||
|
// <auto-generated>
|
||||
|
// This code was generated by a tool.
|
||||
|
// Runtime Version:4.0.30319.235
|
||||
|
//
|
||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
|
// the code is regenerated.
|
||||
|
// </auto-generated>
|
||||
|
//------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Samples.Properties { |
||||
|
|
||||
|
|
||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
<?xml version='1.0' encoding='utf-8'?> |
||||
|
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> |
||||
|
<Profiles> |
||||
|
<Profile Name="(Default)" /> |
||||
|
</Profiles> |
||||
|
<Settings /> |
||||
|
</SettingsFile> |
||||
@ -0,0 +1,10 @@ |
|||||
|
"" |
||||
|
{ |
||||
|
"FILE_VERSION" = "9237" |
||||
|
"ENLISTMENT_CHOICE" = "NEVER" |
||||
|
"PROJECT_FILE_RELATIVE_PATH" = "" |
||||
|
"NUMBER_OF_EXCLUDED_FILES" = "0" |
||||
|
"ORIGINAL_PROJECT_FILE_PATH" = "" |
||||
|
"NUMBER_OF_NESTED_PROJECTS" = "0" |
||||
|
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" |
||||
|
} |
||||
@ -0,0 +1,8 @@ |
|||||
|
<Window x:Class="Samples.Shell" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Title="Shell" Height="300" Width="300"> |
||||
|
<Grid> |
||||
|
|
||||
|
</Grid> |
||||
|
</Window> |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
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 Samples |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for Shell.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class Shell : Window |
||||
|
{ |
||||
|
public Shell() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,52 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using Microsoft.Windows.Design.Metadata; |
|
||||
using Microsoft.Windows.Controls; |
|
||||
using Microsoft.Windows.Design.Features; |
|
||||
using System.ComponentModel; |
|
||||
|
|
||||
[assembly: ProvideMetadata(typeof(WPFToolkit.Extended.Design.MetadataStore))] |
|
||||
|
|
||||
namespace WPFToolkit.Extended.Design |
|
||||
{ |
|
||||
internal class MetadataStore : IProvideAttributeTable |
|
||||
{ |
|
||||
public AttributeTable AttributeTable |
|
||||
{ |
|
||||
get |
|
||||
{ |
|
||||
AttributeTableBuilder builder = new AttributeTableBuilder(); |
|
||||
|
|
||||
|
|
||||
//builder.AddCustomAttributes(typeof(NumericUpDown), new FeatureAttribute(typeof(NumericUpDownEditor)));
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "Increment", |
|
||||
new DescriptionAttribute("Specifies the amount in which to increment the value."), |
|
||||
new DisplayNameAttribute("Increment")); |
|
||||
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "IsEditable", |
|
||||
new DescriptionAttribute("Determines if direct entry is allowed in the text box."), |
|
||||
new DisplayNameAttribute("IsEditable")); |
|
||||
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "Maximum", |
|
||||
new DescriptionAttribute("Gets/Sets the maximum allowed value."), |
|
||||
new DisplayNameAttribute("Maximum")); |
|
||||
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "Minimum", |
|
||||
new DescriptionAttribute("Gets/Sets the minimum allowed value."), |
|
||||
new DisplayNameAttribute("Minimum")); |
|
||||
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "Text", |
|
||||
new DescriptionAttribute("Gets/Sets the formated string representation of the value."), |
|
||||
new DisplayNameAttribute("Text")); |
|
||||
|
|
||||
builder.AddCustomAttributes(typeof(NumericUpDown), "Value", |
|
||||
new DescriptionAttribute("Gets/Sets the numeric value."), |
|
||||
new DisplayNameAttribute("Value")); |
|
||||
|
|
||||
return builder.CreateTable(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,42 +0,0 @@ |
|||||
<Window x:Class="WPFToolkit.Extended.Samples.MainWindow" |
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
||||
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" |
|
||||
xmlns:local="clr-namespace:WPFToolkit.Extended.Samples" |
|
||||
Title="MainWindow" Height="600" Width="250" WindowStartupLocation="CenterScreen" ForceCursor="True" |
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib" Background="White"> |
|
||||
|
|
||||
<Window.Resources> |
|
||||
|
|
||||
</Window.Resources> |
|
||||
|
|
||||
<StackPanel> |
|
||||
|
|
||||
<extToolkit:DecimalUpDown Margin="25,5,25,5" Value="{Binding Decimal}" FormatString="{Binding Text}" Watermark="Enter Decimal" SelectAllOnGotFocus="True" /> |
|
||||
|
|
||||
<extToolkit:DoubleUpDown Margin="25,5,25,5" Value="{Binding Double}" FormatString="{Binding Text}" Watermark="Enter Double" SelectAllOnGotFocus="True" /> |
|
||||
|
|
||||
<extToolkit:IntegerUpDown Margin="25,5,25,5" Value="{Binding Integer}" FormatString="{Binding Text}" Watermark="Enter Integer" SelectAllOnGotFocus="True" /> |
|
||||
|
|
||||
<!--<extToolkit:Calculator Precision="3" ValueChanged="Calculator_ValueChanged" />--> |
|
||||
|
|
||||
<!--<extToolkit:CalculatorUpDown Watermark="Enter Value" Margin="10" />--> |
|
||||
|
|
||||
<!--<extToolkit:ColorPicker />--> |
|
||||
|
|
||||
<!--<extToolkit:ColorCanvas SelectedColorChanged="ColorCanvas_SelectedColorChanged" />--> |
|
||||
|
|
||||
<!--<extToolkit:DateTimeUpDown VerticalAlignment="Center" Margin="25" Watermark="Enter Date" Format="FullDateTime" Value="{Binding DueDate}" />--> |
|
||||
|
|
||||
<!--<extToolkit:TimePicker VerticalAlignment="Center" Margin="25" Value="{Binding DueDate}" Watermark="Enter Time" />--> |
|
||||
|
|
||||
<!--<extToolkit:DateTimePicker Margin="25" Background="White" Value="{Binding DueDate}" Watermark="Select Date" TimeWatermark="Select Time" />--> |
|
||||
|
|
||||
<!--<extToolkit:MaskedTextBox Value="{Binding Price}" Mask="00.00" Margin="25" Watermark="Enter Value" />--> |
|
||||
|
|
||||
|
|
||||
<!--<extToolkit:PropertyGrid Margin="25" SelectedObject="{Binding ElementName=_text}" Height="300" />--> |
|
||||
|
|
||||
|
|
||||
</StackPanel> |
|
||||
</Window> |
|
||||
@ -1,128 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
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 System.ComponentModel; |
|
||||
using System.Collections.ObjectModel; |
|
||||
using Microsoft.Windows.Controls; |
|
||||
using System.Text.RegularExpressions; |
|
||||
using System.Diagnostics; |
|
||||
|
|
||||
namespace WPFToolkit.Extended.Samples |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Interaction logic for MainWindow.xaml
|
|
||||
/// </summary>
|
|
||||
public partial class MainWindow : Window |
|
||||
{ |
|
||||
public MainWindow() |
|
||||
{ |
|
||||
InitializeComponent(); |
|
||||
DataContext = new Data(); |
|
||||
Loaded += new RoutedEventHandler(MainWindow_Loaded); |
|
||||
} |
|
||||
|
|
||||
void MainWindow_Loaded(object sender, RoutedEventArgs e) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
private void Calculator_ValueChanged(object sender, RoutedPropertyChangedEventArgs<decimal?> e) |
|
||||
{ |
|
||||
Debug.WriteLine(e.NewValue.HasValue ? e.NewValue.Value.ToString() : "NULL"); |
|
||||
} |
|
||||
|
|
||||
private void ColorCanvas_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs<Color> e) |
|
||||
{ |
|
||||
Debug.WriteLine(e.NewValue); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
public class Data : System.ComponentModel.INotifyPropertyChanged |
|
||||
{ |
|
||||
|
|
||||
protected string _Text = "C2"; |
|
||||
public string Text |
|
||||
{ |
|
||||
get { return _Text; } |
|
||||
set |
|
||||
{ |
|
||||
_Text = value; |
|
||||
NotifyPropertyChanged("Text"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private int? _integer = 5; |
|
||||
public int? Integer |
|
||||
{ |
|
||||
get { return _integer; } |
|
||||
set |
|
||||
{ |
|
||||
_integer = value; |
|
||||
NotifyPropertyChanged("Integer"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private double? _double = 5; |
|
||||
public double? Double |
|
||||
{ |
|
||||
get { return _double; } |
|
||||
set |
|
||||
{ |
|
||||
_double = value; |
|
||||
NotifyPropertyChanged("Double"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
private decimal? _decimal = 5; |
|
||||
public decimal? Decimal |
|
||||
{ |
|
||||
get { return _decimal; } |
|
||||
set |
|
||||
{ |
|
||||
_decimal = value; |
|
||||
NotifyPropertyChanged("Decimal"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
|
|
||||
private DateTime? _dueDate; |
|
||||
public DateTime? DueDate |
|
||||
{ |
|
||||
get { return _dueDate; } |
|
||||
set |
|
||||
{ |
|
||||
_dueDate = value; |
|
||||
NotifyPropertyChanged("DueDate"); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
|
|
||||
|
|
||||
public Data() |
|
||||
{ |
|
||||
//Text = "testm";
|
|
||||
} |
|
||||
|
|
||||
#region PropertyChanged
|
|
||||
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; |
|
||||
|
|
||||
private void NotifyPropertyChanged(string info) |
|
||||
{ |
|
||||
if (PropertyChanged != null) |
|
||||
{ |
|
||||
PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(info)); |
|
||||
} |
|
||||
} |
|
||||
#endregion
|
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue