PK
5NAoF F App.xaml
PK
5NAXq@+ + App.xaml.csusing System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
namespace WpfApplication1
{
///
/// Interaction logic for App.xaml
///
public partial class App : Application
{
}
}
PK
OAQ GraphSource.csusing System;
using System.Linq;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
namespace WpfApplication1
{
public class GraphSource : ObservableGraphSourceBase
{
}
}
PK
pCAD_F F MainWindow.xaml
PK
dAE MainWindow.xaml.csusing 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 Telerik.Windows.Diagrams.Core;
using Telerik.Windows.Controls.Diagrams;
namespace WpfApplication1
{
///
/// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.BindGraphSource();
}
private void BindGraphSource()
{
GraphSource source = new GraphSource();
OrgItem rootItem = new OrgItem() { Label = "CEO" };
source.AddNode(rootItem);
for (int i = 0; i < 15; i++)
{
OrgItem child = new OrgItem() { Label = "Manager " + i };
source.AddNode(child);
source.AddLink(new OrgLink(rootItem, child));
for (int j = 0; j < 20; j++)
{
OrgItem subchild = new OrgItem() { Label = "Team LEad" + i + "." + j };
source.AddNode(subchild);
source.AddLink(new OrgLink(child, subchild));
}
}
this.diagram.GraphSource = source;
}
private void RadButton_Click(object sender, RoutedEventArgs e)
{
this.PrepareShapesForTipOverTreeRouting();
TreeLayoutSettings settings = new TreeLayoutSettings()
{
TreeLayoutType = TreeLayoutType.TipOverTree,
VerticalDistance = 100,
UnderneathHorizontalOffset = 50,
UnderneathVerticalTopOffset = 50,
UnderneathVerticalSeparation = 60
};
settings.Roots.Add(this.diagram.Shapes[0]);
OrgTreeRouter router = new OrgTreeRouter()
{
TreeLayoutType = TreeLayoutType.TipOverTree,
ConnectionOuterSpacing = 20,
};
this.diagram.RoutingService.Router = router;
this.diagram.Layout(LayoutType.Tree, settings);
}
private void PrepareShapesForTipOverTreeRouting()
{
foreach (var item in this.diagram.Shapes)
{
var connector = new RadDiagramConnector() { Offset = new Point(0.2, 1) };
connector.Name = "aa" + DateTime.Now.Millisecond;
item.Connectors.Add(connector);
}
}
}
}
PK
OAQT#}
OrgItem.csusing System;
using System.Linq;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
namespace WpfApplication1
{
public class OrgItem : HierarchicalNodeViewModel
{
public OrgItem()
{
}
public string Label { get; set; }
}
}PK
8A{] ]
OrgLink.csusing System;
using System.Linq;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
namespace WpfApplication1
{
///
/// TODO: Update summary.
///
public class OrgLink : LinkViewModelBase
{
public OrgLink(OrgItem source, OrgItem target)
: base(source, target)
{
}
}
}
PK
5NA Properties/PK
5NA. Properties/AssemblyInfo.csusing 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("WpfApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("WpfApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 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
//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")]
PK
5NA Properties/Resources.Designer.cs//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.544
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace WpfApplication1.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("WpfApplication1.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;
}
}
}
}
PK
5NAZtv Properties/Resources.resx
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
PK
5NA7 Properties/Settings.Designer.cs//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.544
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace WpfApplication1.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;
}
}
}
}
PK
5NAڥ! Properties/Settings.settings
PK
OA)!Y Y WpfApplication1.csproj
Debug
x86
8.0.30703
2.0
{FF81B116-53D2-4BD5-B13A-9487D28E8FCD}
WinExe
Properties
WpfApplication1
WpfApplication1
v4.0
Client
512
{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
4
x86
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4
x86
pdbonly
true
bin\Release\
TRACE
prompt
4
4.0
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_WPF_2012_2_0725_Trial_hotfix\Binaries\WPF40\Telerik.Windows.Controls.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_WPF_2012_2_0725_Trial_hotfix\Binaries\WPF40\Telerik.Windows.Controls.Diagrams.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_WPF_2012_2_0725_Trial_hotfix\Binaries\WPF40\Telerik.Windows.Controls.Diagrams.Extensions.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_WPF_2012_2_0725_Trial_hotfix\Binaries\WPF40\Telerik.Windows.Diagrams.Core.dll
MSBuild:Compile
Designer
MSBuild:Compile
Designer
App.xaml
Code
MainWindow.xaml
Code
Code
True
True
Resources.resx
True
Settings.settings
True
ResXFileCodeGenerator
Resources.Designer.cs
SettingsSingleFileGenerator
Settings.Designer.cs
PK
5NAoF F App.xamlPK
5NAXq@+ + l App.xaml.csPK
OAQ GraphSource.csPK
pCAD_F F MainWindow.xamlPK
dAE ; MainWindow.xaml.csPK
OAQT#}
_ OrgItem.csPK
8A{] ]
OrgLink.csPK
5NA Properties/PK
5NA. B Properties/AssemblyInfo.csPK
5NA p Properties/Resources.Designer.csPK
5NAZtv |( Properties/Resources.resxPK
5NA7 > Properties/Settings.Designer.csPK
5NAڥ! B Properties/Settings.settingsPK
OA)!Y Y C WpfApplication1.csprojPK jY