24 changed files with 2219 additions and 26 deletions
@ -0,0 +1,72 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
using System.Reflection; |
|||
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( "Extended WPF Toolkit TimelinePanel Sample" )] |
|||
[assembly: AssemblyDescription( "" )] |
|||
[assembly: AssemblyConfiguration( "" )] |
|||
[assembly: AssemblyCompany( "Xceed Software Inc." )] |
|||
[assembly: AssemblyProduct( "Extended WPF Toolkit TimelinePanel Sample" )] |
|||
[assembly: AssemblyCopyright( "Copyright © Xceed Software Inc. 2010-2012" )] |
|||
[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.261
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Samples.Modules.TimelinePanel.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.TimelinePanel.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; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,101 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<root> |
|||
<!-- |
|||
Microsoft ResX Schema |
|||
|
|||
Version 1.3 |
|||
|
|||
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">1.3</resheader> |
|||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|||
<data name="Name1">this is my long string</data> |
|||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|||
[base64 mime encoded serialized .NET Framework object] |
|||
</data> |
|||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|||
[base64 mime encoded string representing a byte array form of the .NET Framework object] |
|||
</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="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>1.3</value> |
|||
</resheader> |
|||
<resheader name="reader"> |
|||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|||
</resheader> |
|||
<resheader name="writer"> |
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.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.261
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Samples.Modules.TimelinePanel.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,6 @@ |
|||
<?xml version='1.0' encoding='utf-8'?> |
|||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
|||
<Profiles> |
|||
<Profile Name="(Default)" /> |
|||
</Profiles> |
|||
</SettingsFile> |
|||
@ -0,0 +1,121 @@ |
|||
<?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>{9FCBCEF6-6E41-4CD5-A49B-456890A038BA}</ProjectGuid> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>Samples.Modules.TimelinePanel</RootNamespace> |
|||
<AssemblyName>Samples.Modules.TimelinePanel</AssemblyName> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<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"> |
|||
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Prism.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="Microsoft.Practices.Unity"> |
|||
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="PresentationCore" /> |
|||
<Reference Include="PresentationFramework" /> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Xaml" /> |
|||
<Reference Include="System.Xml.Linq" /> |
|||
<Reference Include="System.Data.DataSetExtensions" /> |
|||
<Reference Include="Microsoft.CSharp" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.Xml" /> |
|||
<Reference Include="WindowsBase" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
<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> |
|||
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
|||
<DependentUpon>Settings.settings</DependentUpon> |
|||
</Compile> |
|||
<Compile Include="TimelinePanelModule.cs" /> |
|||
<Compile Include="Views\HomeView.xaml.cs"> |
|||
<DependentUpon>HomeView.xaml</DependentUpon> |
|||
</Compile> |
|||
<Compile Include="Views\NavigationView.xaml.cs"> |
|||
<DependentUpon>NavigationView.xaml</DependentUpon> |
|||
</Compile> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<EmbeddedResource Include="Properties\Resources.resx"> |
|||
<Generator>ResXFileCodeGenerator</Generator> |
|||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
|||
</EmbeddedResource> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<None Include="Properties\Settings.settings"> |
|||
<Generator>SettingsSingleFileGenerator</Generator> |
|||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
|||
</None> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj"> |
|||
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project> |
|||
<Name>WPFToolkit.Extended</Name> |
|||
</ProjectReference> |
|||
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj"> |
|||
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project> |
|||
<Name>Samples.Infrastructure</Name> |
|||
</ProjectReference> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Page Include="Views\HomeView.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
<Page Include="Views\NavigationView.xaml"> |
|||
<SubType>Designer</SubType> |
|||
<Generator>MSBuild:Compile</Generator> |
|||
</Page> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
<PropertyGroup> |
|||
<PostBuildEvent>xcopy "$(TargetDir)*.*" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\" /Y |
|||
xcopy "$(ProjectDir)Views" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\Samples\$(ProjectName)\" /s /Y /I</PostBuildEvent> |
|||
</PropertyGroup> |
|||
<!-- 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,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,45 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
using Microsoft.Practices.Prism.Regions; |
|||
using Microsoft.Practices.Unity; |
|||
using Samples.Infrastructure; |
|||
using Samples.Infrastructure.Extensions; |
|||
using Samples.Modules.TimelinePanel.Views; |
|||
|
|||
namespace Samples.Modules.TimelinePanel |
|||
{ |
|||
public class TimelinePanelModule : ModuleBase |
|||
{ |
|||
public TimelinePanelModule( IUnityContainer container, IRegionManager regionManager ) |
|||
: base( container, regionManager ) |
|||
{ |
|||
} |
|||
|
|||
protected override void InitializeModule() |
|||
{ |
|||
RegionManager.RegisterViewWithRegion( RegionNames.NavigationRegion, typeof( NavigationView ) ); |
|||
} |
|||
|
|||
protected override void RegisterViewsAndTypes() |
|||
{ |
|||
Container.RegisterNavigationType( typeof( HomeView ) ); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,184 @@ |
|||
<!--********************************************************************* |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license |
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter. |
|||
|
|||
********************************************************************--> |
|||
<sample:DemoView x:Class="Samples.Modules.TimelinePanel.Views.HomeView" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" |
|||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" |
|||
xmlns:pf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|||
Title="TimelinePanel"> |
|||
<sample:DemoView.Resources> |
|||
<ObjectDataProvider x:Key="Orientations" MethodName="GetValues" |
|||
ObjectType="{x:Type sys:Enum}"> |
|||
<ObjectDataProvider.MethodParameters> |
|||
<x:Type TypeName="Orientation" /> |
|||
</ObjectDataProvider.MethodParameters> |
|||
</ObjectDataProvider> |
|||
<ObjectDataProvider x:Key="OverlapBehaviors" MethodName="GetValues" |
|||
ObjectType="{x:Type sys:Enum}"> |
|||
<ObjectDataProvider.MethodParameters> |
|||
<x:Type TypeName="xctk:OverlapBehavior" /> |
|||
</ObjectDataProvider.MethodParameters> |
|||
</ObjectDataProvider> |
|||
|
|||
<ControlTemplate x:Key="TimelineItemTemplate" |
|||
TargetType="ContentControl"> |
|||
<xctk:DropDownButton DataContext="{Binding ., RelativeSource={RelativeSource TemplatedParent}}" |
|||
Content="{TemplateBinding Content}"> |
|||
<xctk:DropDownButton.ContentTemplate> |
|||
<DataTemplate> |
|||
<TextBlock Text="{TemplateBinding Content}" |
|||
TextTrimming="WordEllipsis" |
|||
VerticalAlignment="Center" /> |
|||
</DataTemplate> |
|||
</xctk:DropDownButton.ContentTemplate> |
|||
|
|||
<xctk:DropDownButton.DropDownContent> |
|||
<Border Background="Lavender" |
|||
Padding="5"> |
|||
<Grid> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="Auto" /> |
|||
</Grid.RowDefinitions> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="*" /> |
|||
<ColumnDefinition Width="Auto" /> |
|||
</Grid.ColumnDefinitions> |
|||
|
|||
<TextBox Text="{Binding Content, Mode=TwoWay}" |
|||
Grid.Row="0" |
|||
Grid.Column="0" |
|||
Grid.ColumnSpan="2" |
|||
VerticalAlignment="Center" |
|||
HorizontalContentAlignment="Center" /> |
|||
|
|||
<TextBlock Text="From" |
|||
Grid.Row="1" |
|||
Grid.Column="0" |
|||
VerticalAlignment="Center" |
|||
Margin="0,0,5,0" /> |
|||
<xctk:DateTimePicker Value="{Binding (xctk:TimelinePanel.Date), Mode=TwoWay}" |
|||
Grid.Row="1" |
|||
Grid.Column="1" |
|||
VerticalAlignment="Center" |
|||
Format="ShortDate" /> |
|||
|
|||
<TextBlock Text="To" |
|||
Grid.Row="2" |
|||
Grid.Column="0" |
|||
VerticalAlignment="Center" |
|||
Margin="0,0,5,0" /> |
|||
<xctk:DateTimePicker Value="{Binding (xctk:TimelinePanel.DateEnd), Mode=TwoWay}" |
|||
Grid.Row="2" |
|||
Grid.Column="1" |
|||
VerticalAlignment="Center" |
|||
Format="ShortDate" /> |
|||
</Grid> |
|||
</Border> |
|||
</xctk:DropDownButton.DropDownContent> |
|||
</xctk:DropDownButton> |
|||
</ControlTemplate> |
|||
</sample:DemoView.Resources> |
|||
|
|||
<Grid> |
|||
|
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="*" /> |
|||
</Grid.RowDefinitions> |
|||
|
|||
<TextBlock Text="The TimelinePanel arrange elements on a timeline." |
|||
TextWrapping="Wrap" /> |
|||
|
|||
<GroupBox Header="Features" Grid.Row="1" Margin="5"> |
|||
<Grid> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="Auto" /> |
|||
<RowDefinition Height="Auto" /> |
|||
</Grid.RowDefinitions> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="Auto" /> |
|||
<ColumnDefinition Width="*" /> |
|||
</Grid.ColumnDefinitions> |
|||
|
|||
<TextBlock Text="Orientation:" VerticalAlignment="Center" Margin="2" /> |
|||
<ComboBox Name="_cboOrientation" Grid.Column="1" ItemsSource="{Binding Source={StaticResource Orientations}}" SelectedIndex="0" VerticalAlignment="Center" Margin="5" /> |
|||
|
|||
<TextBlock Text="Overlap behavior:" Grid.Row="1" VerticalAlignment="Center" Margin="2" /> |
|||
<ComboBox Name="_cboOverlap" Grid.Row="1" Grid.Column="1" ItemsSource="{Binding Source={StaticResource OverlapBehaviors}}" SelectedIndex="0" VerticalAlignment="Center" Margin="5" /> |
|||
|
|||
<TextBlock Text="Keep original order:" Grid.Row="2" VerticalAlignment="Center" Margin="2" /> |
|||
<CheckBox x:Name="_keepOrder" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" Margin="5" IsChecked="True" /> |
|||
</Grid> |
|||
</GroupBox> |
|||
|
|||
<xctk:TimelinePanel x:Name="_panel" |
|||
Grid.Row="2" |
|||
Orientation="{Binding SelectedItem, ElementName=_cboOrientation}" |
|||
OverlapBehavior="{Binding SelectedItem, ElementName=_cboOverlap}" |
|||
KeepOriginalOrderForOverlap="{Binding IsChecked, ElementName=_keepOrder}"> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-01-01T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-01-16T00:00:00" |
|||
Content="Event #1" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-02-02T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-02-26T00:00:00" |
|||
Content="Event #2" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-02-14T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-03-14T00:00:00" |
|||
Content="Event #3" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-02-21T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-03-10T00:00:00" |
|||
Content="Event #4" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-05-17T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-06-23T00:00:00" |
|||
Content="Event #5" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-06-06T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-08-13T00:00:00" |
|||
Content="Event #6" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-08-13T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-09-29T00:00:00" |
|||
Content="Event #7" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
<ContentControl xctk:TimelinePanel.Date="2012-11-01T00:00:00" |
|||
xctk:TimelinePanel.DateEnd="2012-12-01T00:00:00" |
|||
Content="Event #8" |
|||
Template="{StaticResource TimelineItemTemplate}" /> |
|||
|
|||
</xctk:TimelinePanel> |
|||
</Grid> |
|||
</sample:DemoView> |
|||
@ -0,0 +1,36 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
using Microsoft.Practices.Prism.Regions; |
|||
using Samples.Infrastructure.Controls; |
|||
|
|||
namespace Samples.Modules.TimelinePanel.Views |
|||
{ |
|||
/// <summary>
|
|||
/// Interaction logic for HomeView.xaml
|
|||
/// </summary>
|
|||
[RegionMemberLifetime( KeepAlive = false )] |
|||
public partial class HomeView : DemoView |
|||
{ |
|||
public HomeView() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
<!--********************************************************************* |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license |
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter. |
|||
|
|||
********************************************************************--> |
|||
<TreeViewItem x:Class="Samples.Modules.TimelinePanel.Views.NavigationView" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:views="clr-namespace:Samples.Modules.TimelinePanel.Views" |
|||
Header="TimelinePanel" Tag="{x:Type views:HomeView}"> |
|||
|
|||
<TreeViewItem.Resources> |
|||
<Style TargetType="views:NavigationView" BasedOn="{StaticResource {x:Type TreeViewItem}}" /> |
|||
</TreeViewItem.Resources> |
|||
|
|||
</TreeViewItem> |
|||
@ -0,0 +1,34 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
using System.Windows.Controls; |
|||
|
|||
namespace Samples.Modules.TimelinePanel.Views |
|||
{ |
|||
/// <summary>
|
|||
/// Interaction logic for NavigationView.xaml
|
|||
/// </summary>
|
|||
public partial class NavigationView : TreeViewItem |
|||
{ |
|||
public NavigationView() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,19 +1,20 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<configuration> |
|||
<configSections> |
|||
<section name="modules" type="Microsoft.Practices.Prism.Modularity.ModulesConfigurationSection, Microsoft.Practices.Prism"/> |
|||
</configSections> |
|||
<configSections> |
|||
<section name="modules" type="Microsoft.Practices.Prism.Modularity.ModulesConfigurationSection, Microsoft.Practices.Prism"/> |
|||
</configSections> |
|||
|
|||
<modules> |
|||
<module assemblyFile="Samples.Modules.BusyIndicator.dll" moduleType="Samples.Modules.BusyIndicator.BusyIndicatorModule, Samples.Modules.BusyIndicator" moduleName="BusyIndicatorModule" /> |
|||
<module assemblyFile="Samples.Modules.Button.dll" moduleType="Samples.Modules.Button.ButtonModule, Samples.Modules.Button" moduleName="ButtonModule" /> |
|||
<module assemblyFile="Samples.Modules.Calculator.dll" moduleType="Samples.Modules.Calculator.CalculatorModule, Samples.Modules.Calculator" moduleName="CalculatorModule" /> |
|||
<module assemblyFile="Samples.Modules.ChildWindow.dll" moduleType="Samples.Modules.ChildWindow.ChildWindowModule, Samples.Modules.ChildWindow" moduleName="ChildWindowModule" /> |
|||
<module assemblyFile="Samples.Modules.Color.dll" moduleType="Samples.Modules.Color.ColorModule, Samples.Modules.Color" moduleName="ColorModule" /> |
|||
<module assemblyFile="Samples.Modules.DateTime.dll" moduleType="Samples.Modules.DateTime.DateTimeModule, Samples.Modules.DateTime" moduleName="DateTimeModule" /> |
|||
<module assemblyFile="Samples.Modules.Numeric.dll" moduleType="Samples.Modules.Numeric.NumericModule, Samples.Modules.Numeric" moduleName="NumericModule" /> |
|||
<module assemblyFile="Samples.Modules.PropertyGrid.dll" moduleType="Samples.Modules.PropertyGrid.PropertyGridModule, Samples.Modules.PropertyGrid" moduleName="PropertyGridModule" /> |
|||
<module assemblyFile="Samples.Modules.Text.dll" moduleType="Samples.Modules.Text.TextModule, Samples.Modules.Text" moduleName="TextModule" /> |
|||
<module assemblyFile="Samples.Modules.Wizard.dll" moduleType="Samples.Modules.Wizard.WizardModule, Samples.Modules.Wizard" moduleName="WizardModule" /> |
|||
</modules> |
|||
<modules> |
|||
<module assemblyFile="Samples.Modules.BusyIndicator.dll" moduleType="Samples.Modules.BusyIndicator.BusyIndicatorModule, Samples.Modules.BusyIndicator" moduleName="BusyIndicatorModule" /> |
|||
<module assemblyFile="Samples.Modules.Button.dll" moduleType="Samples.Modules.Button.ButtonModule, Samples.Modules.Button" moduleName="ButtonModule" /> |
|||
<module assemblyFile="Samples.Modules.Calculator.dll" moduleType="Samples.Modules.Calculator.CalculatorModule, Samples.Modules.Calculator" moduleName="CalculatorModule" /> |
|||
<module assemblyFile="Samples.Modules.ChildWindow.dll" moduleType="Samples.Modules.ChildWindow.ChildWindowModule, Samples.Modules.ChildWindow" moduleName="ChildWindowModule" /> |
|||
<module assemblyFile="Samples.Modules.Color.dll" moduleType="Samples.Modules.Color.ColorModule, Samples.Modules.Color" moduleName="ColorModule" /> |
|||
<module assemblyFile="Samples.Modules.DateTime.dll" moduleType="Samples.Modules.DateTime.DateTimeModule, Samples.Modules.DateTime" moduleName="DateTimeModule" /> |
|||
<module assemblyFile="Samples.Modules.Numeric.dll" moduleType="Samples.Modules.Numeric.NumericModule, Samples.Modules.Numeric" moduleName="NumericModule" /> |
|||
<module assemblyFile="Samples.Modules.PropertyGrid.dll" moduleType="Samples.Modules.PropertyGrid.PropertyGridModule, Samples.Modules.PropertyGrid" moduleName="PropertyGridModule" /> |
|||
<module assemblyFile="Samples.Modules.Text.dll" moduleType="Samples.Modules.Text.TextModule, Samples.Modules.Text" moduleName="TextModule" /> |
|||
<module assemblyFile="Samples.Modules.TimelinePanel.dll" moduleType="Samples.Modules.TimelinePanel.TimelinePanelModule, Samples.Modules.TimelinePanel" moduleName="TimelinePanelModule" /> |
|||
<module assemblyFile="Samples.Modules.Wizard.dll" moduleType="Samples.Modules.Wizard.WizardModule, Samples.Modules.Wizard" moduleName="WizardModule" /> |
|||
</modules> |
|||
</configuration> |
|||
@ -0,0 +1,94 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
using System; |
|||
using System.Windows; |
|||
|
|||
namespace Xceed.Wpf.Toolkit |
|||
{ |
|||
internal sealed class DateElement : IComparable<DateElement> |
|||
{ |
|||
#region Members
|
|||
|
|||
private readonly int _originalIndex; |
|||
|
|||
#endregion //Members
|
|||
|
|||
#region Fields
|
|||
|
|||
public readonly UIElement Element; |
|||
public readonly DateTime Date; |
|||
public readonly DateTime DateEnd; |
|||
public Rect PlacementRectangle; |
|||
|
|||
public int Column = 0; |
|||
public int ColumnSpan = 1; |
|||
|
|||
#endregion //Fields
|
|||
|
|||
#region Constructors
|
|||
|
|||
internal DateElement( UIElement element, DateTime date, DateTime dateEnd ) |
|||
: this( element, date, dateEnd, -1 ) |
|||
{ |
|||
} |
|||
|
|||
internal DateElement( UIElement element, DateTime date, DateTime dateEnd, int originalIndex ) |
|||
{ |
|||
Element = element; |
|||
Date = date; |
|||
DateEnd = dateEnd; |
|||
_originalIndex = originalIndex; |
|||
} |
|||
|
|||
#endregion //Constructors
|
|||
|
|||
#region Base Class Overrides
|
|||
|
|||
public override string ToString() |
|||
{ |
|||
var fe = Element as FrameworkElement; |
|||
if( fe == null ) |
|||
return base.ToString(); |
|||
|
|||
if( fe.Tag != null ) |
|||
return fe.Tag.ToString(); |
|||
|
|||
return fe.Name; |
|||
} |
|||
|
|||
#endregion //Base Class Overrides
|
|||
|
|||
#region Methods
|
|||
|
|||
public int CompareTo( DateElement d ) |
|||
{ |
|||
int dateCompare = Date.CompareTo( d.Date ); |
|||
if( dateCompare != 0 ) |
|||
return dateCompare; |
|||
|
|||
if( _originalIndex >= 0 ) |
|||
return ( _originalIndex < d._originalIndex ) ? -1 : 1; |
|||
|
|||
return -DateEnd.CompareTo( d.DateEnd ); |
|||
} |
|||
|
|||
#endregion
|
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
/************************************************************************ |
|||
|
|||
Extended WPF Toolkit |
|||
|
|||
Copyright (C) 2010-2012 Xceed Software Inc. |
|||
|
|||
This program is provided to you under the terms of the Microsoft Reciprocal |
|||
License (Ms-RL) as published at http://wpftoolkit.codeplex.com/license
|
|||
|
|||
This program can be provided to you by Xceed Software Inc. under a |
|||
proprietary commercial license agreement for use in non-Open Source |
|||
projects. The commercial version of Extended WPF Toolkit also includes |
|||
priority technical support, commercial updates, and many additional |
|||
useful WPF controls if you license Xceed Business Suite for WPF. |
|||
|
|||
Visit http://xceed.com and follow @datagrid on Twitter.
|
|||
|
|||
**********************************************************************/ |
|||
|
|||
namespace Xceed.Wpf.Toolkit |
|||
{ |
|||
public enum OverlapBehavior |
|||
{ |
|||
Stack, |
|||
Stretch, |
|||
Hide, |
|||
None |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
Loading…
Reference in new issue