Browse Source

Version 1.9

pull/1645/head
emartin_cp 13 years ago
parent
commit
0d9a63a7d2
  1. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Samples.Modules.BusyIndicator.csproj
  2. 2
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml
  3. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Samples.Modules.Button.csproj
  4. 27
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Converters/FormatStringToVisibilityConverter.cs
  5. 5
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Samples.Modules.Calculator.csproj
  6. 40
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Views/CalculatorUpDownView.xaml
  7. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.CheckLists/Samples.Modules.CheckLists.csproj
  8. 47
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.CheckLists/Views/HomeView.xaml
  9. 27
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Converters/IntToBoolConverter.cs
  10. 5
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Samples.Modules.ChildWindow.csproj
  11. 19
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml
  12. 2
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml.cs
  13. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Samples.Modules.Color.csproj
  14. 18
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml
  15. 5
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/Samples.Modules.DataGrid.csproj
  16. 60
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/UniqueIDCellValidationRule.cs
  17. 11
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/Views/HomeView.xaml
  18. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Samples.Modules.DateTime.csproj
  19. 64
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml
  20. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Magnifier/Samples.Modules.Magnifier.csproj
  21. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Magnifier/Views/HomeView.xaml
  22. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.MessageBox/Samples.Modules.MessageBox.csproj
  23. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Samples.Modules.Numeric.csproj
  24. 147
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml
  25. 32
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml.cs
  26. 29
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Converters/ComboBoxToVisibilityConverter.cs
  27. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/AnimatedTimelinePanel.jpg
  28. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/AutoStretchStackPanel.jpg
  29. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/CameraPanel.jpg
  30. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Canvas.jpg
  31. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Carousel.jpg
  32. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/DockPanel.jpg
  33. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Grid.jpg
  34. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/PerspectivePanel.jpg
  35. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/RadialCanvas.jpg
  36. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/RelativeCanvas.jpg
  37. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/StackPanel.jpg
  38. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/StackedStackPanel.jpg
  39. 45
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/PanelsModule.cs
  40. 55
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Properties/AssemblyInfo.cs
  41. 119
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Samples.Modules.Panels.csproj
  42. 30
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelNavItem.xaml
  43. 34
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelNavItem.xaml.cs
  44. 341
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelView.xaml
  45. 206
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelView.xaml.cs
  46. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Pie/Samples.Modules.Pie.csproj
  47. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Samples.Modules.PropertyGrid.csproj
  48. 2
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DisplayLocalizationRes.fr.resx
  49. 2
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DisplayLocalizationRes.resx
  50. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml.cs
  51. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml
  52. 10
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Samples.Modules.Text.csproj
  53. 3
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MaskedTextBoxView.xaml
  54. 0
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditorView.xaml
  55. 8
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditorView.xaml.cs
  56. 5
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml
  57. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPicture.png
  58. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureA.jpg
  59. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureB.jpg
  60. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureC.jpg
  61. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureD.jpg
  62. BIN
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/Working.png
  63. 72
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Properties/AssemblyInfo.cs
  64. 134
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Samples.Modules.Themes.csproj
  65. 45
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/ThemesModule.cs
  66. 34
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/HomeView.xaml
  67. 55
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/HomeView.xaml.cs
  68. 30
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/NavigationView.xaml
  69. 34
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/NavigationView.xaml.cs
  70. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.TimelinePanel/Samples.Modules.TimelinePanel.csproj
  71. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Samples.Modules.Wizard.csproj
  72. 42
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml
  73. 32
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml.cs
  74. 4
      ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Zoombox/Samples.Modules.Zoombox.csproj
  75. 17
      ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Controls/DemoView.cs
  76. 2
      ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Themes/Generic.xaml
  77. 2
      ExtendedWPFToolkitSolution/Src/Samples/Samples/App.config
  78. 9
      ExtendedWPFToolkitSolution/Src/Samples/Samples/Resources/TextBlockStyles.xaml
  79. 19
      ExtendedWPFToolkitSolution/Src/Samples/Samples/Resources/TreeViewStyles.xaml
  80. 4
      ExtendedWPFToolkitSolution/Src/Samples/Samples/Samples.csproj
  81. 2
      ExtendedWPFToolkitSolution/Src/Samples/Samples/Shell.xaml
  82. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/EmptyDataItem.cs
  83. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualList.cs
  84. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualListEnumerator.cs
  85. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualListTableOfContent.cs
  86. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualPage.cs
  87. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualPageManager.cs
  88. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualizedItemInfo.cs
  89. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualizedItemValueCollection.cs
  90. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(ForeignKeys)/DataGridForeignKeyDescription.cs
  91. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(ForeignKeys)/DataTableForeignKeyDescription.cs
  92. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncCommitInfo.cs
  93. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncQueryInfo.cs
  94. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncQueryInfoWeakComparer.cs
  95. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AutoFilterValuesChangedEventArgs.cs
  96. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/BindingPathValueExtractor.cs
  97. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CollectionViewGroupExtensions.cs
  98. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CommitItemsEvent.cs
  99. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CustomDistinctValueItemConfiguration.cs
  100. 9
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CustomDistinctValueItemConfigurationCollection.cs

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Samples.Modules.BusyIndicator.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

2
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.BusyIndicator/Views/BusyIndicatorView.xaml

@ -58,7 +58,7 @@
<TextBlock Text="DisplayAfter:" Grid.Row="1" VerticalAlignment="Center" Margin="2" />
<StackPanel Grid.Row="1" Grid.Column="1" Margin="5" HorizontalAlignment="Left" Orientation="Horizontal">
<xctk:IntegerUpDown x:Name="_displayAfter" Width="65" VerticalAlignment="Center" Minimum="0" Increment="100" Value="0" ToolTip="Sets the TimeSpan to wait until the BusyIndicator is displayed." />
<xctk:IntegerUpDown x:Name="_displayAfter" Width="65" VerticalAlignment="Center" Minimum="0" Increment="100" Text="0" DefaultValue="0" ToolTip="Sets the TimeSpan to wait until the BusyIndicator is displayed." />
<TextBlock Text="milliseconds" Margin="5,0" VerticalAlignment="Center" />
</StackPanel>
</Grid>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Button/Samples.Modules.Button.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

27
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Converters/FormatStringToVisibilityConverter.cs

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Globalization;
using System.Windows;
namespace Samples.Modules.Calculator.Converters
{
class FormatStringToVisibilityConverter : IValueConverter
{
public object Convert( object value, Type targetType, object parameter, CultureInfo culture )
{
//When FormatString received is empty, make the Precision property Visible.
//This is to prevent something like this: Precision = "5" AND FormatString = "C2".
if( string.IsNullOrEmpty( ( string )value ) )
return Visibility.Visible;
return Visibility.Hidden;
}
public object ConvertBack( object value, Type targetType, object parameter, CultureInfo culture )
{
throw new NotImplementedException();
}
}
}

5
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Samples.Modules.Calculator.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>
@ -66,6 +66,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CalculatorModule.cs" />
<Compile Include="Converters\FormatStringToVisibilityConverter.cs" />
<Compile Include="NavigationItems\CalculatorNavItem.xaml.cs">
<DependentUpon>CalculatorNavItem.xaml</DependentUpon>
</Compile>

40
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Calculator/Views/CalculatorUpDownView.xaml

@ -22,8 +22,13 @@
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="CalculatorUpDown"
xmlns:conv="clr-namespace:Samples.Modules.Calculator.Converters"
Description="The CalculatorUpDown provides a TextBox with button spinners that allow incrementing and decrementing numeric values by using the spinner buttons, keyboard up/down arrows, or mouse wheel. It also provides a Calculator dropdown which allows you to perform mathematical calculations.">
<Grid>
<sample:DemoView.Resources>
<conv:FormatStringToVisibilityConverter x:Key="formatStringToVisibilityConverter" />
</sample:DemoView.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
@ -35,6 +40,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
@ -42,21 +48,26 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Precision: " VerticalAlignment="Center" />
<xctk:IntegerUpDown x:Name="_precision" Grid.Column="1" Width="75" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Minimum="0" Value="2" ToolTip="Gets/Sets the maximum number of digits displayed to the right of the decimal point." />
<TextBlock Text="FormatString:" Grid.Row="1" VerticalAlignment="Center" />
<ComboBox x:Name="_formatString" SelectedIndex="0" Grid.Row="1" Grid.Column="1" Width="150" Margin="5">
<ComboBoxItem Tag="C2">Currency</ComboBoxItem>
<ComboBoxItem Tag="F2">Fixed Point</ComboBoxItem>
<TextBlock Text="Enter Closes Calculator:" VerticalAlignment="Center" />
<CheckBox x:Name="_enterClosesCalculator" Grid.Column="1" VerticalAlignment="Center" Margin="5" />
<TextBlock Text="Watermark:" Grid.Row="1" VerticalAlignment="Center" />
<TextBox x:Name="_watermark" Grid.Row="1" Grid.Column="1" Width="150" Margin="5" Text="Enter Value" />
<TextBlock Text="FormatString:" Grid.Row="2" VerticalAlignment="Center" />
<ComboBox x:Name="_formatString" SelectedIndex="0" Grid.Row="2" Grid.Column="1" Width="150" Margin="5">
<ComboBoxItem Tag="">None</ComboBoxItem>
<ComboBoxItem Tag="C">Currency</ComboBoxItem>
<ComboBoxItem Tag="F">Fixed Point</ComboBoxItem>
<ComboBoxItem Tag="G">General</ComboBoxItem>
<ComboBoxItem Tag="N">Number</ComboBoxItem>
<ComboBoxItem Tag="P2">Percent</ComboBoxItem>
<ComboBoxItem Tag="P">Percent</ComboBoxItem>
</ComboBox>
<TextBlock Text="Watermakr:" Grid.Row="2" VerticalAlignment="Center" />
<TextBox x:Name="_watermark" Grid.Row="2" Grid.Column="1" Width="150" Margin="5" Text="Enter Value" />
<TextBlock Grid.Column="2" Text="Increment" VerticalAlignment="Center" />
<TextBlock Grid.Column="2" Grid.Row="1" Text="Minimum" VerticalAlignment="Center" />
<TextBlock Grid.Column="2" Grid.Row="2" Text="Maximum" VerticalAlignment="Center" />
<TextBlock Text="Precision: " Grid.Row="3" VerticalAlignment="Center" Visibility="{Binding SelectedItem.Tag, ElementName=_formatString, Converter={StaticResource formatStringToVisibilityConverter}}" />
<xctk:IntegerUpDown x:Name="_precision" Grid.Row="3" Grid.Column="1" Width="75" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Minimum="0" Value="2" Visibility="{Binding SelectedItem.Tag, ElementName=_formatString, Converter={StaticResource formatStringToVisibilityConverter}}" ToolTip="Gets/Sets the maximum number of digits displayed to the right of the decimal point." />
<TextBlock Grid.Column="2" Text="Increment:" VerticalAlignment="Center" Margin="20,0,0,0"/>
<TextBlock Grid.Column="2" Grid.Row="1" Text="Minimum:" VerticalAlignment="Center" Margin="20,0,0,0"/>
<TextBlock Grid.Column="2" Grid.Row="2" Text="Maximum:" VerticalAlignment="Center" Margin="20,0,0,0"/>
<xctk:IntegerUpDown Grid.Column="3" Name="_increment" Minimum="0" Value="1" VerticalAlignment="Center" Margin="5" Width="150" />
<xctk:IntegerUpDown Grid.Column="3" Grid.Row="1" Name="_minimum" Value="-100" VerticalAlignment="Center" Margin="5" Width="150" />
<xctk:IntegerUpDown Grid.Column="3" Grid.Row="2" Name="_maximum" Value="5000" VerticalAlignment="Center" Margin="5" Width="150" />
@ -71,7 +82,8 @@
Minimum="{Binding Value, ElementName=_minimum}"
Precision="{Binding Value, ElementName=_precision}"
FormatString="{Binding SelectedItem.Tag, ElementName=_formatString}"
Watermark="{Binding Text, ElementName=_watermark}" />
Watermark="{Binding Text, ElementName=_watermark}"
EnterClosesCalculator="{Binding IsChecked, ElementName=_enterClosesCalculator}"/>
</StackPanel>
</Grid>
</sample:DemoView>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.CheckLists/Samples.Modules.CheckLists.csproj

@ -40,9 +40,9 @@
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

47
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.CheckLists/Views/HomeView.xaml

@ -46,17 +46,18 @@
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0"
Text="Delimiter:"
Margin="2"/>
Margin="5"/>
<TextBox x:Name="_delimiter"
Grid.Row="0" Grid.Column="1"
Margin="5"
@ -65,7 +66,7 @@
<TextBlock Grid.Row="1" Grid.Column="0"
Text="ValueMemberPath:"
Margin="2"/>
Margin="5"/>
<ComboBox x:Name="_valueMemberPath"
Grid.Row="1" Grid.Column="1"
HorizontalAlignment="Stretch"
@ -75,7 +76,7 @@
<TextBlock Grid.Row="2" Grid.Column="0"
Text="SelectedValue:"
Margin="2"/>
Margin="5"/>
<TextBox x:Name="_selectedValue"
Grid.Row="2" Grid.Column="1"
Margin="5"
@ -84,7 +85,7 @@
<TextBlock Grid.Row="0" Grid.Column="2"
Text="SelectedMemberPath:"
Margin="2"/>
Margin="5"/>
<TextBox x:Name="_selectedMemberPath"
Grid.Row="0" Grid.Column="3"
Margin="5"
@ -94,7 +95,7 @@
<TextBlock Grid.Row="1" Grid.Column="2"
Text="DisplayMemberPath:"
Margin="2"/>
Margin="5"/>
<ComboBox x:Name="_displayMemberPath"
Grid.Row="1" Grid.Column="3"
Margin="5"
@ -103,14 +104,30 @@
SelectedIndex="1"/>
<TextBlock Grid.Row="2" Grid.Column="2"
Text="IsDropDownOpen:"
Margin="2"/>
Margin="5"/>
<CheckBox x:Name="_isDropDownOpen"
Grid.Row="2" Grid.Column="3"
Margin="5"
HorizontalAlignment="Stretch"
Content="(CheckListBox only)"
Content="(CheckComboBox only)"
ClickMode="Press"
IsChecked="false" />
IsChecked="{Binding IsDropDownOpen, ElementName=_checkComboBox}" />
<TextBlock Grid.Row="3" Grid.Column="2"
Text="MaxDropDownHeight:"
Margin="5"/>
<StackPanel Orientation="Horizontal"
Grid.Row="3" Grid.Column="3"
HorizontalAlignment="Stretch"
Margin="5">
<xctk:DoubleUpDown x:Name="_maxDropDownHeight"
Width="45"
Value="{Binding MaxDropDownHeight, ElementName=_checkComboBox}"
DefaultValue="150"
AllowInputSpecialValues="PositiveInfinity"
Minimum="0"/>
<TextBlock Text="(CheckComboBox only)"
Margin="4"/>
</StackPanel>
</Grid>
</GroupBox>
@ -143,6 +160,7 @@
<TextBlock Text="CheckComboBox Usage:" Grid.Column="1" Margin="5" Style="{StaticResource Header}"/>
<xctk:CheckComboBox Grid.Column="1"
x:Name="_checkComboBox"
Grid.Row="1"
Margin="5"
VerticalAlignment="Top"
@ -151,7 +169,8 @@
ValueMemberPath="{Binding ElementName=_valueMemberPath, Path=SelectedItem}"
SelectedMemberPath="{Binding ElementName=_selectedMemberPath, Path=Text}"
DisplayMemberPath="{Binding ElementName=_displayMemberPath, Path=SelectedItem}"
IsDropDownOpen="{Binding ElementName=_isDropDownOpen, Path=IsChecked, Mode=TwoWay}" />
</Grid>
IsDropDownOpen="false"
MaxDropDownHeight="100"/>
</Grid>
</Grid>
</sample:DemoView>

27
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Converters/IntToBoolConverter.cs

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Globalization;
namespace Samples.Modules.ChildWindow.Converters
{
class IntToBoolConverter : IValueConverter
{
public object Convert( object value, Type targetType, object parameter, CultureInfo culture )
{
int intReceived = (int)value;
if( intReceived == 1 )
return false;
else
return true;
}
public object ConvertBack( object value, Type targetType, object parameter, CultureInfo culture )
{
throw new NotImplementedException();
}
}
}

5
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Samples.Modules.ChildWindow.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>
@ -76,6 +76,7 @@
<DependentUpon>NavigationView.xaml</DependentUpon>
</Compile>
<AppDesigner Include="Properties\" />
<Compile Include="Converters\IntToBoolConverter.cs" />
</ItemGroup>
<ItemGroup>
<Page Include="Views\HomeView.xaml">

19
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml

@ -22,10 +22,13 @@
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:conv="clr-namespace:Samples.Modules.ChildWindow.Converters"
Title="ChildWindow"
Description="The ChildWindow can be used to create a window that is displayed within the bounds of a specific parent container.">
<sample:DemoView.Resources>
<conv:IntToBoolConverter x:Key="IntToBoolConverter" />
<ObjectDataProvider x:Key="WindowStates" MethodName="GetValues"
ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
@ -64,26 +67,26 @@
<TextBox Name="_txtCaption" Grid.Column="1" Margin="5" Text="ChildWindow" VerticalAlignment="Center" />
<TextBlock Grid.Row="1" Name="textBlock2" Text="Left:" Margin="2" VerticalAlignment="Center" />
<xctk:DoubleUpDown x:Name="_txtLeft" Grid.Column="1" Grid.Row="1" Value="0" VerticalAlignment="Center" Margin="5" />
<xctk:DoubleUpDown x:Name="_txtLeft" Grid.Column="1" Grid.Row="1" Value="0" Minimum="0" VerticalAlignment="Center" Margin="5" IsEnabled="{Binding SelectedIndex, ElementName=_cboWindowStartupLocations}"/>
<TextBlock Grid.Row="2" Name="textBlock3" Text="Top:" Margin="2" VerticalAlignment="Center" />
<xctk:DoubleUpDown x:Name="_txtTop" Grid.Column="1" Grid.Row="2" Value="0" VerticalAlignment="Center" Margin="5" />
<xctk:DoubleUpDown x:Name="_txtTop" Grid.Column="1" Grid.Row="2" Value="0" Minimum="0" VerticalAlignment="Center" Margin="5" IsEnabled="{Binding SelectedIndex, ElementName=_cboWindowStartupLocations}"/>
<TextBlock Text="IsModal:" VerticalAlignment="Center" Margin="2" Grid.Column="2" />
<CheckBox x:Name="_chkIsModal" Grid.Column="3" VerticalAlignment="Center" Margin="5" IsChecked="True" />
<TextBlock Grid.Row="1" Text="WindowState:" VerticalAlignment="Center" Margin="2" Grid.Column="2" />
<ComboBox Grid.Column="3" Grid.Row="1" Name="_cboWindowState" ItemsSource="{Binding Source={StaticResource WindowStates}}" SelectedIndex="1" VerticalAlignment="Center" Margin="5" />
<TextBlock Grid.Row="1" Text="WindowStartupLocation:" VerticalAlignment="Center" Margin="2" Grid.Column="2" />
<ComboBox Grid.Column="3" Grid.Row="1" Name="_cboWindowStartupLocations" ItemsSource="{Binding Source={StaticResource WindowStartupLocations}}" SelectedIndex="1" VerticalAlignment="Center" Margin="5" IsEnabled="{Binding SelectedIndex, ElementName=_cboWindowState, Converter={StaticResource IntToBoolConverter}}"/>
<TextBlock Grid.Row="2" Text="WindowStartupLocation:" VerticalAlignment="Center" Margin="2" Grid.Column="2" />
<ComboBox Grid.Column="3" Grid.Row="2" Name="_cboWindowStartupLocations" ItemsSource="{Binding Source={StaticResource WindowStartupLocations}}" SelectedIndex="0" VerticalAlignment="Center" Margin="5" />
<TextBlock Grid.Row="2" Text="WindowState:" VerticalAlignment="Center" Margin="2" Grid.Column="2" />
<ComboBox Grid.Column="3" Grid.Row="2" Name="_cboWindowState" ItemsSource="{Binding Source={StaticResource WindowStates}}" SelectedIndex="1" VerticalAlignment="Center" Margin="5" />
</Grid>
</GroupBox>
<Grid Grid.Row="1" Margin="10">
<xctk:ChildWindow Width="350"
<xctk:ChildWindow x:Name="_childWindow"
Width="350"
Caption="{Binding Text, ElementName=_txtCaption}"
IsModal="{Binding IsChecked, ElementName=_chkIsModal}"
Left="{Binding Value, ElementName=_txtLeft, Mode=TwoWay}"

2
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.ChildWindow/Views/HomeView.xaml.cs

@ -19,6 +19,8 @@
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
using System.Windows.Controls;
using Xceed.Wpf.Toolkit;
namespace Samples.Modules.ChildWindow.Views
{

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Samples.Modules.Color.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

18
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Color/Views/HomeView.xaml

@ -23,6 +23,16 @@
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Color Controls"
Description="The ColorCanvas and ColorPicker controls allow the user to input a color. Not shown in the sample are the ColorPicker's Available, Standard and Recent color lists, which are entirely customizable.">
<sample:DemoView.Resources>
<Style x:Key="controlInError" TargetType="xctk:IntegerUpDown">
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self},
Path=(Validation.Errors).CurrentItem.ErrorContent}" />
</Trigger>
</Style.Triggers>
</Style>
</sample:DemoView.Resources>
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
@ -68,13 +78,13 @@
HorizontalAlignment="Stretch"
Orientation="Horizontal" >
<TextBlock Text="R:"/>
<xctk:IntegerUpDown x:Name="_R" Value="{Binding ElementName=_colorCanvas, Path=R, Mode=TwoWay}" />
<xctk:IntegerUpDown x:Name="_R" Value="{Binding ElementName=_colorCanvas, Path=R, Mode=TwoWay}" Minimum="0" Maximum="255" Style="{StaticResource controlInError}"/>
<TextBlock Text="G:" Margin="5"/>
<xctk:IntegerUpDown x:Name="_G" Value="{Binding ElementName=_colorCanvas, Path=G, Mode=TwoWay}"/>
<xctk:IntegerUpDown x:Name="_G" Value="{Binding ElementName=_colorCanvas, Path=G, Mode=TwoWay}" Minimum="0" Maximum="255" Style="{StaticResource controlInError}"/>
<TextBlock Text="B:" Margin="5"/>
<xctk:IntegerUpDown x:Name="_B" Value="{Binding ElementName=_colorCanvas, Path=B, Mode=TwoWay}"/>
<xctk:IntegerUpDown x:Name="_B" Value="{Binding ElementName=_colorCanvas, Path=B, Mode=TwoWay}" Minimum="0" Maximum="255" Style="{StaticResource controlInError}"/>
<TextBlock Text="A:" Margin="5"/>
<xctk:IntegerUpDown x:Name="_A" Value="{Binding ElementName=_colorCanvas, Path=A, Mode=TwoWay}"/>
<xctk:IntegerUpDown x:Name="_A" Value="{Binding ElementName=_colorCanvas, Path=A, Mode=TwoWay}" Minimum="0" Maximum="255" Style="{StaticResource controlInError}"/>
</StackPanel>
<TextBlock Grid.Column="0" Grid.Row="1" Text="UsingAlphaChannel: " />

5
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/Samples.Modules.DataGrid.csproj

@ -61,6 +61,7 @@
<Compile Include="DataGridModule.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="UniqueIDCellValidationRule.cs" />
<Compile Include="Views\FullVersion.xaml.cs">
<DependentUpon>FullVersion.xaml</DependentUpon>
</Compile>
@ -78,6 +79,10 @@
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Xceed.Wpf.DataGrid\Xceed.Wpf.DataGrid.csproj">
<Project>{63648392-6CE9-4A60-96D4-F9FD718D29B0}</Project>
<Name>Xceed.Wpf.DataGrid</Name>

60
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/UniqueIDCellValidationRule.cs

@ -0,0 +1,60 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.Linq;
using System.Text;
using Xceed.Wpf.DataGrid.ValidationRules;
using System.Windows.Controls;
using System.Globalization;
using Xceed.Wpf.DataGrid;
using System.Data;
namespace Samples.Modules.DataGrid
{
public class UniqueIDCellValidationRule : CellValidationRule
{
public UniqueIDCellValidationRule()
{
}
public override ValidationResult Validate( object value, CultureInfo culture, CellValidationContext context )
{
// Get the DataItem from the context and cast it to a DataRow
DataRowView dataRowView = context.DataItem as DataRowView;
// Convert the value to a long to make sure it is numerical.
// When the value is not numerical, then an InvalidFormatException will be thrown.
// We let it pass unhandled to demonstrate that an exception can be thrown when validating
// and the grid will handle it nicely.
long id = Convert.ToInt64( value, CultureInfo.CurrentCulture );
// Try to find another row with the same ID
System.Data.DataRow[] existingRows = dataRowView.Row.Table.Select( context.Cell.FieldName + "=" + id.ToString( CultureInfo.InvariantCulture ) );
// If a row is found, we return an error
if( ( existingRows.Length != 0 ) && ( existingRows[ 0 ] != dataRowView.Row ) )
return new ValidationResult( false, "The value must be unique" );
// If no row was found, we return a ValidResult
return ValidationResult.ValidResult;
}
}
}

11
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DataGrid/Views/HomeView.xaml

@ -23,6 +23,7 @@
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
xmlns:compModel="clr-namespace:System.ComponentModel;assembly=WindowsBase"
xmlns:local="clr-namespace:Samples.Modules.DataGrid"
Title="DataGrid"
x:Name="_demo">
<sample:DemoView.Description>
@ -50,6 +51,16 @@ Note: The datagrid included in Xceed Extended WPF Toolkit Plus contains a subset
<xcdg:DataGridControl.View>
<xcdg:TableflowView FixedColumnCount="2" />
</xcdg:DataGridControl.View>
<xcdg:DataGridControl.Columns>
<!--Preconfigure the OrderID Column of the grid with CellValidationRule. -->
<xcdg:Column FieldName="OrderID"
IsMainColumn="True">
<xcdg:Column.CellValidationRules>
<local:UniqueIDCellValidationRule />
</xcdg:Column.CellValidationRules>
</xcdg:Column>
</xcdg:DataGridControl.Columns>
</xcdg:DataGridControl>
</Grid>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Samples.Modules.DateTime.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

64
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.DateTime/Views/HomeView.xaml

@ -34,7 +34,12 @@
<x:Type TypeName="xctk:TimeFormat"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</sample:DemoView.Resources>
<ObjectDataProvider x:Key="enumDateFormatData" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="xctk:DateTimeFormat"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</sample:DemoView.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@ -45,34 +50,47 @@
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<GroupBox Header="Features" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<GroupBox Header="Features" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
Orientation="Horizontal" >
<TextBlock Text="TimeFormat:" VerticalAlignment="Center" />
<ComboBox x:Name="_timeFormat" SelectedIndex="1" Grid.Column="1" ItemsSource="{Binding Source={StaticResource enumTimeFormatData}}" Width="100" Margin="5"/>
<TextBlock Text="TimeWatermark:" VerticalAlignment="Center"/>
<TextBox x:Name="_timeWatermark" Grid.Row="1" Grid.Column="1" Text="Enter Text" Width="100" VerticalAlignment="Center" Margin="5"/>
</StackPanel>
</Grid>
</GroupBox>
<TextBlock Text="Format:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" />
<ComboBox x:Name="_format" Grid.Row="0" Grid.Column="1" SelectedIndex="1" ItemsSource="{Binding Source={StaticResource enumDateFormatData}}" Width="200" Margin="5,5,25,5"/>
<TextBlock Text="FormatString:" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" />
<TextBox x:Name="_formatString" Grid.Row="1" Grid.Column="1" Text="yy MMM dd" Width="200" Margin="5,5,25,5"/>
<TextBlock Text="Watermark:" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"/>
<TextBox x:Name="_watermark" Grid.Row="2" Grid.Column="1" Text="Enter Text" Width="200" VerticalAlignment="Center" Margin="5,5,25,5"/>
<StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left">
<TextBlock Text="TimeFormat:" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" />
<ComboBox x:Name="_timeFormat" Grid.Row="0" Grid.Column="3" SelectedIndex="1" ItemsSource="{Binding Source={StaticResource enumTimeFormatData}}" Width="200" Margin="5"/>
<TextBlock Text="Time FormatString:" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" />
<TextBox x:Name="_timeFormatString" Grid.Row="1" Grid.Column="3" Text="H:mm" Width="200" Margin="5"/>
<TextBlock Text="TimeWatermark:" Grid.Row="2" Grid.Column="2" VerticalAlignment="Center"/>
<TextBox x:Name="_timeWatermark" Grid.Row="2" Grid.Column="3" Text="Enter Text" Width="200" VerticalAlignment="Center" Margin="5"/>
</Grid>
</GroupBox>
<StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left">
<TextBlock Text="DateTimePicker Usage: " Margin="0,10,0,0" Style="{StaticResource Header}" />
<xctk:DateTimePicker x:Name="_datetimePicker"
Width="300"
VerticalAlignment="Top"
IsReadOnly="False"
Format="{Binding Source={x:Reference _format}, Path=SelectedItem}"
FormatString="{Binding Text, ElementName=_formatString}"
Watermark="{Binding Source={x:Reference _watermark}, Path=Text}"
TimeFormat="{Binding Source={x:Reference _timeFormat}, Path=SelectedItem}"
TimeFormatString="{Binding Text, ElementName=_timeFormatString}"
TimeWatermark="{Binding Source={x:Reference _timeWatermark}, Path=Text}"/>
</StackPanel>
@ -102,13 +120,13 @@
<TextBlock Text="TimePicker Usage: " Style="{StaticResource Header}" />
<xctk:TimePicker x:Name="_timePicker"
VerticalAlignment="Top"
BorderBrush="Black"
Format="{Binding Source={x:Reference _timeFormat}, Path=SelectedItem}"
FormatString="{Binding Text, ElementName=_timeFormatString}"
Watermark="{Binding Source={x:Reference _timeWatermark}, Path=Text}"
StartTime="{Binding Source={x:Reference _startTime}, Path=Value, Converter={StaticResource dateTimeToTimeSpanConverter}}"
EndTime="{Binding Source={x:Reference _endTime}, Path=Value, Converter={StaticResource dateTimeToTimeSpanConverter}}"
TimeInterval="{Binding Source={x:Reference _timeInterval}, Path=Value, Converter={StaticResource dateTimeToTimeSpanConverter}}"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</sample:DemoView>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Magnifier/Samples.Modules.Magnifier.csproj

@ -40,9 +40,9 @@
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Magnifier/Views/HomeView.xaml

@ -58,7 +58,7 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Zoom Factor:" VerticalAlignment="Center" Margin="5" />
<xctk:DoubleUpDown x:Name="_zoomFactor" Grid.Column="1" Value="0.4" Minimum="0" Increment="0.1" Width="150" Margin="5" />
<xctk:DoubleUpDown x:Name="_zoomFactor" Grid.Column="1" Value="0.4" Minimum="0" Increment="0.1" Maximum="3" FormatString="N1" Width="150" Margin="5" />
<TextBlock Text="Border Thickness:" Grid.Row="1" VerticalAlignment="Center" Margin="5" />
<xctk:IntegerUpDown x:Name="_borderThickness" Grid.Row="1" Grid.Column="1" Value="2" Minimum="0" Maximum="20" Width="150" Margin="5" />
<TextBlock Text="Border Brush:" Grid.Row="2" VerticalAlignment="Center" Margin="5"/>
@ -76,7 +76,6 @@
<StackPanel Grid.Row="1" Margin="10" HorizontalAlignment="Left" >
<TextBlock Text="Usage:" Style="{StaticResource Header}"/>
<Grid>
<xctk:RichTextBox x:Name="_txtContent"
IsReadOnly="True"
TextFormatter="{StaticResource rtfFormatter}"
@ -93,7 +92,6 @@
Height="{Binding Source={x:Reference _height}, Path=Value, Mode=TwoWay}" />
</xctk:MagnifierManager.Magnifier>
</xctk:RichTextBox>
</Grid>
</StackPanel>
</Grid>
</sample:DemoView>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.MessageBox/Samples.Modules.MessageBox.csproj

@ -40,9 +40,9 @@
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Samples.Modules.Numeric.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

147
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml

@ -21,7 +21,49 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Numeric Controls">
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Samples.Modules.Numeric.Views"
Title="Numeric Controls"
x:Name="_demo">
<sample:DemoView.Resources>
<x:Array x:Key="FormatStringComboBox" Type="local:FormatObject">
<local:FormatObject Value="C2" DisplayValue="Currency" />
<local:FormatObject Value="F2" DisplayValue="Fixed Point" />
<local:FormatObject Value="G" DisplayValue="General" />
<local:FormatObject Value="N" DisplayValue="Number" />
<local:FormatObject Value="P2" DisplayValue="Percent" />
</x:Array>
<DataTemplate x:Key="FormatStringItemTemplate">
<TextBlock Text="{Binding DisplayValue}" />
</DataTemplate>
<ObjectDataProvider x:Key="AllowInputSpecialValuesComboBox" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="xctk:AllowedSpecialValues" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<ObjectDataProvider x:Key="ParsingNumberStyleComboBox" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="sys:Globalization.NumberStyles" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<Style x:Key="ControlInError" TargetType="Control">
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self},
Path=(Validation.Errors).CurrentItem.ErrorContent}" />
</Trigger>
</Style.Triggers>
</Style>
<sys:String x:Key="allowInputSpecialValuesTooltip">Infinity and -Infinity input will not be accepted if Maximum and/or Minimum values does not allow them.</sys:String>
<sys:String x:Key="parsingNumberStyleTooltip">HexNumber is not a valid choice when used with a DoubleUpDown (current control used in this sample). It will work with the following controls: IntegerUpDown, ByteUpDown, LongUpDown, and ShortUpDown.</sys:String>
</sample:DemoView.Resources>
<StackPanel>
<RichTextBox IsReadOnly="True" BorderThickness="0">
<FlowDocument>
@ -47,44 +89,87 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="FormatString:" VerticalAlignment="Center" />
<ComboBox x:Name="_formatString" SelectedIndex="0" Grid.Column="1" Width="150" Margin="5">
<ComboBoxItem Tag="C2">Currency</ComboBoxItem>
<ComboBoxItem Tag="F2">Fixed Point</ComboBoxItem>
<ComboBoxItem Tag="G">General</ComboBoxItem>
<ComboBoxItem Tag="N">Number</ComboBoxItem>
<ComboBoxItem Tag="P2">Percent</ComboBoxItem>
</ComboBox>
<TextBlock Text="Watermark:" Grid.Row="1" VerticalAlignment="Center" />
<TextBox x:Name="_watermark" Grid.Row="1" Grid.Column="1" Width="150" Margin="5" Text="Enter Value" />
<!-- 1st column -->
<TextBlock Text="Allow Input Special Values:" VerticalAlignment="Center" />
<ComboBox Grid.Column="1" ItemsSource="{Binding Source={StaticResource AllowInputSpecialValuesComboBox}}" SelectedValue="{Binding AllowInputSpecialValues, ElementName=_doubleUpDown}" ToolTip="{StaticResource allowInputSpecialValuesTooltip}" Margin="5" Width="108"/>
<TextBlock Text="Mouse Wheel:" Grid.Row="1" VerticalAlignment="Center" />
<CheckBox Grid.Row="1" Grid.Column="1" IsChecked="{Binding MouseWheelActiveOnFocus, ElementName=_doubleUpDown}" ClickMode="Press" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="Show Button Spinner:" Grid.Row="2" VerticalAlignment="Center" />
<CheckBox x:Name="_showButtonSpinner" Grid.Row="2" Grid.Column="1" IsChecked="True" ClickMode="Press" Margin="5" VerticalAlignment="Center" />
<TextBlock Grid.Column="2" Text="Increment" VerticalAlignment="Center" />
<TextBlock Grid.Column="2" Grid.Row="1" Text="Minimum" VerticalAlignment="Center" />
<TextBlock Grid.Column="2" Grid.Row="2" Text="Maximum" VerticalAlignment="Center" />
<xctk:DecimalUpDown Grid.Column="3" Name="_increment" Minimum="0" Value="0.5" VerticalAlignment="Center" Margin="5" Width="150" />
<xctk:DecimalUpDown Grid.Column="3" Grid.Row="1" Name="_minimum" Value="-100" VerticalAlignment="Center" Margin="5" Width="150" />
<xctk:DecimalUpDown Grid.Column="3" Grid.Row="2" Name="_maximum" Value="100" VerticalAlignment="Center" Margin="5" Width="150" />
</Grid>
<CheckBox Grid.Row="2" Grid.Column="1" IsChecked="{Binding ShowButtonSpinner, ElementName=_doubleUpDown}" ClickMode="Press" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="Allow Spin:" Grid.Row="3" VerticalAlignment="Center" />
<CheckBox Grid.Row="3" Grid.Column="1" IsChecked="{Binding AllowSpin, ElementName=_doubleUpDown}" ClickMode="Press" Margin="5" VerticalAlignment="Center" />
<TextBlock Text="Is Read Only:" Grid.Row="4" VerticalAlignment="Center" />
<CheckBox Grid.Row="4" Grid.Column="1" IsChecked="{Binding IsReadOnly, ElementName=_doubleUpDown}" ClickMode="Press" Margin="5" VerticalAlignment="Center" />
<!-- 2nd column -->
<TextBlock Grid.Column="2" Text="CultureInfo:" VerticalAlignment="Center" Margin="10,0,0,0" />
<ComboBox Grid.Column="3" ItemsSource="{Binding Cultures, ElementName=_demo}" SelectedValue="{Binding CultureInfo, ElementName=_doubleUpDown}" Width="65" Margin="5" />
<TextBlock Grid.Column="2" Grid.Row="1" Text="FormatString:" VerticalAlignment="Center" Margin="10,0,0,0"/>
<ComboBox Grid.Column="3" Grid.Row="1" ItemsSource="{Binding Source={StaticResource FormatStringComboBox}}" Text="{Binding FormatString, ElementName=_doubleUpDown, ValidatesOnExceptions=True}" ItemTemplate="{StaticResource FormatStringItemTemplate}" Style="{StaticResource ControlInError}" IsEditable="True" TextSearch.TextPath="Value" Width="65" Margin="5" />
<TextBlock Grid.Column="2" Grid.Row="2" Text="Increment" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="3" Grid.Row="2" Minimum="0" Value="{Binding Increment, ElementName=_doubleUpDown}" AllowInputSpecialValues="None" VerticalAlignment="Center" Margin="5" Width="65" />
<TextBlock Grid.Column="2" Grid.Row="3" Text="Minimum" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="3" Grid.Row="3" Value="{Binding Minimum, ElementName=_doubleUpDown}" AllowInputSpecialValues="NegativeInfinity" VerticalAlignment="Center" Margin="5" Width="65" />
<TextBlock Grid.Column="2" Grid.Row="4" Text="Maximum" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="3" Grid.Row="4" Value="{Binding Maximum, ElementName=_doubleUpDown}" AllowInputSpecialValues="PositiveInfinity" VerticalAlignment="Center" Margin="5" Width="65" />
<!-- 3rd column -->
<TextBlock Grid.Column="4" Text="ParsingNumberStyle:" VerticalAlignment="Center" Margin="10,0,0,0"/>
<ComboBox Grid.Column="5" ItemsSource="{Binding Source={StaticResource ParsingNumberStyleComboBox}}" SelectedValue="{Binding ParsingNumberStyle, ElementName=_doubleUpDown}" ToolTip="{StaticResource parsingNumberStyleTooltip}" Width="135" Margin="5" />
<TextBlock Text="Watermark:" Grid.Column="4" Grid.Row="1" VerticalAlignment="Center" Margin="10,0,0,0"/>
<TextBox Grid.Column="5" Grid.Row="1" Width="135" Margin="5" Text="{Binding Watermark, ElementName=_doubleUpDown}" />
<TextBlock Text="Default Value:" Grid.Column="4" Grid.Row="2" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="5" Grid.Row="2" Value="{Binding DefaultValue, ElementName=_doubleUpDown}" AllowInputSpecialValues="Any" VerticalAlignment="Center" Margin="5" Width="135" />
<TextBlock Text="Value:" Grid.Column="4" Grid.Row="3" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="5" Grid.Row="3" Value="{Binding Value, ElementName=_doubleUpDown, ValidatesOnExceptions=True}" AllowInputSpecialValues="Any" Style="{StaticResource ControlInError}" VerticalAlignment="Center" Margin="5" Width="135" />
<TextBlock Text="Text:" Grid.Column="4" Grid.Row="4" VerticalAlignment="Center" Margin="10,0,0,0"/>
<TextBox Grid.Column="5" Grid.Row="4" Text="{Binding Text, ElementName=_doubleUpDown}" VerticalAlignment="Center" Margin="5" Width="135" />
</Grid>
</GroupBox>
<StackPanel Grid.Row="1" Margin="10" HorizontalAlignment="Left">
<TextBlock Text="Usage:" Style="{StaticResource Header}" />
<xctk:DecimalUpDown Margin="10" Width="250"
Increment="{Binding Value, ElementName=_increment}"
Maximum="{Binding Value, ElementName=_maximum}"
Minimum="{Binding Value, ElementName=_minimum}"
FormatString="{Binding SelectedItem.Tag, ElementName=_formatString}"
Watermark="{Binding Text, ElementName=_watermark}"
ShowButtonSpinner="{Binding IsChecked, ElementName=_showButtonSpinner, Mode=TwoWay}"/>
</StackPanel>
<xctk:DoubleUpDown x:Name="_doubleUpDown"
Margin="10" Width="250"
AllowInputSpecialValues="Any"
ShowButtonSpinner="True"
AllowSpin="True"
IsReadOnly="False"
MouseWheelActiveOnFocus="True"
CultureInfo="en-US"
FormatString="C2"
Increment="0.5"
Maximum="100"
Minimum="0"
ParsingNumberStyle="Any"
Watermark="Enter Text"
DefaultValue="10"
Value="25" />
</StackPanel>
</Grid>
</StackPanel>

32
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Numeric/Views/HomeView.xaml.cs

@ -19,6 +19,9 @@
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
using System.Collections.Generic;
using System.Globalization;
using System;
namespace Samples.Modules.Numeric.Views
{
@ -30,7 +33,36 @@ namespace Samples.Modules.Numeric.Views
{
public HomeView()
{
this.Cultures = new List<CultureInfo>() { new CultureInfo( "en-US" ),
new CultureInfo("en-GB"),
new CultureInfo("fr-FR"),
new CultureInfo("ar-DZ"),
new CultureInfo("zh-CN"),
new CultureInfo("cs-CZ") };
InitializeComponent();
}
public List<CultureInfo> Cultures
{
get;
private set;
}
}
public class FormatObject
{
public string Value
{
get;
set;
}
public string DisplayValue
{
get;
set;
}
}
}

29
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Converters/ComboBoxToVisibilityConverter.cs

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Globalization;
using System.Windows;
namespace Samples.Modules.Panels.Converters
{
class ComboBoxToVisibilityConverter : IValueConverter
{
public object Convert( object value, Type targetType, object parameter, CultureInfo culture )
{
if( ( value is int ) && ( parameter is string )
&& ( int )value == Int32.Parse( ( string )parameter ) )
{
return Visibility.Visible;
}
return Visibility.Collapsed;
}
public object ConvertBack( object value, Type targetType, object parameter, CultureInfo culture )
{
throw new NotImplementedException();
}
}
}

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/AnimatedTimelinePanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/AutoStretchStackPanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/CameraPanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Canvas.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Carousel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/DockPanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/Grid.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/PerspectivePanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/RadialCanvas.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/RelativeCanvas.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/StackPanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/OpenSourceImages/StackedStackPanel.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

45
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/PanelsModule.cs

@ -0,0 +1,45 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
**********************************************************************/
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions;
using Samples.Modules.Panels.Views;
namespace Samples.Modules.Panels
{
public class PanelsModule : ModuleBase
{
public PanelsModule( IUnityContainer container, IRegionManager regionManager )
: base( container, regionManager )
{
}
protected override void InitializeModule()
{
RegionManager.RegisterViewWithRegion( RegionNames.NavigationRegion, typeof( SwitchPanelNavItem ) );
}
protected override void RegisterViewsAndTypes()
{
Container.RegisterNavigationType( typeof( SwitchPanelView ) );
}
}
}

55
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Properties/AssemblyInfo.cs

@ -0,0 +1,55 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle( "Samples.Modules.Panels" )]
[assembly: AssemblyDescription( "" )]
[assembly: AssemblyConfiguration( "" )]
[assembly: AssemblyCompany( "" )]
[assembly: AssemblyProduct( "Samples.Modules.Panels" )]
[assembly: AssemblyCopyright( "Copyright © 2012" )]
[assembly: AssemblyTrademark( "" )]
[assembly: AssemblyCulture( "" )]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible( false )]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.0.0.0" )]
[assembly: AssemblyFileVersion( "1.0.0.0" )]

119
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Samples.Modules.Panels.csproj

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D51C9DFE-7661-4C32-A9D7-5772D366F578}</ProjectGuid>
<OutputType>library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Samples.Modules.Panels</RootNamespace>
<AssemblyName>Samples.Modules.Panels</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Practices.Prism">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<Compile Include="Converters\ComboBoxToVisibilityConverter.cs" />
<Compile Include="PanelsModule.cs" />
<Compile Include="Views\SwitchPanelNavItem.xaml.cs">
<DependentUpon>SwitchPanelNavItem.xaml</DependentUpon>
</Compile>
<Compile Include="Views\SwitchPanelView.xaml.cs">
<DependentUpon>SwitchPanelView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Resource Include="OpenSourceImages\AnimatedTimelinePanel.jpg" />
<Resource Include="OpenSourceImages\AutoStretchStackPanel.jpg" />
<Resource Include="OpenSourceImages\CameraPanel.jpg" />
<Resource Include="OpenSourceImages\Canvas.jpg" />
<Resource Include="OpenSourceImages\Carousel.jpg" />
<Resource Include="OpenSourceImages\DockPanel.jpg" />
<Resource Include="OpenSourceImages\Grid.jpg" />
<Resource Include="OpenSourceImages\PerspectivePanel.jpg" />
<Resource Include="OpenSourceImages\RadialCanvas.jpg" />
<Resource Include="OpenSourceImages\RelativeCanvas.jpg" />
<Resource Include="OpenSourceImages\StackedStackPanel.jpg" />
<Resource Include="OpenSourceImages\StackPanel.jpg" />
</ItemGroup>
<ItemGroup>
<Page Include="Views\SwitchPanelNavItem.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\SwitchPanelView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>
<Name>Samples.Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy "$(TargetDir)*.*" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\" /Y
xcopy "$(ProjectDir)Views" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\Samples\$(ProjectName)\" /s /Y /I</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

30
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelNavItem.xaml

@ -0,0 +1,30 @@
<!--*********************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.Panels.Views.SwitchPanelNavItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="clr-namespace:Samples.Modules.Panels.Views"
Header="Switch Panel" Tag="{x:Type views:SwitchPanelView}"
Style="{StaticResource newFeature}">
<TreeViewItem.Resources>
<Style TargetType="views:SwitchPanelNavItem" BasedOn="{StaticResource {x:Type TreeViewItem}}"/>
</TreeViewItem.Resources>
</TreeViewItem>

34
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelNavItem.xaml.cs

@ -0,0 +1,34 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
**********************************************************************/
using System.Windows.Controls;
namespace Samples.Modules.Panels.Views
{
/// <summary>
/// Interaction logic for CalculatorUpDownNavItem.xaml
/// </summary>
public partial class SwitchPanelNavItem : TreeViewItem
{
public SwitchPanelNavItem()
{
InitializeComponent();
}
}
}

341
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelView.xaml

@ -0,0 +1,341 @@
<!--*********************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
********************************************************************-->
<sample:DemoView x:Class="Samples.Modules.Panels.Views.SwitchPanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:local="clr-namespace:Samples.Modules.Panels.Views"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:panels="clr-namespace:Xceed.Wpf.Toolkit.Panels;assembly=Xceed.Wpf.Toolkit"
xmlns:conv="clr-namespace:Samples.Modules.Panels.Converters"
xmlns:s="clr-namespace:System;assembly=mscorlib"
VerticalScrollBarVisibility="Disabled"
Title="Switch Panel"
Description="The SwitchPanel allows you to animate the children between different layouts.">
<sample:DemoView.Resources>
<Style x:Key="panelElement" TargetType="{x:Type TextBlock}">
<Setter Property="Background" Value="Blue" />
<Setter Property="Foreground" Value="White" />
<Setter Property="Margin" Value="5" />
<Setter Property="Width" Value="100" />
<Setter Property="Height" Value="100" />
<Setter Property="TextAlignment" Value="Center" />
</Style>
<ObjectDataProvider x:Key="orientationCombo" MethodName="GetValues" ObjectType="{x:Type s:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="Orientation" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<Style x:Key="controlInError" TargetType="Control">
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self},
Path=(Validation.Errors).CurrentItem.ErrorContent}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="plusItem" TargetType="ComboBoxItem" >
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<DockPanel>
<TextBlock DockPanel.Dock="Left" Text="{Binding}" />
<TextBlock TextAlignment="Right" Foreground="OrangeRed" Style="{StaticResource plusSuffix}" />
</DockPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<s:String x:Key="wrapPanelDescription">Positions elements from left to right or up to down depending on the orientation and the available space. Breaks the content at the end of the line to wrap items to the next line.</s:String>
<s:String x:Key="randomPanelDescription">This panel lays out its children with a random location and size.</s:String>
<s:String x:Key="canvasPanelDescription">Exactly like WPF's native Canvas panel, except that this panel can animate its children and be used inside a SwitchPanel.</s:String>
<s:String x:Key="carouselDescription">Positions the elements in a carousel mode with a centered element in front.</s:String>
<s:String x:Key="dockPanelDescription">Exactly like WPF's native DockPanel, except that this panel can animate its children and be used inside a SwitchPanel.</s:String>
<s:String x:Key="gridDescription">Exactly like WPF's native Grid panel, except that this panel can animate its children and be used inside a SwitchPanel.</s:String>
<s:String x:Key="stackPanelDescription">Exactly like WPF's native StackPanel, except this panel can animate its children and be used inside SwitchPanel.</s:String>
<s:String x:Key="stackedStackPanelDescription">Lays out children in a series of stacked stackpanels.</s:String>
<s:String x:Key="autoStretchStackPanelDescription">This panel stretches the children in the orientation direction so that they completely fill the panel area.</s:String>
<s:String x:Key="relativeCanvasDescription">A Panel which is similar to Canvas but it lays out its children relative to the panel's height and width.</s:String>
<s:String x:Key="radialCanvasDescription">Lays out its children in a circle based on panel size and/or properties set.</s:String>
<s:String x:Key="cameraPanelDescription">"CameraPanel lays out its children in a 3D-like space. You can give the children a 3D location and set the camera position for the panel.</s:String>
<s:String x:Key="perspectivePanelDescription">Perspective panel positions its children in a perspective view with the possibility of rotating the background children.</s:String>
<s:String x:Key="animatedTimelinePanelDescription">Defines an area where items are positioned on a timeline.</s:String>
<conv:ComboBoxToVisibilityConverter x:Key="comboBoxToVisibilityConverter" />
</sample:DemoView.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<GroupBox Header="Features" Grid.Row="0" Margin="5">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Layout:" Margin="0,0,5,0" />
<ComboBox x:Name="layoutCombo" SelectedIndex="0" Width="250" SelectionChanged="OnLayoutComboSelectionChanged">
<ComboBoxItem>WrapPanel</ComboBoxItem>
<ComboBoxItem>RandomPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">Canvas</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">Carousel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">DockPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">Grid</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">StackPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">StackedStackPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">AutoStretchStackPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">RelativeCanvas</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">RadialCanvas</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">CameraPanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">PerspectivePanel</ComboBoxItem>
<ComboBoxItem Style="{StaticResource plusItem}">AnimatedTimelinePanel</ComboBoxItem>
</ComboBox>
</Grid>
</GroupBox>
<Grid Grid.Row="1" Margin="10">
<Grid.RowDefinitions >
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Usage:" Style="{StaticResource Header}" />
<xctk:SwitchPanel x:Name="_switchPanel" Grid.Row="1" ActiveLayoutIndex="{Binding ElementName=layoutCombo, Path=SelectedIndex}" ActiveLayoutChanged="OnSwitchPanelLayoutChanged">
<xctk:SwitchPanel.Layouts>
<xctk:WrapPanel x:Name="_wrapPanel" ItemWidth="100" ItemHeight="100"/>
<xctk:RandomPanel x:Name="_randomPanel" />
</xctk:SwitchPanel.Layouts>
<TextBlock x:Name="_item1" Text="Item #1" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item2" Text="Item #2" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item3" Text="Item #3" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item4" Text="Item #4" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item5" Text="Item #5" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item6" Text="Item #6" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item7" Text="Item #7" Style="{StaticResource panelElement}"/>
<TextBlock x:Name="_item8" Text="Item #8" Style="{StaticResource panelElement}"/>
</xctk:SwitchPanel>
<Image x:Name="_openSourceScreenShot" Grid.Row="1" Height="250" Visibility="Collapsed" />
<TextBlock x:Name="_openSourceScreenShotDesc" Grid.Row="2" TextWrapping="Wrap" Visibility="Collapsed" />
<TextBlock x:Name="_openSourceHyperlink" Grid.Row="3" Visibility="Collapsed">
<Hyperlink NavigateUri="http://www.xceed.com/Extended_WPF_Toolkit_Intro.html" RequestNavigate="Hyperlink_RequestNavigate">
Click here for more details about Extended WPF Toolkit Plus.
</Hyperlink>
</TextBlock>
<GroupBox Header="WrapPanel Toolbox"
Background="White"
Grid.Row="2"
Visibility="{Binding SelectedIndex, ElementName=layoutCombo, Converter={StaticResource comboBoxToVisibilityConverter}, ConverterParameter=0}"
Margin="10" >
<StackPanel>
<TextBlock TextWrapping="Wrap"
Text="{StaticResource wrapPanelDescription}"
Margin="10,0" />
<TextBlock TextWrapping="Wrap"
Text="Resize the Window to animate the WrapPanel."
Margin="10,0" />
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Orientation:" VerticalAlignment="Center"/>
<ComboBox Grid.Column="1"
ItemsSource="{Binding Source={StaticResource orientationCombo}}"
SelectedItem="{Binding Orientation, ElementName=_wrapPanel}"
Width="100"
Height="22"
VerticalAlignment="Center"
Margin="5" />
<TextBlock Grid.Row="1" Text="Is Child Order Reversed:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="1"
Grid.Column="1"
IsChecked="{Binding IsChildOrderReversed, ElementName=_wrapPanel}"
ClickMode="Press"
VerticalAlignment="Center"
Margin="5"/>
<TextBlock Grid.Column="2" Text="Item Width:" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="3"
Value="{Binding ItemWidth, ElementName=_wrapPanel}"
AllowInputSpecialValues="NaN"
Width="100"
Height="20"
Minimum="0"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5"/>
<TextBlock Grid.Column="2" Grid.Row="1" Text="Item Height:" VerticalAlignment="Center" Margin="10,0,0,0" />
<xctk:DoubleUpDown Grid.Column="3"
Grid.Row="1"
Value="{Binding ItemHeight, ElementName=_wrapPanel}"
AllowInputSpecialValues="NaN"
Width="100"
Height="20"
Minimum="0"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5"/>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Header="RandomPanel Toolbox"
Background="White"
Grid.Row="2"
Visibility="{Binding SelectedIndex, ElementName=layoutCombo, Converter={StaticResource comboBoxToVisibilityConverter}, ConverterParameter=1}"
Margin="10" >
<StackPanel>
<TextBlock TextWrapping="Wrap"
Text="{StaticResource randomPanelDescription}"
Margin="10,0" />
<TextBlock TextWrapping="Wrap"
Text="Modify the Minimum and Maximum values to affect the children size."
Margin="10,0" />
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Minimum Width:" VerticalAlignment="Center"/>
<xctk:DoubleUpDown Grid.Column="1"
Value="{Binding MinimumWidth, ElementName=_randomPanel, ValidatesOnExceptions=True}"
AllowInputSpecialValues="None"
Minimum="0"
Maximum="100"
Width="100"
Height="20"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5" />
<TextBlock Grid.Row="1" Text="Maximum Width:" VerticalAlignment="Center"/>
<xctk:DoubleUpDown Grid.Column="1"
Grid.Row="1"
Value="{Binding MaximumWidth, ElementName=_randomPanel, ValidatesOnExceptions=True}"
AllowInputSpecialValues="None"
Minimum="0"
Maximum="100"
Width="100"
Height="20"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5" />
<TextBlock Grid.Column="2" Text="Minimum Height:" VerticalAlignment="Center" Margin="10,0,0,0"/>
<xctk:DoubleUpDown Grid.Column="3"
Value="{Binding MinimumHeight, ElementName=_randomPanel, ValidatesOnExceptions=True}"
AllowInputSpecialValues="None"
Minimum="0"
Maximum="100"
Width="100"
Height="20"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5"/>
<TextBlock Grid.Column="2" Grid.Row="1" Text="Maximum Height:" VerticalAlignment="Center" Margin="10,0,0,0" />
<xctk:DoubleUpDown Grid.Column="3"
Grid.Row="1"
Value="{Binding MaximumHeight, ElementName=_randomPanel, ValidatesOnExceptions=True}"
AllowInputSpecialValues="None"
Minimum="0"
Maximum="100"
Width="100"
Height="20"
Style="{StaticResource controlInError}"
VerticalAlignment="Center"
Margin="5"/>
</Grid>
</StackPanel>
</GroupBox>
</Grid>
</Grid>
</sample:DemoView>

206
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Panels/Views/SwitchPanelView.xaml.cs

@ -0,0 +1,206 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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 System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System;
using System.Windows;
using Xceed.Wpf.Toolkit.Panels;
using System.Collections.Generic;
using Xceed.Wpf.Toolkit;
using System.Text.RegularExpressions;
using System.IO;
using System.Diagnostics;
using System.Windows.Media.Imaging;
namespace Samples.Modules.Panels.Views
{
/// <summary>
/// Interaction logic for SwitchPanelView.xaml
/// </summary>
[RegionMemberLifetime( KeepAlive = false )]
public partial class SwitchPanelView : DemoView
{
#region Members
#endregion
public SwitchPanelView()
{
InitializeComponent();
}
#region Event Handlers
private void Hyperlink_RequestNavigate( object sender, System.Windows.Navigation.RequestNavigateEventArgs e )
{
Process.Start( new ProcessStartInfo( e.Uri.AbsoluteUri ) );
e.Handled = true;
}
private void OnLayoutComboSelectionChanged( object sender, RoutedEventArgs e )
{
ComboBox comboBox = sender as ComboBox;
bool isPlusPanel = (comboBox.SelectedIndex >= 2);
if( _openSourceScreenShot != null )
_openSourceScreenShot.Visibility = isPlusPanel ? Visibility.Visible : Visibility.Collapsed;
if( _openSourceScreenShotDesc != null )
_openSourceScreenShotDesc.Visibility = isPlusPanel ? Visibility.Visible : Visibility.Collapsed;
if( _openSourceHyperlink != null )
_openSourceHyperlink.Visibility = isPlusPanel ? Visibility.Visible : Visibility.Collapsed;
if( _switchPanel != null )
_switchPanel.Visibility = isPlusPanel ? Visibility.Collapsed : Visibility.Visible;
if( isPlusPanel )
{
BitmapImage bitmapImage = new BitmapImage();
string desc;
bitmapImage.BeginInit();
switch( comboBox.SelectedIndex )
{
case 2:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\Canvas.jpg", UriKind.Relative );
desc = this.Resources[ "canvasPanelDescription" ] as string;
break;
case 3:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\Carousel.jpg", UriKind.Relative );
desc = this.Resources[ "carouselDescription" ] as string;
break;
case 4:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\DockPanel.jpg", UriKind.Relative );
desc = this.Resources[ "dockPanelDescription" ] as string;
break;
case 5:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\Grid.jpg", UriKind.Relative );
desc = this.Resources[ "gridDescription" ] as string;
break;
case 6:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\StackPanel.jpg", UriKind.Relative );
desc = this.Resources[ "stackPanelDescription" ] as string;
break;
case 7:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\StackedStackPanel.jpg", UriKind.Relative );
desc = this.Resources[ "stackedStackPanelDescription" ] as string;
break;
case 8:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\AutoStretchStackPanel.jpg", UriKind.Relative );
desc = this.Resources[ "autoStretchStackPanelDescription" ] as string;
break;
case 9:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\RelativeCanvas.jpg", UriKind.Relative );
desc = this.Resources[ "relativeCanvasDescription" ] as string;
break;
case 10:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\RadialCanvas.jpg", UriKind.Relative );
desc = this.Resources[ "radialCanvasDescription" ] as string;
break;
case 11:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\CameraPanel.jpg", UriKind.Relative );
desc = this.Resources[ "cameraPanelDescription" ] as string;
break;
case 12:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\PerspectivePanel.jpg", UriKind.Relative );
desc = this.Resources[ "perspectivePanelDescription" ] as string;
break;
case 13:
bitmapImage.UriSource = new Uri( "..\\OpenSourceImages\\AnimatedTimelinePanel.jpg", UriKind.Relative );
desc = this.Resources[ "animatedTimelinePanelDescription" ] as string;
break;
default: throw new InvalidDataException( "LayoutcomboBox.SelectedIndex is not valid." );
}
bitmapImage.EndInit();
if( _openSourceScreenShot != null )
_openSourceScreenShot.Source = bitmapImage;
if( _openSourceScreenShotDesc != null )
_openSourceScreenShotDesc.Text = desc;
}
}
private void OnSwitchPanelLayoutChanged( object sender, RoutedEventArgs e )
{
}
#endregion
#region Methods (Private)
#endregion
}
}

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Pie/Samples.Modules.Pie.csproj

@ -40,9 +40,9 @@
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Samples.Modules.PropertyGrid.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

2
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DisplayLocalizationRes.fr.resx

@ -156,4 +156,4 @@
<data name="NotListed" xml:space="preserve">
<value>(Non proposé)</value>
</data>
</root>
</root>

2
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/DisplayLocalizationRes.resx

@ -156,4 +156,4 @@
<data name="NotListed" xml:space="preserve">
<value>(Not listed)</value>
</data>
</root>
</root>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/ExpandableProperties.xaml.cs

@ -93,7 +93,9 @@ namespace Samples.Modules.PropertyGrid.Views
person.Spouse = new Person()
{
FirstName = "Jane",
LastName = "Doe"
LastName = "Doe",
WritingFont = new FontFamily( "Arial" ),
WritingFontSize = 10.5
};
return person;
}

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.PropertyGrid/Views/HomeView.xaml

@ -65,7 +65,7 @@
<StackPanel Grid.Row="1" Margin="10">
<TextBlock Text="Usage:" Style="{StaticResource Header}" />
<TextBlock Text="To inspect an object simply set the PropertyGrid.SelectedObject property to an instance of the object you want to inspect."
<TextBlock Text="To inspect an object simply set the PropertyGrid.SelectedObject property to an instance of the object you want to inspect. Click the button to inspect"
TextWrapping="Wrap" />
<Grid Height="400" Margin="10">
<Grid.ColumnDefinitions>
@ -74,7 +74,7 @@
</Grid.ColumnDefinitions>
<StackPanel>
<Button x:Name="_button1" Click="OnButtonClick" Height="200" Width="200" Margin="25" HorizontalAlignment="Center" VerticalAlignment="Center">Inspect Me</Button>
<Button x:Name="_button1" Click="OnButtonClick" Height="200" Width="200" Margin="25" HorizontalAlignment="Center" VerticalAlignment="Center">Inspect This</Button>
<Button x:Name="_button2" Click="OnButtonClick" Foreground="Red" FontSize="22" FontFamily="Bell MT" Height="50" Width="200" Margin="25" HorizontalAlignment="Center" VerticalAlignment="Center">Inspect That</Button>
</StackPanel>

10
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Samples.Modules.Text.csproj

@ -42,9 +42,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>
@ -78,8 +78,8 @@
<Compile Include="Views\MaskedTextBoxView.xaml.cs">
<DependentUpon>MaskedTextBoxView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\MultiLineTextEditor.xaml.cs">
<DependentUpon>MultiLineTextEditor.xaml</DependentUpon>
<Compile Include="Views\MultiLineTextEditorView.xaml.cs">
<DependentUpon>MultiLineTextEditorView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\NavigationView.xaml.cs">
<DependentUpon>NavigationView.xaml</DependentUpon>
@ -105,7 +105,7 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\MultiLineTextEditor.xaml">
<Page Include="Views\MultiLineTextEditorView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>

3
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MaskedTextBoxView.xaml

@ -21,7 +21,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:osb="clr-namespace:Xceed.Wpf.Toolkit.Obselete;assembly=WPFToolkit.Extended"
xmlns:osb="clr-namespace:Xceed.Wpf.Toolkit.Obselete;assembly=Xceed.Wpf.Toolkit"
xmlns:s="clr-namespace:System;assembly=mscorlib"
Title="MaskedTextBox"
Description="The MaskedTextBox control lets you display and edit values based on a mask.">
@ -79,6 +79,7 @@
</GroupBox>
<StackPanel Grid.Row="1" Margin="10">
<TextBlock Text="Usage:" Style="{StaticResource Header}" />
<xctk:MaskedTextBox x:Name="_maskedTextBox"
Mask="(000) 000-0000"
ValueDataType="{x:Type s:String}" />

0
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditor.xaml → ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditorView.xaml

8
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditor.xaml.cs → ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/MultiLineTextEditorView.xaml.cs

@ -61,26 +61,26 @@ namespace Samples.Modules.Text.Views
List<Movie> movieList = new List<Movie>();
movieList.Add( new Movie()
{
Title = "Lords Of The Ring",
Title = "Lord Of The Rings",
Review = "A great movie with many special effects.",
Rating = 9
} );
movieList.Add( new Movie()
{
Title = "Pirates Of The Caribbean",
Review = "An epic pirate movie with ships, swords, explosion and a treasure.",
Review = "An epic pirate movie with ships, swords, explosions, and a treasure.",
Rating = 9.5
} );
movieList.Add( new Movie()
{
Title = "Batman",
Review = "Batman returns after 8 years, stronger than ever, to deliver Gotham City from a new criminel.",
Review = "Batman returns after 8 years, stronger than ever, to deliver Gotham City from a new criminal.",
Rating = 7.8
} );
movieList.Add( new Movie()
{
Title = "Indiana Jones",
Review = "Harrison Ford strikes back for full-pack action movie in the jungle to uncover a mysterious Crystal skull.",
Review = "Harrison Ford strikes back for an action-packed movie in the jungle to find a mysterious Crystal skull.",
Rating = 6.4
} );

5
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Text/Views/NavigationView.xaml

@ -20,14 +20,13 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="clr-namespace:Samples.Modules.Text.Views"
Header="Text" Tag="{x:Type views:HomeView}"
Style="{StaticResource newFeature}" >
Header="Text" Tag="{x:Type views:HomeView}" >
<TreeViewItem.Resources>
<Style TargetType="views:NavigationView" BasedOn="{StaticResource {x:Type TreeViewItem}}" />
</TreeViewItem.Resources>
<TreeViewItem Header="AutoSelectTextBox" Tag="{x:Type views:AutoSelectTextBoxView}" Style="{StaticResource newFeature}" />
<TreeViewItem Header="AutoSelectTextBox" Tag="{x:Type views:AutoSelectTextBoxView}" />
<TreeViewItem Header="MaskedTextBox" Tag="{x:Type views:MaskedTextBoxView}" />
<TreeViewItem Header="MultiLineTextEditor" Tag="{x:Type views:MultiLineTextEditorView}" />
<TreeViewItem Header="RichTextBox" Tag="{x:Type views:RichTextBoxView}"/>

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPicture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureA.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureB.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureC.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/NoPictureD.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Images/Working.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

72
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Properties/AssemblyInfo.cs

@ -0,0 +1,72 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
**********************************************************************/
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle( "Extended WPF Toolkit Themes Sample" )]
[assembly: AssemblyDescription( "" )]
[assembly: AssemblyConfiguration( "" )]
[assembly: AssemblyCompany( "Xceed Software Inc." )]
[assembly: AssemblyProduct( "Extended WPF Toolkit Themes Sample" )]
[assembly: AssemblyCopyright( "Copyright © Xceed Software Inc. 2010-2012" )]
[assembly: AssemblyTrademark( "" )]
[assembly: AssemblyCulture( "" )]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible( false )]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.0.0.0" )]
[assembly: AssemblyFileVersion( "1.0.0.0" )]

134
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Samples.Modules.Themes.csproj

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{31D6DE81-60F1-4481-BE1B-96768855DA4E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Samples.Modules.Themes</RootNamespace>
<AssemblyName>Samples.Modules.Themes</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisLogFile>bin\Debug\Samples.Modules.Themes.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
<CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisLogFile>bin\Release\Samples.Modules.Themes.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
<CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Practices.Prism">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Prism.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Xceed.Wpf.DataGrid.Samples.SampleData">
<HintPath>..\..\..\..\Libs\Xceed.Wpf.DataGrid.Samples.SampleData.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<AppDesigner Include="Properties\" />
<Compile Include="ThemesModule.cs" />
<Compile Include="Views\HomeView.xaml.cs">
<DependentUpon>HomeView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\NavigationView.xaml.cs">
<DependentUpon>NavigationView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Xceed.Wpf.DataGrid\Xceed.Wpf.DataGrid.csproj">
<Project>{63648392-6CE9-4A60-96D4-F9FD718D29B0}</Project>
<Name>Xceed.Wpf.DataGrid</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>
<Name>Samples.Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Images\NoPicture.png" />
<Resource Include="Images\NoPictureA.jpg" />
<Resource Include="Images\NoPictureB.jpg" />
<Resource Include="Images\NoPictureC.jpg" />
<Resource Include="Images\NoPictureD.jpg" />
<Resource Include="Images\Working.png" />
</ItemGroup>
<ItemGroup>
<Page Include="Views\HomeView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Views\NavigationView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy "$(TargetDir)*.*" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\" /Y
xcopy "$(ProjectDir)Views" "$(SolutionDir)Src\Samples\Samples\bin\$(ConfigurationName)\Samples\$(ProjectName)\" /s /Y /I</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

45
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/ThemesModule.cs

@ -0,0 +1,45 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
**********************************************************************/
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions;
using Samples.Modules.Themes.Views;
namespace Samples.Modules.Themes
{
public class ThemesModule : ModuleBase
{
public ThemesModule( IUnityContainer container, IRegionManager regionManager )
: base( container, regionManager )
{
}
protected override void InitializeModule()
{
RegionManager.RegisterViewWithRegion( RegionNames.NavigationRegion, typeof( NavigationView ) );
}
protected override void RegisterViewsAndTypes()
{
Container.RegisterNavigationType( typeof( HomeView ) );
}
}
}

34
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/HomeView.xaml

@ -0,0 +1,34 @@
<!--*********************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
********************************************************************-->
<sample:DemoView x:Class="Samples.Modules.Themes.Views.HomeView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="Themes"
x:Name="_demo"
Description="Office themes for all WPF controls, including the toolkit and DataGrid. This feature is offered in the Plus version of the Extended WPF Toolkit.">
<TextBlock Margin="0,20,0,0">
<Hyperlink NavigateUri="http://www.xceed.com/Extended_WPF_Toolkit_Intro.html" RequestNavigate="Hyperlink_RequestNavigate">
Click here for more details about Extended WPF Toolkit Plus.
</Hyperlink>
</TextBlock>
</sample:DemoView>

55
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/HomeView.xaml.cs

@ -0,0 +1,55 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.ObjectModel;
using System.ComponentModel;
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
using System.Windows;
using System.Windows.Controls;
using Xceed.Wpf.Toolkit;
using Xceed.Wpf.Toolkit.Themes;
using System.Windows.Controls.Primitives;
using System;
using Xceed.Wpf.DataGrid.Samples.SampleData;
using System.Data;
using System.Diagnostics;
namespace Samples.Modules.Themes.Views
{
/// <summary>
/// Interaction logic for HomeView.xaml
/// </summary>
[RegionMemberLifetime( KeepAlive = false )]
public partial class HomeView : DemoView
{
public HomeView()
{
InitializeComponent();
}
private void Hyperlink_RequestNavigate( object sender, System.Windows.Navigation.RequestNavigateEventArgs e )
{
Process.Start( new ProcessStartInfo( e.Uri.AbsoluteUri ) );
e.Handled = true;
}
}
}

30
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/NavigationView.xaml

@ -0,0 +1,30 @@
<!--*********************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.Themes.Views.NavigationView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="clr-namespace:Samples.Modules.Themes.Views"
Header="Themes" Tag="{x:Type views:HomeView}" Style="{StaticResource plusStyle}">
<TreeViewItem.Resources>
<Style TargetType="views:NavigationView" BasedOn="{StaticResource {x:Type TreeViewItem}}" />
</TreeViewItem.Resources>
</TreeViewItem>

34
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Themes/Views/NavigationView.xaml.cs

@ -0,0 +1,34 @@
/************************************************************************
Extended WPF Toolkit
Copyright (C) 2010-2012 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
This program can be provided to you by Xceed Software Inc. under a
proprietary commercial license agreement for use in non-Open Source
projects. The commercial version of Extended WPF Toolkit also includes
priority technical support, commercial updates, and many additional
useful WPF controls if you license Xceed Business Suite for WPF.
Visit http://xceed.com and follow @datagrid on Twitter.
**********************************************************************/
using System.Windows.Controls;
namespace Samples.Modules.Themes.Views
{
/// <summary>
/// Interaction logic for NavigationView.xaml
/// </summary>
public partial class NavigationView : TreeViewItem
{
public NavigationView()
{
InitializeComponent();
}
}
}

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.TimelinePanel/Samples.Modules.TimelinePanel.csproj

@ -38,9 +38,9 @@
<Reference Include="Microsoft.Practices.Unity">
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Samples.Modules.Wizard.csproj

@ -41,9 +41,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

42
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml

@ -21,22 +21,28 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Wizard">
<Grid>
<xctk:Wizard FinishButtonClosesWindow="True">
<xctk:WizardPage x:Name="IntroPage"
Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something." />
<xctk:WizardPage x:Name="Page1" PageType="Interior"
Title="Page 1"
Description="This is the first page in the process." />
<xctk:WizardPage x:Name="Page2" PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage x:Name="LastPage" PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
</xctk:Wizard>
</Grid>
Title="Wizard"
Description="The Wizard will explain how to do something in a series of steps.">
<sample:DemoView.Resources>
<xctk:Wizard x:Key="_wizard" FinishButtonClosesWindow="True" Help="OnWizardHelp">
<xctk:WizardPage x:Name="IntroPage"
Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something." />
<xctk:WizardPage x:Name="Page1" PageType="Interior"
Title="Page 1"
Description="This is the first page in the process." />
<xctk:WizardPage x:Name="Page2" PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage x:Name="LastPage" PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
</xctk:Wizard>
</sample:DemoView.Resources>
<Grid>
<Button Content="Start Wizard" Click="OnButtonClick" Width="150" Height="50"/>
</Grid>
</sample:DemoView>

32
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Wizard/Views/HomeView.xaml.cs

@ -19,6 +19,8 @@
using Microsoft.Practices.Prism.Regions;
using Samples.Infrastructure.Controls;
using System.Windows;
using System;
namespace Samples.Modules.Wizard.Views
{
@ -28,9 +30,39 @@ namespace Samples.Modules.Wizard.Views
[RegionMemberLifetime( KeepAlive = false )]
public partial class HomeView : DemoView
{
private Window _window;
public HomeView()
{
InitializeComponent();
}
private void OnButtonClick( object sender, EventArgs e )
{
Xceed.Wpf.Toolkit.Wizard wizard = Resources[ "_wizard" ] as Xceed.Wpf.Toolkit.Wizard;
if( wizard != null )
{
wizard.CurrentPage = wizard.Items[ 0 ] as Xceed.Wpf.Toolkit.WizardPage;
if( _window != null )
{
_window.Content = null;
_window = null;
}
_window = new Window();
_window.Title = "Wizard demonstration";
_window.Content = wizard;
_window.Width = 600;
_window.Height = 400;
_window.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
// Window will be closed by Wizard because FinishButtonClosesWindow = true and CancelButtonClosesWindow = true
_window.ShowDialog();
}
}
private void OnWizardHelp( object sender, EventArgs e )
{
System.Windows.MessageBox.Show( "This is the Help for the Wizard\n\n\n\n\n", "Wizard Help" );
}
}
}

4
ExtendedWPFToolkitSolution/Src/Samples/Modules/Samples.Modules.Zoombox/Samples.Modules.Zoombox.csproj

@ -41,9 +41,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Libs\Prism\Microsoft.Practices.Unity.dll</HintPath>
</Reference>
<ProjectReference Include="..\..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

17
ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Controls/DemoView.cs

@ -90,6 +90,19 @@ namespace Samples.Infrastructure.Controls
}
}
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty = DependencyProperty.Register( "VerticalScrollBarVisibility", typeof( ScrollBarVisibility ), typeof( DemoView ), new UIPropertyMetadata( ScrollBarVisibility.Auto ) );
public ScrollBarVisibility VerticalScrollBarVisibility
{
get
{
return ( ScrollBarVisibility )GetValue( VerticalScrollBarVisibilityProperty );
}
set
{
SetValue( VerticalScrollBarVisibilityProperty, value );
}
}
#endregion //Properties
#region Constructors
@ -112,14 +125,14 @@ namespace Samples.Infrastructure.Controls
{
base.OnContentChanged( oldContent, newContent );
//the parent of the content will be the View
ResolveContentCode( ( newContent as FrameworkElement ).Parent );
UpdateContentCode( ( newContent as FrameworkElement ).Parent );
}
#endregion //Base Class Overrides
#region Methods
private void ResolveContentCode( object newContent )
private void UpdateContentCode( object newContent )
{
//get the type of the content loaded in the ContentRegion
var type = newContent.GetType();

2
ExtendedWPFToolkitSolution/Src/Samples/Samples.Infrastructure/Themes/Generic.xaml

@ -138,7 +138,7 @@
<Grid>
<TabControl TabStripPlacement="Top" Style="{StaticResource TabControlStyle}" >
<TabItem Header="Sample" Style="{StaticResource TabItemStyle}">
<ScrollViewer VerticalScrollBarVisibility="Auto">
<ScrollViewer VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>

2
ExtendedWPFToolkitSolution/Src/Samples/Samples/App.config

@ -18,9 +18,11 @@
<module assemblyFile="Samples.Modules.MessageBox.dll" moduleType="Samples.Modules.MessageBox.MessageBoxModule, Samples.Modules.MessageBox" moduleName="MessageBoxModule" />
<module assemblyFile="Samples.Modules.Pie.dll" moduleType="Samples.Modules.Pie.PieModule, Samples.Modules.Pie" moduleName="PieModule" />
<module assemblyFile="Samples.Modules.PropertyGrid.dll" moduleType="Samples.Modules.PropertyGrid.PropertyGridModule, Samples.Modules.PropertyGrid" moduleName="PropertyGridModule" />
<module assemblyFile="Samples.Modules.Panels.dll" moduleType="Samples.Modules.Panels.PanelsModule, Samples.Modules.Panels" moduleName="PanelsModule" />
<module assemblyFile="Samples.Modules.Text.dll" moduleType="Samples.Modules.Text.TextModule, Samples.Modules.Text" moduleName="TextModule" />
<module assemblyFile="Samples.Modules.TimelinePanel.dll" moduleType="Samples.Modules.TimelinePanel.TimelinePanelModule, Samples.Modules.TimelinePanel" moduleName="TimelinePanelModule" />
<module assemblyFile="Samples.Modules.Wizard.dll" moduleType="Samples.Modules.Wizard.WizardModule, Samples.Modules.Wizard" moduleName="WizardModule" />
<module assemblyFile="Samples.Modules.Zoombox.dll" moduleType="Samples.Modules.Zoombox.ZoomboxModule, Samples.Modules.Zoombox" moduleName="ZoomboxModule" />
<module assemblyFile="Samples.Modules.Themes.dll" moduleType="Samples.Modules.Themes.ThemesModule, Samples.Modules.Themes" moduleName="ThemesModule" />
</modules>
</configuration>

9
ExtendedWPFToolkitSolution/Src/Samples/Samples/Resources/TextBlockStyles.xaml

@ -26,4 +26,13 @@
<Setter Property="Margin" Value="0,5" />
</Style>
<Style x:Key="plusSuffix" TargetType="TextBlock">
<Setter Property="Margin" Value="5,0,0,0"/>
<Setter Property="Text" Value="Plus Only"/>
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="FontSize" Value="8"/>
<Setter Property="BaselineOffset" Value="7"/>
<Setter Property="Foreground" Value="Orange"/>
</Style>
</ResourceDictionary>

19
ExtendedWPFToolkitSolution/Src/Samples/Samples/Resources/TreeViewStyles.xaml

@ -18,8 +18,11 @@
********************************************************************-->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="TextBlockStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<SolidColorBrush x:Key="HighlightFill" Color="#59FFFFFF" />
<SolidColorBrush x:Key="HighlightFill" Color="#59FFFFFF" />
<LinearGradientBrush x:Key="SelectedFill" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#59FFFFFF" Offset="0" />
<GradientStop Color="#33FFFFFF" Offset="1" />
@ -95,8 +98,6 @@
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="Background" Value="{StaticResource CommonFill}" />
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
<Setter Property="Padding" Value="1,0,0,0" />
<Setter Property="Template">
<Setter.Value>
@ -259,5 +260,17 @@
</Setter>
</Style>
<Style x:Key="plusStyle" TargetType="{x:Type TreeViewItem}" BasedOn="{StaticResource {x:Type TreeViewItem}}" >
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding}" />
<TextBlock Style="{StaticResource plusSuffix}" />
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>

4
ExtendedWPFToolkitSolution/Src/Samples/Samples/Samples.csproj

@ -87,9 +87,9 @@
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\WPFToolkit.Extended\WPFToolkit.Extended.csproj">
<ProjectReference Include="..\..\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj">
<Project>{72E591D6-8F83-4D8C-8F67-9C325E623234}</Project>
<Name>WPFToolkit.Extended</Name>
<Name>Xceed.Wpf.Toolkit</Name>
</ProjectReference>
<ProjectReference Include="..\Samples.Infrastructure\Samples.Infrastructure.csproj">
<Project>{A4A049A4-665A-4651-9046-7D06E9D0CCDC}</Project>

2
ExtendedWPFToolkitSolution/Src/Samples/Samples/Shell.xaml

@ -22,7 +22,7 @@
xmlns:infCommands="clr-namespace:Samples.Infrastructure.Commands;assembly=Samples.Infrastructure"
xmlns:prism="http://www.codeplex.com/CompositeWPF"
Background="Black"
Title="Extended WPF Toolkit - Samples" Height="768" Width="1024" >
Title="Extended WPF Toolkit - Samples" Height="768" Width="1050" >
<Grid>
<Image Source="/Images/Background.png" Stretch="None" VerticalAlignment="Top" HorizontalAlignment="Left" Grid.RowSpan="2" />
<Grid Margin="15" >

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/EmptyDataItem.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualList.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualListEnumerator.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualListTableOfContent.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualPage.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualPageManager.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualizedItemInfo.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(DataVirtualization)/VirtualizedItemValueCollection.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(ForeignKeys)/DataGridForeignKeyDescription.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/(ForeignKeys)/DataTableForeignKeyDescription.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncCommitInfo.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncQueryInfo.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AsyncQueryInfoWeakComparer.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/AutoFilterValuesChangedEventArgs.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/BindingPathValueExtractor.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CollectionViewGroupExtensions.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CommitItemsEvent.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CustomDistinctValueItemConfiguration.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

9
ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/(CollectionView)/CustomDistinctValueItemConfigurationCollection.cs

@ -7,13 +7,10 @@
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) 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.
For more features, controls, and fast professional support,
pick up the Plus edition at http://xceed.com/wpf_toolkit
Visit http://xceed.com and follow @datagrid on Twitter.
Visit http://xceed.com and follow @datagrid on Twitter
**********************************************************************/

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

Loading…
Cancel
Save