Browse Source

Add a license description in the header of every .cs and .xaml files.

import/raw
Nebuleux_cp 15 years ago
parent
commit
3ca4d06420
  1. 23
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/BusyIndicatorModule.cs
  2. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/NavigationItems/BusyIndicatorNavItem.xaml
  3. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/NavigationItems/BusyIndicatorNavItem.xaml.cs
  4. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Properties/AssemblyInfo.cs
  5. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Resources/Common.xaml
  6. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentTemplateView.xaml
  7. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentTemplateView.xaml.cs
  8. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentView.xaml
  9. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentView.xaml.cs
  10. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml
  11. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml.cs
  12. 27
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/ButtonModule.cs
  13. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/ButtonSpinnerNavItem.xaml
  14. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/ButtonSpinnerNavItem.xaml.cs
  15. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/DropDownButtonNavItem.xaml
  16. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/DropDownButtonNavItem.xaml.cs
  17. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/SplitButtonNavItem.xaml
  18. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/SplitButtonNavItem.xaml.cs
  19. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Properties/AssemblyInfo.cs
  20. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/ButtonSpinnerView.xaml
  21. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/ButtonSpinnerView.xaml.cs
  22. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/DropDownButtonView.xaml
  23. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/DropDownButtonView.xaml.cs
  24. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/SplitButtonView.xaml
  25. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/SplitButtonView.xaml.cs
  26. 27
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/CalculatorModule.cs
  27. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorNavItem.xaml
  28. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorNavItem.xaml.cs
  29. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorUpDownNavItem.xaml
  30. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorUpDownNavItem.xaml.cs
  31. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Properties/AssemblyInfo.cs
  32. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorUpDownView.xaml
  33. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorUpDownView.xaml.cs
  34. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorView.xaml
  35. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorView.xaml.cs
  36. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/ChildWindowModule.cs
  37. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Properties/AssemblyInfo.cs
  38. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml
  39. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml.cs
  40. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/NavigationView.xaml
  41. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/NavigationView.xaml.cs
  42. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/ColorModule.cs
  43. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Properties/AssemblyInfo.cs
  44. 27
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml
  45. 62
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml.cs
  46. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/NavigationView.xaml
  47. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/NavigationView.xaml.cs
  48. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/DateTimeModule.cs
  49. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Properties/AssemblyInfo.cs
  50. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml
  51. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml.cs
  52. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/NavigationView.xaml
  53. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/NavigationView.xaml.cs
  54. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/NumericModule.cs
  55. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Properties/AssemblyInfo.cs
  56. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml
  57. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml.cs
  58. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/NavigationView.xaml
  59. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/NavigationView.xaml.cs
  60. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Properties/AssemblyInfo.cs
  61. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/PropertyGridModule.cs
  62. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Resources/LastNameUserControlEditor.xaml
  63. 32
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Resources/LastNameUserControlEditor.xaml.cs
  64. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/BindingToStructs.xaml
  65. 60
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/BindingToStructs.xaml.cs
  66. 23
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomEditors.xaml
  67. 128
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomEditors.xaml.cs
  68. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomItemsSource.xaml
  69. 56
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomItemsSource.xaml.cs
  70. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DefaultEditors.xaml
  71. 106
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DefaultEditors.xaml.cs
  72. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml
  73. 59
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml.cs
  74. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml
  75. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml.cs
  76. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/NavigationView.xaml
  77. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/NavigationView.xaml.cs
  78. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/SpecifyingProperties.xaml
  79. 110
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/SpecifyingProperties.xaml.cs
  80. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Properties/AssemblyInfo.cs
  81. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/TextModule.cs
  82. 25
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/HomeView.xaml
  83. 48
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/HomeView.xaml.cs
  84. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml
  85. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml.cs
  86. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/WatermarkTextBoxView.xaml
  87. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/WatermarkTextBoxView.xaml.cs
  88. 22
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Properties/AssemblyInfo.cs
  89. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml
  90. 21
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml.cs
  91. 20
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/NavigationView.xaml
  92. 30
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/NavigationView.xaml.cs
  93. 27
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/WizardModule.cs
  94. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Commands/TreeViewCommandBehavior.cs
  95. 19
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Commands/TreeViewSelected.cs
  96. 52
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Controls/DemoView.cs
  97. 27
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Converters/CSharpColorConverter.cs
  98. 24
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Converters/XamlColorConverter.cs
  99. 82
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Core/CodeFormatting/CSharpFormat.cs
  100. 1
      Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Core/CodeFormatting/XamlFormat.cs

23
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/BusyIndicatorModule.cs

@ -1,7 +1,24 @@
using System; /************************************************************************
using Samples.Infrastructure;
using Microsoft.Practices.Unity; 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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.BusyIndicator.NavigationItems; using Samples.Modules.BusyIndicator.NavigationItems;
using Samples.Modules.BusyIndicator.Views; using Samples.Modules.BusyIndicator.Views;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/NavigationItems/BusyIndicatorNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.BusyIndicator.NavigationItems.BusyIndicatorNavItem" <!--*********************************************************************
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.BusyIndicator.NavigationItems.BusyIndicatorNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.BusyIndicator.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.BusyIndicator.NavigationItems"

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/NavigationItems/BusyIndicatorNavItem.xaml.cs

@ -1,4 +1,22 @@
using System; /************************************************************************
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.Controls; using System.Windows.Controls;
namespace Samples.Modules.BusyIndicator.NavigationItems namespace Samples.Modules.BusyIndicator.NavigationItems

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Resources/Common.xaml

@ -1,4 +1,22 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <!--*********************************************************************
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.
********************************************************************-->
<ResourceDictionary 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"
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"> xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended">

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentTemplateView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorCustomContentTemplateView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorCustomContentTemplateView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentTemplateView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.BusyIndicator.Views namespace Samples.Modules.BusyIndicator.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorCustomContentView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorCustomContentView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorCustomContentView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.BusyIndicator.Views namespace Samples.Modules.BusyIndicator.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.BusyIndicator.Views.BusyIndicatorView"
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"
xmlns:local="clr-namespace:Samples.Modules.BusyIndicator.Views" xmlns:local="clr-namespace:Samples.Modules.BusyIndicator.Views"

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml.cs

@ -1,7 +1,25 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions; 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.Data; using System.Windows.Data;
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.BusyIndicator.Views namespace Samples.Modules.BusyIndicator.Views
{ {

27
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/ButtonModule.cs

@ -1,17 +1,36 @@
using System; /************************************************************************
using Samples.Infrastructure;
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.Prism.Regions;
using Microsoft.Practices.Unity; using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.Button.Views;
using Samples.Modules.Button.NavigationItems; using Samples.Modules.Button.NavigationItems;
using Samples.Modules.Button.Views;
namespace Samples.Modules.Button namespace Samples.Modules.Button
{ {
public class ButtonModule : ModuleBase public class ButtonModule : ModuleBase
{ {
public ButtonModule( IUnityContainer container, IRegionManager regionManager ) public ButtonModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/ButtonSpinnerNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Button.NavigationItems.ButtonSpinnerNavItem" <!--*********************************************************************
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.Button.NavigationItems.ButtonSpinnerNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems"

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/ButtonSpinnerNavItem.xaml.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows.Controls;
namespace Samples.Modules.Button.NavigationItems namespace Samples.Modules.Button.NavigationItems

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/DropDownButtonNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Button.NavigationItems.DropDownButtonNavItem" <!--*********************************************************************
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.Button.NavigationItems.DropDownButtonNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems"

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/DropDownButtonNavItem.xaml.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows.Controls;
namespace Samples.Modules.Button.NavigationItems namespace Samples.Modules.Button.NavigationItems

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/SplitButtonNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Button.NavigationItems.SplitButtonNavItem" <!--*********************************************************************
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.Button.NavigationItems.SplitButtonNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.Button.NavigationItems"

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/NavigationItems/SplitButtonNavItem.xaml.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows.Controls;
namespace Samples.Modules.Button.NavigationItems namespace Samples.Modules.Button.NavigationItems

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/ButtonSpinnerView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Button.Views.ButtonSpinnerView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Button.Views.ButtonSpinnerView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -38,7 +56,9 @@
<TextBlock Text="You can wrap any element by placing it inside the content area of the ButtonSpinner control. As an example, lets create our own simple numeric up/down control" <TextBlock Text="You can wrap any element by placing it inside the content area of the ButtonSpinner control. As an example, lets create our own simple numeric up/down control"
TextWrapping="Wrap" /> TextWrapping="Wrap" />
<extToolkit:ButtonSpinner Margin="10" Width="150" HorizontalAlignment="Left" <extToolkit:ButtonSpinner Margin="10"
Width="150"
HorizontalAlignment="Left"
AllowSpin="{Binding IsChecked, ElementName=_allowSpin}" AllowSpin="{Binding IsChecked, ElementName=_allowSpin}"
ShowButtonSpinner="{Binding IsChecked, ElementName=_showButtonSpinner}" ShowButtonSpinner="{Binding IsChecked, ElementName=_showButtonSpinner}"
Spin="ButtonSpinner_Spin"> Spin="ButtonSpinner_Spin">

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/ButtonSpinnerView.xaml.cs

@ -1,8 +1,26 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Controls;
using Microsoft.Practices.Prism.Regions; using Microsoft.Practices.Prism.Regions;
using Microsoft.Windows.Controls; using Microsoft.Windows.Controls;
using System.Windows.Controls; using Samples.Infrastructure.Controls;
namespace Samples.Modules.Button.Views namespace Samples.Modules.Button.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/DropDownButtonView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Button.Views.DropDownButtonView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Button.Views.DropDownButtonView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/DropDownButtonView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Button.Views namespace Samples.Modules.Button.Views
{ {

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/SplitButtonView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Button.Views.SplitButtonView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Button.Views.SplitButtonView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -41,7 +59,6 @@
</StackPanel> </StackPanel>
</extToolkit:SplitButton.DropDownContent> </extToolkit:SplitButton.DropDownContent>
</extToolkit:SplitButton> </extToolkit:SplitButton>
</StackPanel> </StackPanel>
</Grid> </Grid>
</infControls:DemoView> </infControls:DemoView>

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Views/SplitButtonView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Button.Views namespace Samples.Modules.Button.Views
{ {

27
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/CalculatorModule.cs

@ -1,17 +1,36 @@
using System; /************************************************************************
using Samples.Infrastructure;
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.Prism.Regions;
using Microsoft.Practices.Unity; using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.Calculator.Views;
using Samples.Modules.Calculator.NavigationItems; using Samples.Modules.Calculator.NavigationItems;
using Samples.Modules.Calculator.Views;
namespace Samples.Modules.Calculator namespace Samples.Modules.Calculator
{ {
public class CalculatorModule : ModuleBase public class CalculatorModule : ModuleBase
{ {
public CalculatorModule( IUnityContainer container, IRegionManager regionManager ) public CalculatorModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Calculator.NavigationItems.CalculatorNavItem" <!--*********************************************************************
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.Calculator.NavigationItems.CalculatorNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.Calculator.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.Calculator.NavigationItems"

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorNavItem.xaml.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows.Controls;
namespace Samples.Modules.Calculator.NavigationItems namespace Samples.Modules.Calculator.NavigationItems

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorUpDownNavItem.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Calculator.NavigationItems.CalculatorUpDownNavItem" <!--*********************************************************************
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.Calculator.NavigationItems.CalculatorUpDownNavItem"
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"
xmlns:navItems="clr-namespace:Samples.Modules.Calculator.NavigationItems" xmlns:navItems="clr-namespace:Samples.Modules.Calculator.NavigationItems"

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/NavigationItems/CalculatorUpDownNavItem.xaml.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows.Controls;
namespace Samples.Modules.Calculator.NavigationItems namespace Samples.Modules.Calculator.NavigationItems

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorUpDownView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Calculator.Views.CalculatorUpDownView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Calculator.Views.CalculatorUpDownView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorUpDownView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Calculator.Views namespace Samples.Modules.Calculator.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Calculator.Views.CalculatorView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Calculator.Views.CalculatorView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Caclulator/Views/CalculatorView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Calculator.Views namespace Samples.Modules.Calculator.Views
{ {

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/ChildWindowModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.ChildWindow.Views; using Samples.Modules.ChildWindow.Views;
@ -10,7 +27,9 @@ namespace Samples.Modules.ChildWindow
public class ChildWindowModule : ModuleBase public class ChildWindowModule : ModuleBase
{ {
public ChildWindowModule( IUnityContainer container, IRegionManager regionManager ) public ChildWindowModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.ChildWindow.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.ChildWindow.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.ChildWindow.Views namespace Samples.Modules.ChildWindow.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.ChildWindow.Views.NavigationView" <!--*********************************************************************
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.ChildWindow.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.ChildWindow.Views" xmlns:views="clr-namespace:Samples.Modules.ChildWindow.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.ChildWindow.Views namespace Samples.Modules.ChildWindow.Views
{ {

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/ColorModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.Color.Views; using Samples.Modules.Color.Views;
@ -11,7 +28,9 @@ namespace Samples.Modules.Color
public class ColorModule : ModuleBase public class ColorModule : ModuleBase
{ {
public ColorModule( IUnityContainer container, IRegionManager regionManager ) public ColorModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

27
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Color.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Color.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -24,7 +42,9 @@
</DataGrid>--> </DataGrid>-->
<StackPanel> <StackPanel>
<extToolkit:CheckComboBox x:Name="_combo" HorizontalAlignment="Center" VerticalAlignment="Center" <extToolkit:CheckComboBox x:Name="_combo"
HorizontalAlignment="Center"
VerticalAlignment="Center"
DisplayMemberPath="Color" DisplayMemberPath="Color"
ValueMemberPath="Level" ValueMemberPath="Level"
SelectedValue="{Binding SelectedValue}" SelectedValue="{Binding SelectedValue}"
@ -38,7 +58,8 @@
DisplayMemberPath="Color" DisplayMemberPath="Color"
/>--> />-->
<extToolkit:CheckListBox x:Name="_listBox" Height="250" <extToolkit:CheckListBox x:Name="_listBox"
Height="250"
DisplayMemberPath="Color" DisplayMemberPath="Color"
ValueMemberPath="Level" ValueMemberPath="Level"
SelectedMemberPath="IsSelected" SelectedMemberPath="IsSelected"

62
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml.cs

@ -1,9 +1,26 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions; Extended WPF Toolkit
using System.ComponentModel;
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.Collections.Generic; using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.ComponentModel;
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Color.Views namespace Samples.Modules.Color.Views
{ {
@ -34,9 +51,15 @@ namespace Samples.Modules.Color.Views
List<Person> colors = new List<Person>(); List<Person> colors = new List<Person>();
colors.Add( new Person( System.Windows.Media.Colors.Red, 0 ) ); colors.Add( new Person( System.Windows.Media.Colors.Red, 0 ) );
colors.Add(new Person(System.Windows.Media.Colors.Purple, 1) { IsSelected = true }); colors.Add( new Person( System.Windows.Media.Colors.Purple, 1 )
{
IsSelected = true
} );
colors.Add( new Person( System.Windows.Media.Colors.Coral, 2 ) ); colors.Add( new Person( System.Windows.Media.Colors.Coral, 2 ) );
colors.Add(new Person(System.Windows.Media.Colors.MidnightBlue, 3) { IsSelected = true }); colors.Add( new Person( System.Windows.Media.Colors.MidnightBlue, 3 )
{
IsSelected = true
} );
colors.Add( new Person( System.Windows.Media.Colors.Green, 4 ) ); colors.Add( new Person( System.Windows.Media.Colors.Green, 4 ) );
colors.Add( new Person( System.Windows.Media.Colors.Red, 5 ) ); colors.Add( new Person( System.Windows.Media.Colors.Red, 5 ) );
colors.Add( new Person( System.Windows.Media.Colors.Purple, 6 ) ); colors.Add( new Person( System.Windows.Media.Colors.Purple, 6 ) );
@ -88,7 +111,10 @@ namespace Samples.Modules.Color.Views
private ObservableCollection<Person> _selectedItems = new ObservableCollection<Person>(); private ObservableCollection<Person> _selectedItems = new ObservableCollection<Person>();
public ObservableCollection<Person> SelectedItems public ObservableCollection<Person> SelectedItems
{ {
get { return _selectedItems; } get
{
return _selectedItems;
}
set set
{ {
_selectedItems = value; _selectedItems = value;
@ -113,7 +139,10 @@ namespace Samples.Modules.Color.Views
private bool _isSelected; private bool _isSelected;
public bool IsSelected public bool IsSelected
{ {
get { return _isSelected; } get
{
return _isSelected;
}
set set
{ {
_isSelected = value; _isSelected = value;
@ -124,7 +153,10 @@ namespace Samples.Modules.Color.Views
System.Windows.Media.Color _color; System.Windows.Media.Color _color;
public System.Windows.Media.Color Color public System.Windows.Media.Color Color
{ {
get { return _color; } get
{
return _color;
}
set set
{ {
_color = value; _color = value;
@ -135,8 +167,15 @@ namespace Samples.Modules.Color.Views
int _level; int _level;
public int Level public int Level
{ {
get { return _level; } get
set { _level = value; OnPropertyChanged("Level"); } {
return _level;
}
set
{
_level = value;
OnPropertyChanged( "Level" );
}
} }
public Person() public Person()
@ -156,5 +195,4 @@ namespace Samples.Modules.Color.Views
PropertyChanged( this, new PropertyChangedEventArgs( propertyName ) ); PropertyChanged( this, new PropertyChangedEventArgs( propertyName ) );
} }
} }
} }

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Color.Views.NavigationView" <!--*********************************************************************
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.Color.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.Color.Views" xmlns:views="clr-namespace:Samples.Modules.Color.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.Color.Views namespace Samples.Modules.Color.Views
{ {

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/DateTimeModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.DateTime.Views; using Samples.Modules.DateTime.Views;
@ -10,7 +27,9 @@ namespace Samples.Modules.DateTime
public class DateTimeModule : ModuleBase public class DateTimeModule : ModuleBase
{ {
public DateTimeModule( IUnityContainer container, IRegionManager regionManager ) public DateTimeModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.DateTime.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.DateTime.Views.HomeView"
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"
xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.DateTime.Views namespace Samples.Modules.DateTime.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.DateTime.Views.NavigationView" <!--*********************************************************************
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.DateTime.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.DateTime.Views" xmlns:views="clr-namespace:Samples.Modules.DateTime.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.DateTime.Views namespace Samples.Modules.DateTime.Views
{ {

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/NumericModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.Numeric.Views; using Samples.Modules.Numeric.Views;
@ -10,7 +27,9 @@ namespace Samples.Modules.Numeric
public class NumericModule : ModuleBase public class NumericModule : ModuleBase
{ {
public NumericModule( IUnityContainer container, IRegionManager regionManager ) public NumericModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Numeric.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Numeric.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Numeric.Views namespace Samples.Modules.Numeric.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Numeric.Views.NavigationView" <!--*********************************************************************
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.Numeric.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.Numeric.Views" xmlns:views="clr-namespace:Samples.Modules.Numeric.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.Numeric.Views namespace Samples.Modules.Numeric.Views
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/PropertyGridModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.PropertyGrid.Views; using Samples.Modules.PropertyGrid.Views;
@ -10,7 +27,9 @@ namespace Samples.Modules.PropertyGrid
public class PropertyGridModule : ModuleBase public class PropertyGridModule : ModuleBase
{ {
public PropertyGridModule( IUnityContainer container, IRegionManager regionManager ) public PropertyGridModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Resources/LastNameUserControlEditor.xaml

@ -1,4 +1,22 @@
<UserControl x:Class="Samples.Modules.PropertyGrid.LastNameUserControlEditor" <!--*********************************************************************
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.
********************************************************************-->
<UserControl x:Class="Samples.Modules.PropertyGrid.LastNameUserControlEditor"
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"
x:Name="_uc"> x:Name="_uc">

32
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Resources/LastNameUserControlEditor.xaml.cs

@ -1,7 +1,25 @@
using System.Windows; /************************************************************************
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;
using System.Windows.Controls; using System.Windows.Controls;
using Microsoft.Windows.Controls.PropertyGrid.Editors;
using System.Windows.Data; using System.Windows.Data;
using Microsoft.Windows.Controls.PropertyGrid.Editors;
namespace Samples.Modules.PropertyGrid namespace Samples.Modules.PropertyGrid
{ {
@ -18,8 +36,14 @@ namespace Samples.Modules.PropertyGrid
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register( "Value", typeof( string ), typeof( LastNameUserControlEditor ), new FrameworkPropertyMetadata( null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault ) ); public static readonly DependencyProperty ValueProperty = DependencyProperty.Register( "Value", typeof( string ), typeof( LastNameUserControlEditor ), new FrameworkPropertyMetadata( null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault ) );
public string Value public string Value
{ {
get { return (string)GetValue(ValueProperty); } get
set { SetValue(ValueProperty, value); } {
return ( string )GetValue( ValueProperty );
}
set
{
SetValue( ValueProperty, value );
}
} }
private void Button_Click( object sender, RoutedEventArgs e ) private void Button_Click( object sender, RoutedEventArgs e )

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/BindingToStructs.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.BindingToStructs" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.BindingToStructs"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

60
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/BindingToStructs.xaml.cs

@ -1,19 +1,26 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; Copyright (C) 2010-2012 Xceed Software Inc.
using System.Windows.Controls;
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.ComponentModel;
using System.Windows.Data; 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 Samples.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions; using Microsoft.Practices.Prism.Regions;
using System.ComponentModel; using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {
@ -34,21 +41,37 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
public Dimension Dimensions { get; set; } public Dimension Dimensions
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {
var person = new Person(); var person = new Person();
person.FirstName = "John"; person.FirstName = "John";
person.LastName = "Doe"; person.LastName = "Doe";
person.Dimensions = new Dimension() { Height = 75.0, Weight = 185.76 }; person.Dimensions = new Dimension()
{
Height = 75.0,
Weight = 185.76
};
return person; return person;
} }
} }
@ -90,7 +113,6 @@ namespace Samples.Modules.PropertyGrid.Views
_originalValue = new Dimension( _originalValue.Height, double.Parse( value.ToString() ) ); _originalValue = new Dimension( _originalValue.Height, double.Parse( value.ToString() ) );
return _originalValue; return _originalValue;
} }
} }
} }

23
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomEditors.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.CustomEditors" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.CustomEditors"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -25,7 +43,8 @@
<extToolkit:EditorDefinition TargetType="{x:Type HorizontalAlignment}"> <extToolkit:EditorDefinition TargetType="{x:Type HorizontalAlignment}">
<extToolkit:EditorDefinition.EditorTemplate> <extToolkit:EditorDefinition.EditorTemplate>
<DataTemplate> <DataTemplate>
<TextBox Background="Green" Text="{Binding Value}" /> <!-- Always bind your editor's value to the bound property's Value --> <TextBox Background="Green" Text="{Binding Value}" />
<!-- Always bind your editor's value to the bound property's Value -->
</DataTemplate> </DataTemplate>
</extToolkit:EditorDefinition.EditorTemplate> </extToolkit:EditorDefinition.EditorTemplate>
</extToolkit:EditorDefinition> </extToolkit:EditorDefinition>

128
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomEditors.xaml.cs

@ -1,12 +1,30 @@
using Samples.Infrastructure.Controls; /************************************************************************
using System.ComponentModel;
using System.Collections.Generic; 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;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows; using System.Windows;
using System.Windows.Media;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Data; using System.Windows.Data;
using System.Windows.Media;
using Microsoft.Practices.Prism.Regions; using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {
@ -28,63 +46,115 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Date of Birth" )] [DisplayName( "Date of Birth" )]
[Description( "This property uses the DateTimeUpDown as the default editor." )] [Description( "This property uses the DateTimeUpDown as the default editor." )]
public DateTime DateOfBirth { get; set; } public DateTime DateOfBirth
{
get;
set;
}
[DisplayName( "Grade Point Average" )] [DisplayName( "Grade Point Average" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double GradePointAvg { get; set; } public double GradePointAvg
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[Description( "This property uses the IntegerUpDown as the default editor." )] [Description( "This property uses the IntegerUpDown as the default editor." )]
public int Age { get; set; } public int Age
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Is Male" )] [DisplayName( "Is Male" )]
[Description( "This property uses a CheckBox as the default editor." )] [Description( "This property uses a CheckBox as the default editor." )]
public bool IsMale { get; set; } public bool IsMale
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Favorite Color" )] [DisplayName( "Favorite Color" )]
[Description( "This property uses the ColorPicker as the default editor." )] [Description( "This property uses the ColorPicker as the default editor." )]
public Color FavoriteColor { get; set; } public Color FavoriteColor
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Hand" )] [DisplayName( "Writing Hand" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public HorizontalAlignment WritingHand { get; set; } public HorizontalAlignment WritingHand
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font" )] [DisplayName( "Writing Font" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public FontFamily WritingFont { get; set; } public FontFamily WritingFont
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font Size" )] [DisplayName( "Writing Font Size" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double WritingFontSize { get; set; } public double WritingFontSize
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[DisplayName( "Pet Names" )] [DisplayName( "Pet Names" )]
[Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )] [Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )]
public List<String> PetNames { get; set; } public List<String> PetNames
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property uses the CollectionEditor as the default editor." )] [Description( "This property uses the CollectionEditor as the default editor." )]
public List<Person> Friends { get; set; } public List<Person> Friends
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property is a complex property and has no default editor." )] [Description( "This property is a complex property and has no default editor." )]
public Person Spouse { get; set; } public Person Spouse
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {
@ -101,7 +171,11 @@ namespace Samples.Modules.PropertyGrid.Views
person.WritingFontSize = 12.5; person.WritingFontSize = 12.5;
person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" }; person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" };
person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } }; person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } };
person.Spouse = new Person() { FirstName = "Jane", LastName = "Doe" }; person.Spouse = new Person()
{
FirstName = "Jane",
LastName = "Doe"
};
return person; return person;
} }
} }
@ -113,19 +187,31 @@ namespace Samples.Modules.PropertyGrid.Views
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
//This custom editor is a Class that implements the ITypeEditor interface //This custom editor is a Class that implements the ITypeEditor interface
[Editor( typeof( FirstNameEditor ), typeof( FirstNameEditor ) )] [Editor( typeof( FirstNameEditor ), typeof( FirstNameEditor ) )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
//This custom editor is a UserControl that implements the ITypeEditor interface //This custom editor is a UserControl that implements the ITypeEditor interface
[Editor( typeof( LastNameUserControlEditor ), typeof( LastNameUserControlEditor ) )] [Editor( typeof( LastNameUserControlEditor ), typeof( LastNameUserControlEditor ) )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Date of Birth" )] [DisplayName( "Date of Birth" )]
[Description( "This property uses the DateTimeUpDown as the default editor." )] [Description( "This property uses the DateTimeUpDown as the default editor." )]
public DateTime DateOfBirth { get; set; } public DateTime DateOfBirth
{
get;
set;
}
public static CustomAttributEditorPerson CreateCustomAttributEditorPerson() public static CustomAttributEditorPerson CreateCustomAttributEditorPerson()
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomItemsSource.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.CustomItemsSource" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.CustomItemsSource"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

56
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/CustomItemsSource.xaml.cs

@ -1,4 +1,22 @@
using System; /************************************************************************
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.ComponentModel; using System.ComponentModel;
using System.Windows; using System.Windows;
using System.Windows.Media; using System.Windows.Media;
@ -25,33 +43,57 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Date of Birth" )] [DisplayName( "Date of Birth" )]
[Description( "This property uses the DateTimeUpDown as the default editor." )] [Description( "This property uses the DateTimeUpDown as the default editor." )]
public DateTime DateOfBirth { get; set; } public DateTime DateOfBirth
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Hand" )] [DisplayName( "Writing Hand" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public HorizontalAlignment WritingHand { get; set; } public HorizontalAlignment WritingHand
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font" )] [DisplayName( "Writing Font" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public FontFamily WritingFont { get; set; } public FontFamily WritingFont
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font Size" )] [DisplayName( "Writing Font Size" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
[ItemsSource( typeof( FontSizeItemsSource ) )] [ItemsSource( typeof( FontSizeItemsSource ) )]
public double WritingFontSize { get; set; } public double WritingFontSize
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DefaultEditors.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.DefaultEditors" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.DefaultEditors"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

106
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DefaultEditors.xaml.cs

@ -1,10 +1,28 @@
using Samples.Infrastructure.Controls; /************************************************************************
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;
using System.Collections.Generic; using System.Collections.Generic;
using System.Windows.Media;
using System.ComponentModel; using System.ComponentModel;
using System.Windows; using System.Windows;
using System.Windows.Media;
using Microsoft.Practices.Prism.Regions; using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {
@ -25,63 +43,115 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Date of Birth" )] [DisplayName( "Date of Birth" )]
[Description( "This property uses the DateTimeUpDown as the default editor." )] [Description( "This property uses the DateTimeUpDown as the default editor." )]
public DateTime DateOfBirth { get; set; } public DateTime DateOfBirth
{
get;
set;
}
[DisplayName( "Grade Point Average" )] [DisplayName( "Grade Point Average" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double GradePointAvg { get; set; } public double GradePointAvg
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[Description( "This property uses the IntegerUpDown as the default editor." )] [Description( "This property uses the IntegerUpDown as the default editor." )]
public int Age { get; set; } public int Age
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Is Male" )] [DisplayName( "Is Male" )]
[Description( "This property uses a CheckBox as the default editor." )] [Description( "This property uses a CheckBox as the default editor." )]
public bool IsMale { get; set; } public bool IsMale
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Favorite Color" )] [DisplayName( "Favorite Color" )]
[Description( "This property uses the ColorPicker as the default editor." )] [Description( "This property uses the ColorPicker as the default editor." )]
public Color FavoriteColor { get; set; } public Color FavoriteColor
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Hand" )] [DisplayName( "Writing Hand" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public HorizontalAlignment WritingHand { get; set; } public HorizontalAlignment WritingHand
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font" )] [DisplayName( "Writing Font" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public FontFamily WritingFont { get; set; } public FontFamily WritingFont
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font Size" )] [DisplayName( "Writing Font Size" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double WritingFontSize { get; set; } public double WritingFontSize
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[DisplayName( "Pet Names" )] [DisplayName( "Pet Names" )]
[Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )] [Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )]
public List<String> PetNames { get; set; } public List<String> PetNames
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property uses the CollectionEditor as the default editor." )] [Description( "This property uses the CollectionEditor as the default editor." )]
public List<Person> Friends { get; set; } public List<Person> Friends
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property is a complex property and has no default editor." )] [Description( "This property is a complex property and has no default editor." )]
public Person Spouse { get; set; } public Person Spouse
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {
@ -98,7 +168,11 @@ namespace Samples.Modules.PropertyGrid.Views
person.WritingFontSize = 12.5; person.WritingFontSize = 12.5;
person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" }; person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" };
person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } }; person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } };
person.Spouse = new Person() { FirstName = "Jane", LastName = "Doe" }; person.Spouse = new Person()
{
FirstName = "Jane",
LastName = "Doe"
};
return person; return person;
} }
} }

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.ExpandableProperties" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.ExpandableProperties"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

59
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml.cs

@ -1,10 +1,25 @@
using Samples.Infrastructure.Controls; /************************************************************************
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.ComponentModel; using System.ComponentModel;
using System.Collections.Generic;
using System;
using System.Windows.Media; using System.Windows.Media;
using System.Windows;
using Microsoft.Windows.Controls.PropertyGrid.Attributes; using Microsoft.Windows.Controls.PropertyGrid.Attributes;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {
@ -24,28 +39,48 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font" )] [DisplayName( "Writing Font" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public FontFamily WritingFont { get; set; } public FontFamily WritingFont
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font Size" )] [DisplayName( "Writing Font Size" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double WritingFontSize { get; set; } public double WritingFontSize
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property is a complex property and has no default editor." )] [Description( "This property is a complex property and has no default editor." )]
[ExpandableObject] [ExpandableObject]
public Person Spouse { get; set; } public Person Spouse
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {
@ -54,7 +89,11 @@ namespace Samples.Modules.PropertyGrid.Views
person.LastName = "Doe"; person.LastName = "Doe";
person.WritingFont = new FontFamily( "Arial" ); person.WritingFont = new FontFamily( "Arial" );
person.WritingFontSize = 12.5; person.WritingFontSize = 12.5;
person.Spouse = new Person() { FirstName = "Jane", LastName = "Doe" }; person.Spouse = new Person()
{
FirstName = "Jane",
LastName = "Doe"
};
return person; return person;
} }
} }

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -31,7 +49,9 @@
<CheckBox x:Name="_displaySummary" Grid.Column="1" IsChecked="True" VerticalAlignment="Center" Margin="5" ToolTip="Shows/Hides the summary panel of the PropertyGrid." /> <CheckBox x:Name="_displaySummary" Grid.Column="1" IsChecked="True" VerticalAlignment="Center" Margin="5" ToolTip="Shows/Hides the summary panel of the PropertyGrid." />
<TextBlock Text="Filter:" VerticalAlignment="Center" Grid.Row="1" /> <TextBlock Text="Filter:" VerticalAlignment="Center" Grid.Row="1" />
<extToolkit:WatermarkTextBox x:Name="_filter" Grid.Row="1" Grid.Column="1" <extToolkit:WatermarkTextBox x:Name="_filter"
Grid.Row="1"
Grid.Column="1"
Watermark="Search" Watermark="Search"
VerticalAlignment="Center" Margin="5" ToolTip="Filters the properties within the PropertyGrid." /> VerticalAlignment="Center" Margin="5" ToolTip="Filters the properties within the PropertyGrid." />
@ -61,7 +81,6 @@
IsCategorized="{Binding IsChecked, ElementName=_isCategorized, Mode=TwoWay}" IsCategorized="{Binding IsChecked, ElementName=_isCategorized, Mode=TwoWay}"
ShowAdvancedOptions="{Binding IsChecked, ElementName=_showAdvancedOptions}" ShowAdvancedOptions="{Binding IsChecked, ElementName=_showAdvancedOptions}"
SelectedObject="{Binding ElementName=_button}" /> SelectedObject="{Binding ElementName=_button}" />
</Grid> </Grid>
</StackPanel> </StackPanel>
</Grid> </Grid>

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml.cs

@ -1,4 +1,22 @@
using Microsoft.Practices.Prism.Regions; /************************************************************************
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; using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.PropertyGrid.Views.NavigationView" <!--*********************************************************************
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.PropertyGrid.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.PropertyGrid.Views" xmlns:views="clr-namespace:Samples.Modules.PropertyGrid.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/SpecifyingProperties.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.SpecifyingProperties" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.PropertyGrid.Views.SpecifyingProperties"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -16,7 +34,9 @@
<StackPanel Grid.Row="1" Margin="10"> <StackPanel Grid.Row="1" Margin="10">
<TextBlock Text="Specifying Properties:" Style="{StaticResource Header}" /> <TextBlock Text="Specifying Properties:" Style="{StaticResource Header}" />
<extToolkit:PropertyGrid x:Name="_propertyGrid" Width="450" Margin="10" <extToolkit:PropertyGrid x:Name="_propertyGrid"
Width="450"
Margin="10"
AutoGenerateProperties="False"> AutoGenerateProperties="False">
<!-- Only the following properties will be displayed in the PropertyGrid --> <!-- Only the following properties will be displayed in the PropertyGrid -->
<extToolkit:PropertyGrid.PropertyDefinitions> <extToolkit:PropertyGrid.PropertyDefinitions>

110
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/SpecifyingProperties.xaml.cs

@ -1,10 +1,28 @@
using Samples.Infrastructure.Controls; /************************************************************************
using System.ComponentModel;
using System.Collections.Generic; 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;
using System.Windows.Media; using System.Collections.Generic;
using System.ComponentModel;
using System.Windows; using System.Windows;
using System.Windows.Media;
using Microsoft.Practices.Prism.Regions; using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.PropertyGrid.Views namespace Samples.Modules.PropertyGrid.Views
{ {
@ -25,63 +43,115 @@ namespace Samples.Modules.PropertyGrid.Views
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "First Name" )] [DisplayName( "First Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string FirstName { get; set; } public string FirstName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Last Name" )] [DisplayName( "Last Name" )]
[Description( "This property uses a TextBox as the default editor." )] [Description( "This property uses a TextBox as the default editor." )]
public string LastName { get; set; } public string LastName
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Date of Birth" )] [DisplayName( "Date of Birth" )]
[Description( "This property uses the DateTimeUpDown as the default editor." )] [Description( "This property uses the DateTimeUpDown as the default editor." )]
public DateTime DateOfBirth { get; set; } public DateTime DateOfBirth
{
get;
set;
}
[DisplayName( "Grade Point Average" )] [DisplayName( "Grade Point Average" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double GradePointAvg { get; set; } public double GradePointAvg
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[Description( "This property uses the IntegerUpDown as the default editor." )] [Description( "This property uses the IntegerUpDown as the default editor." )]
public int Age { get; set; } public int Age
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Is Male" )] [DisplayName( "Is Male" )]
[Description( "This property uses a CheckBox as the default editor." )] [Description( "This property uses a CheckBox as the default editor." )]
public bool IsMale { get; set; } public bool IsMale
{
get;
set;
}
[Category( "Information" )] [Category( "Information" )]
[DisplayName( "Favorite Color" )] [DisplayName( "Favorite Color" )]
[Description( "This property uses the ColorPicker as the default editor." )] [Description( "This property uses the ColorPicker as the default editor." )]
public Color FavoriteColor { get; set; } public Color FavoriteColor
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Hand" )] [DisplayName( "Writing Hand" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public HorizontalAlignment WritingHand { get; set; } public HorizontalAlignment WritingHand
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font" )] [DisplayName( "Writing Font" )]
[Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )] [Description( "This property uses a ComboBox as the default editor. The ComboBox is auto populated with the enum values" )]
public FontFamily WritingFont { get; set; } public FontFamily WritingFont
{
get;
set;
}
[Category( "Writing" )] [Category( "Writing" )]
[DisplayName( "Writing Font Size" )] [DisplayName( "Writing Font Size" )]
[Description( "This property uses the DoubleUpDown as the default editor." )] [Description( "This property uses the DoubleUpDown as the default editor." )]
public double WritingFontSize { get; set; } public double WritingFontSize
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[DisplayName( "Pet Names" )] [DisplayName( "Pet Names" )]
[Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )] [Description( "This property uses the PrimitiveTypeCollectionEditor as the default editor." )]
public List<String> PetNames { get; set; } public List<String> PetNames
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property uses the CollectionEditor as the default editor." )] [Description( "This property uses the CollectionEditor as the default editor." )]
public List<Person> Friends { get; set; } public List<Person> Friends
{
get;
set;
}
[Category( "Conections" )] [Category( "Conections" )]
[Description( "This property is a complex property and has no default editor." )] [Description( "This property is a complex property and has no default editor." )]
public Person Spouse { get; set; } public Person Spouse
{
get;
set;
}
public static Person CreatePerson() public static Person CreatePerson()
{ {
@ -98,7 +168,11 @@ namespace Samples.Modules.PropertyGrid.Views
person.WritingFontSize = 12.5; person.WritingFontSize = 12.5;
person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" }; person.PetNames = new List<string>() { "Pet 1", "Pet 2", "Pet 3" };
person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } }; person.Friends = new List<Person>() { new Person() { FirstName = "First", LastName = "Friend" }, new Person() { FirstName = "Second", LastName = "Friend" } };
person.Spouse = new Person() { FirstName = "Jane", LastName = "Doe" }; person.Spouse = new Person()
{
FirstName = "Jane",
LastName = "Doe"
};
return person; return person;
} }
} }

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/TextModule.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Microsoft.Practices.Unity;
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.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure; using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; using Samples.Infrastructure.Extensions;
using Samples.Modules.Text.Views; using Samples.Modules.Text.Views;
@ -10,7 +27,9 @@ namespace Samples.Modules.Text
public class TextModule : ModuleBase public class TextModule : ModuleBase
{ {
public TextModule( IUnityContainer container, IRegionManager regionManager ) public TextModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

25
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Text.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Text.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
@ -8,6 +26,9 @@
<extToolkit:TokenizedTextBox x:Name="_textBox" <extToolkit:TokenizedTextBox x:Name="_textBox"
DisplayMemberPath="FullName" DisplayMemberPath="FullName"
SearchMemberPath="FirstName" SearchMemberPath="FirstName"
ValueMemberPath="Id" HorizontalAlignment="Center" VerticalAlignment="Center" Width="250" /> ValueMemberPath="Id"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="250" />
</Grid> </Grid>
</infControls:DemoView> </infControls:DemoView>

48
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/HomeView.xaml.cs

@ -1,7 +1,25 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
using Microsoft.Practices.Prism.Regions; 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.Collections.Generic; using System.Collections.Generic;
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Text.Views namespace Samples.Modules.Text.Views
{ {
@ -25,10 +43,26 @@ namespace Samples.Modules.Text.Views
public class Email public class Email
{ {
public int Id { get; set; } public int Id
public string FirstName { get; set; } {
public string LastName { get; set; } get;
public string EmailAddress { get; set; } set;
}
public string FirstName
{
get;
set;
}
public string LastName
{
get;
set;
}
public string EmailAddress
{
get;
set;
}
public string FullName public string FullName
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Text.Views.NavigationView" <!--*********************************************************************
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.Text.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.Text.Views" xmlns:views="clr-namespace:Samples.Modules.Text.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.Text.Views namespace Samples.Modules.Text.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/WatermarkTextBoxView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Text.Views.WatermarkTextBoxView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Text.Views.WatermarkTextBoxView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/WatermarkTextBoxView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Text.Views namespace Samples.Modules.Text.Views
{ {

22
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Properties/AssemblyInfo.cs

@ -1,6 +1,22 @@
using System.Reflection; /************************************************************************
using System.Resources;
using System.Runtime.CompilerServices; 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.Runtime.InteropServices;
using System.Windows; using System.Windows;

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml

@ -1,4 +1,22 @@
<infControls:DemoView x:Class="Samples.Modules.Wizard.Views.HomeView" <!--*********************************************************************
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.
********************************************************************-->
<infControls:DemoView x:Class="Samples.Modules.Wizard.Views.HomeView"
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"
xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure" xmlns:infControls="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"

21
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml.cs

@ -1,6 +1,23 @@
using System; /************************************************************************
using Samples.Infrastructure.Controls;
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.Prism.Regions;
using Samples.Infrastructure.Controls;
namespace Samples.Modules.Wizard.Views namespace Samples.Modules.Wizard.Views
{ {

20
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/NavigationView.xaml

@ -1,4 +1,22 @@
<TreeViewItem x:Class="Samples.Modules.Wizard.Views.NavigationView" <!--*********************************************************************
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.Wizard.Views.NavigationView"
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"
xmlns:views="clr-namespace:Samples.Modules.Wizard.Views" xmlns:views="clr-namespace:Samples.Modules.Wizard.Views"

30
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/NavigationView.xaml.cs

@ -1,16 +1,22 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows; 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; 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;
namespace Samples.Modules.Wizard.Views namespace Samples.Modules.Wizard.Views
{ {

27
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/WizardModule.cs

@ -1,8 +1,25 @@
using System; /************************************************************************
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions; 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.Prism.Regions;
using Microsoft.Practices.Unity; using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions;
using Samples.Modules.Wizard.Views; using Samples.Modules.Wizard.Views;
namespace Samples.Modules.Wizard namespace Samples.Modules.Wizard
@ -10,7 +27,9 @@ namespace Samples.Modules.Wizard
public class WizardModule : ModuleBase public class WizardModule : ModuleBase
{ {
public WizardModule( IUnityContainer container, IRegionManager regionManager ) public WizardModule( IUnityContainer container, IRegionManager regionManager )
: base(container, regionManager) { } : base( container, regionManager )
{
}
protected override void InitializeModule() protected override void InitializeModule()
{ {

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Commands/TreeViewCommandBehavior.cs

@ -1,7 +1,25 @@
using System; /************************************************************************
using Microsoft.Practices.Prism.Commands;
using System.Windows.Controls; 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; using System.Windows;
using System.Windows.Controls;
using Microsoft.Practices.Prism.Commands;
namespace Samples.Infrastructure.Commands namespace Samples.Infrastructure.Commands
{ {

19
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Commands/TreeViewSelected.cs

@ -1,4 +1,21 @@
using System; /************************************************************************
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; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Input; using System.Windows.Input;

52
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Controls/DemoView.cs

@ -1,7 +1,25 @@
using System; /************************************************************************
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.IO;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.IO;
namespace Samples.Infrastructure.Controls namespace Samples.Infrastructure.Controls
{ {
@ -19,22 +37,40 @@ namespace Samples.Infrastructure.Controls
public static readonly DependencyProperty CSharpTextProperty = DependencyProperty.Register( "CSharpText", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) ); public static readonly DependencyProperty CSharpTextProperty = DependencyProperty.Register( "CSharpText", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) );
public string CSharpText public string CSharpText
{ {
get { return (string)GetValue(CSharpTextProperty); } get
set { SetValue(CSharpTextProperty, value); } {
return ( string )GetValue( CSharpTextProperty );
}
set
{
SetValue( CSharpTextProperty, value );
}
} }
public static readonly DependencyProperty TitleProperty = DependencyProperty.Register( "Title", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) ); public static readonly DependencyProperty TitleProperty = DependencyProperty.Register( "Title", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) );
public string Title public string Title
{ {
get { return (string)GetValue(TitleProperty); } get
set { SetValue(TitleProperty, value); } {
return ( string )GetValue( TitleProperty );
}
set
{
SetValue( TitleProperty, value );
}
} }
public static readonly DependencyProperty XamlTextProperty = DependencyProperty.Register( "XamlText", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) ); public static readonly DependencyProperty XamlTextProperty = DependencyProperty.Register( "XamlText", typeof( string ), typeof( DemoView ), new UIPropertyMetadata( null ) );
public string XamlText public string XamlText
{ {
get { return (string)GetValue(XamlTextProperty); } get
set { SetValue(XamlTextProperty, value); } {
return ( string )GetValue( XamlTextProperty );
}
set
{
SetValue( XamlTextProperty, value );
}
} }
#endregion //Properties #endregion //Properties

27
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Converters/CSharpColorConverter.cs

@ -1,12 +1,27 @@
using System; /************************************************************************
using System.Collections.Generic;
using System.Linq; Extended WPF Toolkit
using System.Text;
using System.Windows.Data; Copyright (C) 2010-2012 Xceed Software Inc.
using Samples.Infrastructure.Core.CodeFormatting;
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.Controls; using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Media; using System.Windows.Media;
using Samples.Infrastructure.Core.CodeFormatting;
namespace Samples.Infrastructure.Converters namespace Samples.Infrastructure.Converters
{ {

24
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Converters/XamlColorConverter.cs

@ -1,9 +1,27 @@
using System; /************************************************************************
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.Collections.Generic; using System.Collections.Generic;
using System.Windows.Controls;
using System.Windows.Data; using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Controls; using System.Windows.Media;
using Samples.Infrastructure.Core.CodeFormatting; using Samples.Infrastructure.Core.CodeFormatting;
namespace Samples.Infrastructure.Converters namespace Samples.Infrastructure.Converters

82
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Core/CodeFormatting/CSharpFormat.cs

@ -22,8 +22,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
using System.IO; using System.IO;
using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Media; using System.Windows.Media;
@ -74,7 +74,10 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </summary> /// </summary>
protected override string CommentRegEx protected override string CommentRegEx
{ {
get { return @"/\*.*?\*/|//.*?(?=\r|\n)"; } get
{
return @"/\*.*?\*/|//.*?(?=\r|\n)";
}
} }
/// <summary> /// <summary>
@ -82,7 +85,10 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </summary> /// </summary>
protected override string StringRegEx protected override string StringRegEx
{ {
get { return @"@?""""|@?"".*?(?!\\).""|''|'.*?(?!\\).'"; } get
{
return @"@?""""|@?"".*?(?!\\).""|''|'.*?(?!\\).'";
}
} }
} }
@ -112,7 +118,10 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </remarks> /// </remarks>
protected virtual string Preprocessors protected virtual string Preprocessors
{ {
get { return ""; } get
{
return "";
}
} }
/// <summary> /// <summary>
@ -144,7 +153,10 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </remarks> /// </remarks>
public virtual bool CaseSensitive public virtual bool CaseSensitive
{ {
get { return true; } get
{
return true;
}
} }
/// <summary/> /// <summary/>
@ -277,8 +289,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// derived class.</value> /// derived class.</value>
public byte TabSpaces public byte TabSpaces
{ {
get { return _tabSpaces; } get
set { _tabSpaces = value; } {
return _tabSpaces;
}
set
{
_tabSpaces = value;
}
} }
private bool _lineNumbers; private bool _lineNumbers;
@ -290,8 +308,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// The default is <b>false</b>.</value> /// The default is <b>false</b>.</value>
public bool LineNumbers public bool LineNumbers
{ {
get { return _lineNumbers; } get
set { _lineNumbers = value; } {
return _lineNumbers;
}
set
{
_lineNumbers = value;
}
} }
private bool _alternate; private bool _alternate;
@ -303,8 +327,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// The default is <b>false</b>.</value> /// The default is <b>false</b>.</value>
public bool Alternate public bool Alternate
{ {
get { return _alternate; } get
set { _alternate = value; } {
return _alternate;
}
set
{
_alternate = value;
}
} }
private bool _embedStyleSheet; private bool _embedStyleSheet;
@ -316,8 +346,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// in the HTML output. The default is <b>false</b>.</value> /// in the HTML output. The default is <b>false</b>.</value>
public bool EmbedStyleSheet public bool EmbedStyleSheet
{ {
get { return _embedStyleSheet; } get
set { _embedStyleSheet = value; } {
return _embedStyleSheet;
}
set
{
_embedStyleSheet = value;
}
} }
/// <summary> /// <summary>
@ -336,8 +372,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </summary> /// </summary>
protected Regex CodeRegex protected Regex CodeRegex
{ {
get { return codeRegex; } get
set { codeRegex = value; } {
return codeRegex;
}
set
{
codeRegex = value;
}
} }
private List<Run> codeParagraphGlobal; private List<Run> codeParagraphGlobal;
@ -346,8 +388,14 @@ namespace Samples.Infrastructure.Core.CodeFormatting
/// </summary> /// </summary>
protected List<Run> CodeParagraphGlobal protected List<Run> CodeParagraphGlobal
{ {
get { return codeParagraphGlobal; } get
set { codeParagraphGlobal = value; } {
return codeParagraphGlobal;
}
set
{
codeParagraphGlobal = value;
}
} }
/// <summary> /// <summary>

1
Main/Source/ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Core/CodeFormatting/XamlFormat.cs

@ -1,7 +1,6 @@
//Author: Nick Kramer [MSFT] //Author: Nick Kramer [MSFT]
//Source: http://blogs.msdn.com/b/nickkramer/archive/2006/09/22/766934.aspx //Source: http://blogs.msdn.com/b/nickkramer/archive/2006/09/22/766934.aspx
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save