diff --git a/ExtendedWPFToolkitSolution/Libs/READ_ME.txt b/ExtendedWPFToolkitSolution/Libs/READ_ME.txt new file mode 100644 index 000000000..973d2375b --- /dev/null +++ b/ExtendedWPFToolkitSolution/Libs/READ_ME.txt @@ -0,0 +1,2 @@ +The file Xceed.Wpf.Samples.SampleData.dll has been created from Xceed.Silverlight.Samples.SampleData.dll of the Silverlight ListBox. +Only the Silverlight has been changed to Wpf. \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/AssemblyVersionInfo.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/AssemblyVersionInfo.cs index 8b8ce9d3f..8fc1aaf0a 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/AssemblyVersionInfo.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/AssemblyVersionInfo.cs @@ -14,12 +14,14 @@ This program is provided to you under the terms of the Microsoft Public ***********************************************************************************/ +#pragma warning disable 0436 [assembly: System.Reflection.AssemblyVersion( _XceedVersionInfo.Version )] +#pragma warning restore 0436 internal static class _XceedVersionInfo { [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] - public const string BaseVersion = "2.0"; + public const string BaseVersion = "2.1"; [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] public const string Version = BaseVersion + ".0.0"; diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Brushes.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Brushes.xaml index 926019403..3606e3ee1 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Brushes.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Brushes.xaml @@ -20,7 +20,7 @@ - @@ -29,13 +29,13 @@ - - - @@ -44,11 +44,11 @@ - - @@ -57,7 +57,7 @@ - @@ -66,28 +66,28 @@ - - - - - - - - @@ -95,57 +95,41 @@ - - - - - - + - + - - @@ -154,18 +138,18 @@ - - - - - diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Theme.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Theme.xaml index d0505cfa6..7a63343e6 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Theme.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Aero/Theme.xaml @@ -81,7 +81,7 @@ - + - + - + @@ -411,7 +411,7 @@ DropDownContextMenuDataContext="{Binding Path=LayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}" > - + @@ -455,16 +455,16 @@ - + - + - + - + @@ -540,10 +540,10 @@ - - - - + + + + @@ -557,21 +557,21 @@ - + - + - + - + - + - + @@ -587,21 +587,21 @@ - + - + - + - + - + - + @@ -622,34 +622,34 @@ - + - + - + - + - + - + - + - + - + - + @@ -703,7 +703,7 @@ @@ -721,7 +721,7 @@ Command="{Binding Path=NewHorizontalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + @@ -729,7 +729,7 @@ Command="{Binding Path=NewVerticalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + + Source="Images/PinClose_Dark.png"/> @@ -1007,7 +1007,7 @@ DropDownContextMenuDataContext="{Binding Path=RootDocumentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Document_CxMenu_Hint}" > - + @@ -1067,19 +1067,19 @@ - + - + - + - + - + @@ -1151,7 +1151,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=SingleContentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}"> - + @@ -1214,19 +1214,19 @@ - + - + - + - + - + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/AssemblyVersionInfo.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/AssemblyVersionInfo.cs index 8b8ce9d3f..8fc1aaf0a 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/AssemblyVersionInfo.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/AssemblyVersionInfo.cs @@ -14,12 +14,14 @@ This program is provided to you under the terms of the Microsoft Public ***********************************************************************************/ +#pragma warning disable 0436 [assembly: System.Reflection.AssemblyVersion( _XceedVersionInfo.Version )] +#pragma warning restore 0436 internal static class _XceedVersionInfo { [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] - public const string BaseVersion = "2.0"; + public const string BaseVersion = "2.1"; [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] public const string Version = BaseVersion + ".0.0"; diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/Theme.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/Theme.xaml index d2571e840..eafa0cdf1 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/Theme.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.Metro/Theme.xaml @@ -135,7 +135,7 @@ - + - + - + @@ -448,7 +448,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=LayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}"> - + @@ -491,21 +491,21 @@ - - - + + + - + - + - + - + @@ -583,10 +583,10 @@ - - - - + + + + @@ -600,21 +600,21 @@ - + - + - + - + - + - + @@ -630,21 +630,21 @@ - + - + - + - + - + - + @@ -665,34 +665,34 @@ - + - + - + - + - + - + - + - + - + - + @@ -746,7 +746,7 @@ @@ -764,7 +764,7 @@ Command="{Binding Path=NewHorizontalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + @@ -772,7 +772,7 @@ Command="{Binding Path=NewVerticalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + + Source="Images/PinClose.png"/> @@ -905,11 +905,11 @@ - + - + @@ -918,7 +918,7 @@ - + @@ -1060,7 +1060,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.DocumentContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=RootDocumentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Document_CxMenu_Hint}"> - + @@ -1126,19 +1126,19 @@ - + - + - + - + - + @@ -1210,7 +1210,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=SingleContentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}"> - + @@ -1272,25 +1272,25 @@ - - - - + + + + - + - + - + - + - + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/AssemblyVersionInfo.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/AssemblyVersionInfo.cs index 8b8ce9d3f..8fc1aaf0a 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/AssemblyVersionInfo.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/AssemblyVersionInfo.cs @@ -14,12 +14,14 @@ This program is provided to you under the terms of the Microsoft Public ***********************************************************************************/ +#pragma warning disable 0436 [assembly: System.Reflection.AssemblyVersion( _XceedVersionInfo.Version )] +#pragma warning restore 0436 internal static class _XceedVersionInfo { [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] - public const string BaseVersion = "2.0"; + public const string BaseVersion = "2.1"; [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] public const string Version = BaseVersion + ".0.0"; diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/Theme.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/Theme.xaml index f137f8882..ba980a289 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/Theme.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock.Themes.VS2010/Theme.xaml @@ -135,7 +135,7 @@ - + - + - + @@ -477,7 +477,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=LayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}"> - + @@ -520,21 +520,21 @@ - - - + + + - + - + - + - + @@ -614,10 +614,10 @@ - - - - + + + + @@ -631,21 +631,21 @@ - + - + - + - + - + - + @@ -661,21 +661,21 @@ - + - + - + - + - + - + @@ -696,34 +696,34 @@ - + - + - + - + - + - + - + - + - + - + @@ -777,7 +777,7 @@ @@ -795,7 +795,7 @@ Command="{Binding Path=NewHorizontalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + @@ -803,7 +803,7 @@ Command="{Binding Path=NewVerticalTabGroupCommand}" Visibility="{Binding Path=IsEnabled, RelativeSource={RelativeSource Self}, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}"> - + + Source="Images/PinClose.png"/> @@ -939,11 +939,11 @@ - + - + @@ -952,7 +952,7 @@ - + @@ -1087,7 +1087,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.DocumentContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=RootDocumentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Document_CxMenu_Hint}"> - + @@ -1150,10 +1150,10 @@ Value="{DynamicResource AvalonDock_ThemeVS2010_BaseColor25}" TargetName="Header" /> - - - - + + + + @@ -1169,25 +1169,25 @@ Value="{DynamicResource AvalonDock_ThemeVS2010_BaseColor24}" TargetName="Header" /> - - - - + + + + - + - + - + - + - + @@ -1260,7 +1260,7 @@ DropDownContextMenu="{Binding Model.Root.Manager.AnchorableContextMenu, RelativeSource={RelativeSource TemplatedParent}}" DropDownContextMenuDataContext="{Binding Path=SingleContentLayoutItem, RelativeSource={RelativeSource TemplatedParent}}" ToolTip="{x:Static avalonDockProperties:Resources.Anchorable_CxMenu_Hint}"> - + @@ -1322,25 +1322,25 @@ - - - - + + + + - + - + - + - + - + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/AssemblyVersionInfo.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/AssemblyVersionInfo.cs index 8b8ce9d3f..8fc1aaf0a 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/AssemblyVersionInfo.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/AssemblyVersionInfo.cs @@ -14,12 +14,14 @@ This program is provided to you under the terms of the Microsoft Public ***********************************************************************************/ +#pragma warning disable 0436 [assembly: System.Reflection.AssemblyVersion( _XceedVersionInfo.Version )] +#pragma warning restore 0436 internal static class _XceedVersionInfo { [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] - public const string BaseVersion = "2.0"; + public const string BaseVersion = "2.1"; [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )] public const string Version = BaseVersion + ".0.0"; diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/AutoHideWindowManager.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/AutoHideWindowManager.cs index b4fc842cb..30618533e 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/AutoHideWindowManager.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/AutoHideWindowManager.cs @@ -38,10 +38,13 @@ internal AutoHideWindowManager(DockingManager manager) public void ShowAutoHideWindow(LayoutAnchorControl anchor) { + if( _currentAutohiddenAnchor.GetValueOrDefault() != anchor ) + { StopCloseTimer(); - _currentAutohiddenAnchor = new WeakReference(anchor); - _manager.AutoHideWindow.Show(anchor); + _currentAutohiddenAnchor = new WeakReference( anchor ); + _manager.AutoHideWindow.Show( anchor ); StartCloseTimer(); + } } public void HideAutoWindow(LayoutAnchorControl anchor = null) @@ -81,6 +84,7 @@ void StopCloseTimer() { _closeTimer.Stop(); _manager.AutoHideWindow.Hide(); + _currentAutohiddenAnchor = null; } } } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/DropDownButton.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/DropDownButton.cs index 4805d0121..02f7ade48 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/DropDownButton.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/DropDownButton.cs @@ -30,10 +30,9 @@ public class DropDownButton : ToggleButton { public DropDownButton() { - this.Unloaded += new RoutedEventHandler(DropDownButton_Unloaded); + this.Unloaded += new RoutedEventHandler(DropDownButton_Unloaded); } - #region DropDownContextMenu /// @@ -120,7 +119,12 @@ void OnContextMenuClosed(object sender, RoutedEventArgs e) void DropDownButton_Unloaded(object sender, RoutedEventArgs e) { + // When changing theme, Unloaded event is called, erasing the DropDownContextMenu. + // Prevent this on theme changes. + if( this.IsLoaded ) + { DropDownContextMenu = null; + } } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/FocusElementManager.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/FocusElementManager.cs index 75d331460..4394a928e 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/FocusElementManager.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/FocusElementManager.cs @@ -87,8 +87,8 @@ static void manager_PreviewGotKeyboardFocus(object sender, KeyboardFocusChangedE { var focusedElement = e.NewFocus as Visual; if (focusedElement != null && - !(focusedElement is LayoutAnchorableTabItem || focusedElement is LayoutDocumentTabItem) && - !(focusedElement is ICommandSource))//Avoid tracking focus for elements like this + !(focusedElement is LayoutAnchorableTabItem || focusedElement is LayoutDocumentTabItem)) + //Avoid tracking focus for elements like this { var parentAnchorable = focusedElement.FindVisualAncestor(); if (parentAnchorable != null) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAutoHideWindowControl.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAutoHideWindowControl.cs index 2be0ffc99..98c87fe44 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAutoHideWindowControl.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutAutoHideWindowControl.cs @@ -478,24 +478,6 @@ protected override Size ArrangeOverride(Size finalSize) return base.ArrangeOverride(finalSize);// new Size(_internalHostPresenter.ActualWidth, _internalHostPresenter.ActualHeight); } - WeakReference _lastFocusedElement = null; - protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e) - { - base.OnGotKeyboardFocus(e); - if (!e.Handled && _internalHostPresenter != null) - { - if (e.NewFocus == _internalHostPresenter) - { - var elementToFocus = _lastFocusedElement.GetValueOrDefault(); - if (elementToFocus != null) - Keyboard.Focus(elementToFocus); - e.Handled = true; - } - else - _lastFocusedElement = new WeakReference(e.NewFocus); - } - } - #region Background /// diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutFloatingWindowControl.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutFloatingWindowControl.cs index b3e9d576d..a6d6c8f9d 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutFloatingWindowControl.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutFloatingWindowControl.cs @@ -34,6 +34,8 @@ namespace Xceed.Wpf.AvalonDock.Controls { public abstract class LayoutFloatingWindowControl : Window, ILayoutControl { + private ResourceDictionary currentThemeResourceDictionary; // = null + static LayoutFloatingWindowControl() { LayoutFloatingWindowControl.ContentProperty.OverrideMetadata(typeof(LayoutFloatingWindowControl), new FrameworkPropertyMetadata(null, null, new CoerceValueCallback(CoerceContentValue))); @@ -177,17 +179,36 @@ internal virtual void UpdateThemeResources(Theme oldTheme = null) { if (oldTheme != null) { + if( oldTheme is DictionaryTheme ) + { + if( currentThemeResourceDictionary != null ) + { + Resources.MergedDictionaries.Remove( currentThemeResourceDictionary ); + currentThemeResourceDictionary = null; + } + } + else + { var resourceDictionaryToRemove = - Resources.MergedDictionaries.FirstOrDefault(r => r.Source == oldTheme.GetResourceUri()); - if (resourceDictionaryToRemove != null) - Resources.MergedDictionaries.Remove( - resourceDictionaryToRemove); + Resources.MergedDictionaries.FirstOrDefault( r => r.Source == oldTheme.GetResourceUri() ); + if( resourceDictionaryToRemove != null ) + Resources.MergedDictionaries.Remove( + resourceDictionaryToRemove ); + } } var manager = _model.Root.Manager; if (manager.Theme != null) { + if( manager.Theme is DictionaryTheme ) + { + currentThemeResourceDictionary = ( ( DictionaryTheme )manager.Theme ).ThemeResourceDictionary; + Resources.MergedDictionaries.Add( currentThemeResourceDictionary ); + } + else + { Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = manager.Theme.GetResourceUri() }); + } } } @@ -352,10 +373,18 @@ void UpdatePositionAndSizeOfPanes() posElement.FloatingTop = Top; posElement.FloatingWidth = Width; posElement.FloatingHeight = Height; - posElement.IsMaximized = this.WindowState == System.Windows.WindowState.Maximized; } } + void UpdateMaximizedState( bool isMaximized ) + { + foreach( var posElement in Model.Descendents().OfType() ) + { + posElement.IsMaximized = isMaximized; + } + } + + protected virtual IntPtr FilterMessage( IntPtr hwnd, int msg, @@ -407,6 +436,14 @@ ref bool handled SetIsDragging(false); } break; + case Win32Helper.WM_SYSCOMMAND: + IntPtr wMaximize = new IntPtr( Win32Helper.SC_MAXIMIZE ); + IntPtr wRestore = new IntPtr( Win32Helper.SC_RESTORE ); + if( wParam == wMaximize || wParam == wRestore ) + { + UpdateMaximizedState( wParam == wMaximize ); + } + break; } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutGridControl.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutGridControl.cs index c70b179b4..59cfa8b41 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutGridControl.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/LayoutGridControl.cs @@ -525,6 +525,7 @@ void ShowResizerOverlayWindow(LayoutGridResizerControl splitter) _resizerWindowHost = new Window() { + SizeToContent = System.Windows.SizeToContent.Manual, ResizeMode = ResizeMode.NoResize, WindowStyle = System.Windows.WindowStyle.None, ShowInTaskbar = false, diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/NavigatorWindow.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/NavigatorWindow.cs index 5ec38eb11..226a0399d 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/NavigatorWindow.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/NavigatorWindow.cs @@ -28,6 +28,8 @@ namespace Xceed.Wpf.AvalonDock.Controls { public class NavigatorWindow : Window { + private ResourceDictionary currentThemeResourceDictionary; // = null + static NavigatorWindow() { DefaultStyleKeyProperty.OverrideMetadata(typeof(NavigatorWindow), new FrameworkPropertyMetadata(typeof(NavigatorWindow))); @@ -61,16 +63,35 @@ internal void UpdateThemeResources(Theme oldTheme = null) { if (oldTheme != null) { + if( oldTheme is DictionaryTheme ) + { + if( currentThemeResourceDictionary != null ) + { + Resources.MergedDictionaries.Remove( currentThemeResourceDictionary ); + currentThemeResourceDictionary = null; + } + } + else + { var resourceDictionaryToRemove = - Resources.MergedDictionaries.FirstOrDefault(r => r.Source == oldTheme.GetResourceUri()); - if (resourceDictionaryToRemove != null) - Resources.MergedDictionaries.Remove( - resourceDictionaryToRemove); + Resources.MergedDictionaries.FirstOrDefault( r => r.Source == oldTheme.GetResourceUri() ); + if( resourceDictionaryToRemove != null ) + Resources.MergedDictionaries.Remove( + resourceDictionaryToRemove ); + } } if (_manager.Theme != null) { + if( _manager.Theme is DictionaryTheme ) + { + currentThemeResourceDictionary = ( ( DictionaryTheme )_manager.Theme ).ThemeResourceDictionary; + Resources.MergedDictionaries.Add( currentThemeResourceDictionary ); + } + else + { Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = _manager.Theme.GetResourceUri() }); + } } } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/OverlayWindow.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/OverlayWindow.cs index 6010ac426..aa4b07bea 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/OverlayWindow.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Controls/OverlayWindow.cs @@ -30,6 +30,8 @@ namespace Xceed.Wpf.AvalonDock.Controls { public class OverlayWindow : Window, IOverlayWindow { + private ResourceDictionary currentThemeResourceDictionary; // = null + static OverlayWindow() { DefaultStyleKeyProperty.OverrideMetadata(typeof(OverlayWindow), new FrameworkPropertyMetadata(typeof(OverlayWindow))); @@ -53,16 +55,35 @@ internal void UpdateThemeResources(Theme oldTheme = null) { if (oldTheme != null) { + if( oldTheme is DictionaryTheme ) + { + if( currentThemeResourceDictionary != null ) + { + Resources.MergedDictionaries.Remove( currentThemeResourceDictionary ); + currentThemeResourceDictionary = null; + } + } + else + { var resourceDictionaryToRemove = - Resources.MergedDictionaries.FirstOrDefault(r => r.Source == oldTheme.GetResourceUri()); - if (resourceDictionaryToRemove != null) - Resources.MergedDictionaries.Remove( - resourceDictionaryToRemove); + Resources.MergedDictionaries.FirstOrDefault( r => r.Source == oldTheme.GetResourceUri() ); + if( resourceDictionaryToRemove != null ) + Resources.MergedDictionaries.Remove( + resourceDictionaryToRemove ); + } } if (_host.Manager.Theme != null) { + if( _host.Manager.Theme is DictionaryTheme ) + { + currentThemeResourceDictionary = ( ( DictionaryTheme )_host.Manager.Theme ).ThemeResourceDictionary; + Resources.MergedDictionaries.Add( currentThemeResourceDictionary ); + } + else + { Resources.MergedDictionaries.Add(new ResourceDictionary() { Source = _host.Manager.Theme.GetResourceUri() }); + } } } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs index e05af9846..0ec8829da 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs @@ -41,6 +41,8 @@ namespace Xceed.Wpf.AvalonDock [TemplatePart(Name="PART_AutoHideArea")] public class DockingManager : Control, IOverlayWindowHost//, ILogicalChildrenContainer { + private ResourceDictionary currentThemeResourceDictionary; // = null + static DockingManager() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DockingManager), new FrameworkPropertyMetadata(typeof(DockingManager))); @@ -266,26 +268,24 @@ public override void OnApplyTemplate() SetupAutoHideWindow(); } - protected override void OnInitialized(EventArgs e) + protected override void OnInitialized( EventArgs e ) { base.OnInitialized(e); - - if (Layout.Manager == this) - { - LayoutRootPanel = CreateUIElementForModel(Layout.RootPanel) as LayoutPanelControl; - LeftSidePanel = CreateUIElementForModel(Layout.LeftSide) as LayoutAnchorSideControl; - TopSidePanel = CreateUIElementForModel(Layout.TopSide) as LayoutAnchorSideControl; - RightSidePanel = CreateUIElementForModel(Layout.RightSide) as LayoutAnchorSideControl; - BottomSidePanel = CreateUIElementForModel(Layout.BottomSide) as LayoutAnchorSideControl; - } - - } void DockingManager_Loaded(object sender, RoutedEventArgs e) { if (!DesignerProperties.GetIsInDesignMode(this)) { + if( Layout.Manager == this ) + { + LayoutRootPanel = CreateUIElementForModel( Layout.RootPanel ) as LayoutPanelControl; + LeftSidePanel = CreateUIElementForModel( Layout.LeftSide ) as LayoutAnchorSideControl; + TopSidePanel = CreateUIElementForModel( Layout.TopSide ) as LayoutAnchorSideControl; + RightSidePanel = CreateUIElementForModel( Layout.RightSide ) as LayoutAnchorSideControl; + BottomSidePanel = CreateUIElementForModel( Layout.BottomSide ) as LayoutAnchorSideControl; + } + //load windows not already loaded! foreach (var fw in Layout.FloatingWindows.Where(fw => !_fwList.Any(fwc => fwc.Model == fw))) _fwList.Add(CreateUIElementForModel(fw) as LayoutFloatingWindowControl); @@ -302,18 +302,21 @@ void DockingManager_Unloaded(object sender, RoutedEventArgs e) if (!DesignerProperties.GetIsInDesignMode(this)) { + if( _autoHideWindowManager != null ) + { _autoHideWindowManager.HideAutoWindow(); - - foreach (var fw in _fwList.ToArray()) - { - //fw.Owner = null; - fw.SetParentWindowToNull(); - fw.KeepContentVisibleOnClose = true; - fw.Close(); - } - - DestroyOverlayWindow(); - FocusElementManager.FinalizeFocusManagement(this); + } + + foreach (var fw in _fwList.ToArray()) + { + //fw.Owner = null; + fw.SetParentWindowToNull(); + fw.KeepContentVisibleOnClose = true; + fw.Close(); + } + + DestroyOverlayWindow(); + FocusElementManager.FinalizeFocusManagement(this); } } @@ -377,6 +380,11 @@ internal UIElement CreateUIElementForModel(ILayoutElement model) newFW.ShowInTaskbar = false; newFW.Show(); + // Do not set the WindowState before showing or it will be lost + if( paneForExtensions != null && paneForExtensions.IsMaximized ) + { + newFW.WindowState = WindowState.Maximized; + } return newFW; } @@ -405,6 +413,11 @@ internal UIElement CreateUIElementForModel(ILayoutElement model) newFW.ShowInTaskbar = false; newFW.Show(); + // Do not set the WindowState before showing or it will be lost + if( paneForExtensions != null && paneForExtensions.IsMaximized ) + { + newFW.WindowState = WindowState.Maximized; + } return newFW; } @@ -2184,7 +2197,7 @@ internal void _ExecuteCloseCommand(LayoutDocument document) if (!document.TestCanClose()) return; - document.Close(); + document.CloseInternal(); if (DocumentClosed != null) { @@ -2673,16 +2686,35 @@ protected virtual void OnThemeChanged(DependencyPropertyChangedEventArgs e) var resources = this.Resources; if (oldTheme != null) { + if( oldTheme is DictionaryTheme ) + { + if( currentThemeResourceDictionary != null ) + { + resources.MergedDictionaries.Remove( currentThemeResourceDictionary ); + currentThemeResourceDictionary = null; + } + } + else + { var resourceDictionaryToRemove = - resources.MergedDictionaries.FirstOrDefault(r => r.Source == oldTheme.GetResourceUri()); - if (resourceDictionaryToRemove != null) - resources.MergedDictionaries.Remove( - resourceDictionaryToRemove); + resources.MergedDictionaries.FirstOrDefault( r => r.Source == oldTheme.GetResourceUri() ); + if( resourceDictionaryToRemove != null ) + resources.MergedDictionaries.Remove( + resourceDictionaryToRemove ); + } } if (newTheme != null) { + if( newTheme is DictionaryTheme ) + { + currentThemeResourceDictionary = ( ( DictionaryTheme )newTheme ).ThemeResourceDictionary; + resources.MergedDictionaries.Add( currentThemeResourceDictionary ); + } + else + { resources.MergedDictionaries.Add(new ResourceDictionary() { Source = newTheme.GetResourceUri() }); + } } foreach (var fwc in _fwList) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs index 0d8919958..02c065dae 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs @@ -623,6 +623,13 @@ public override void WriteXml(System.Xml.XmlWriter writer) base.WriteXml(writer); } + public override void Close() + { + var dockingManager = this.Root.Manager; + if( ( this.Root != null ) && ( this.Root.Manager != null ) ) + dockingManager._ExecuteCloseCommand( this ); + } + #if TRACE public override void ConsoleDump(int tab) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutContent.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutContent.cs index aae6fc1b3..938037d34 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutContent.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutContent.cs @@ -36,22 +36,31 @@ internal LayoutContent() #region Title - private string _title = null; + public static readonly DependencyProperty TitleProperty = + DependencyProperty.Register( "Title", typeof( string ), typeof( LayoutContent ), new UIPropertyMetadata( null, OnTitlePropertyChanged, CoerceTitleValue ) ); + public string Title { - get { return _title; } - set - { - if (_title != value) - { - RaisePropertyChanging("Title"); - _title = value; - RaisePropertyChanged("Title"); - } - } + get { return ( string )GetValue( TitleProperty ); } + set { SetValue( TitleProperty, value ); } } - #endregion + private static object CoerceTitleValue( DependencyObject obj, object value ) + { + var lc = ( LayoutContent )obj; + if( ( ( string )value ) != lc.Title ) + { + lc.RaisePropertyChanging( LayoutContent.TitleProperty.Name ); + } + return value; + } + + private static void OnTitlePropertyChanged( DependencyObject obj, DependencyPropertyChangedEventArgs args ) + { + ( ( LayoutContent )obj ).RaisePropertyChanged( LayoutContent.TitleProperty.Name ); + } + + #endregion //Title #region Content [NonSerialized] @@ -326,20 +335,22 @@ internal bool TestCanClose() return true; } + internal void CloseInternal() + { + var root = Root; + var parentAsContainer = Parent as ILayoutContainer; + parentAsContainer.RemoveChild( this ); + if( root != null ) + root.CollectGarbage(); + + OnClosed(); + } + /// /// Close the content /// /// Please note that usually the anchorable is only hidden (not closed). By default when user click the X button it only hides the content. - public void Close() - { - var root = Root; - var parentAsContainer = Parent as ILayoutContainer; - parentAsContainer.RemoveChild(this); - if (root != null) - root.CollectGarbage(); - - OnClosed(); - } + public abstract void Close(); /// /// Event fired when the content is closed (i.e. removed definitely from the layout) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutDocument.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutDocument.cs index b47c8386d..8f4f330ac 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutDocument.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutDocument.cs @@ -65,6 +65,13 @@ public override void ReadXml(System.Xml.XmlReader reader) base.ReadXml(reader); } + public override void Close() + { + var dockingManager = this.Root.Manager; + if( ( this.Root != null ) && ( this.Root.Manager != null ) ) + dockingManager._ExecuteCloseCommand( this ); + } + #if TRACE public override void ConsoleDump(int tab) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs index ea7b201a7..9b46b0003 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs @@ -264,6 +264,8 @@ public override void WriteXml(System.Xml.XmlWriter writer) writer.WriteAttributeString("FloatingLeft", FloatingLeft.ToString(CultureInfo.InvariantCulture)); if (FloatingTop != 0.0) writer.WriteAttributeString("FloatingTop", FloatingTop.ToString(CultureInfo.InvariantCulture)); + if( IsMaximized ) + writer.WriteAttributeString( "IsMaximized", IsMaximized.ToString() ); base.WriteXml(writer); } @@ -289,6 +291,8 @@ public override void ReadXml(System.Xml.XmlReader reader) _floatingLeft = double.Parse(reader.Value, CultureInfo.InvariantCulture); if (reader.MoveToAttribute("FloatingTop")) _floatingTop = double.Parse(reader.Value, CultureInfo.InvariantCulture); + if( reader.MoveToAttribute( "IsMaximized" ) ) + _isMaximized = bool.Parse( reader.Value ); base.ReadXml(reader); } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.Designer.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.Designer.cs index 92766506d..04a143812 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.Designer.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.Designer.cs @@ -140,7 +140,7 @@ public static string Anchorable_Float { } /// - /// Looks up a localized string similar to Close. + /// Looks up a localized string similar to Hide. /// public static string Anchorable_Hide { get { diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.es.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.es.resx index 5403ddcc8..3f36be18e 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.es.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.es.resx @@ -1,105 +1,123 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Esconder Automáticamente @@ -121,7 +139,7 @@ Ventana Flotante - Cerrar + Esconder Cerrar @@ -156,5 +174,4 @@ Restaurar - \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.fr.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.fr.resx index 5e50b1a5e..a8f803e09 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.fr.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.fr.resx @@ -1,159 +1,177 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cacher Automatiquement - - - Cacher Automatiquement - - - Cacher - - - Position de la Fenêtre - - - Ancrer - - - Ancrer comme Onglet de Document - - - Flottante - - - Fermer - - - Fermer - - - Fermer Tout Sauf Ceci - - - Position de la Fenêtre - - - Ancrer Comme Onglet de Document - - - Flottante - - - Déplacer Vers Le Groupe d'Onglets Suivant - - - Déplacer Vers Le Groupe d'Onglets Précédent - - - Nouveau Groupe d'Onglets Horizontal - - - Nouveau Groupe d'Onglets Vertical - - - Plein Écran - - - Restaurer - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cacher Automatiquement + + + Cacher Automatiquement + + + Cacher + + + Position de la Fenêtre + + + Ancrer + + + Ancrer comme Onglet de Document + + + Flottante + + + Cacher + + + Fermer + + + Fermer Tout Sauf Ceci + + + Position de la Fenêtre + + + Ancrer Comme Onglet de Document + + + Flottante + + + Déplacer Vers Le Groupe d'Onglets Suivant + + + Déplacer Vers Le Groupe d'Onglets Précédent + + + Nouveau Groupe d'Onglets Horizontal + + + Nouveau Groupe d'Onglets Vertical + + + Plein Écran + + + Restaurer + \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.it.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.it.resx index 886be28ea..9ffd263b8 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.it.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.it.resx @@ -139,7 +139,7 @@ Finestra Mobile - Chiudi + Nascondi Chiudi diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.pt-BR.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.pt-BR.resx index f34cf1e80..4c1cd7828 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.pt-BR.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.pt-BR.resx @@ -1,103 +1,122 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Esconder Automaticamente @@ -120,7 +139,7 @@ Flutuar - Fechar + Esconder Fechar diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.resx index 0a2edd6cd..03934e59d 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.resx @@ -139,7 +139,7 @@ Float - Close + Hide Close diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ro.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ro.resx index 3df623221..c9c01ddc8 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ro.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ro.resx @@ -1,103 +1,122 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Ascunde automat @@ -120,7 +139,7 @@ Plutește - Închide + Ascunde Închide @@ -155,5 +174,4 @@ Restaurează - \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ru.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ru.resx index 37850c469..a33c041f4 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ru.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.ru.resx @@ -1,103 +1,122 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Скрывать Автоматически @@ -120,7 +139,7 @@ Отсоединить - Закрыть + Скрыть Закрыть diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.sv.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.sv.resx index df40f57af..520fbd202 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.sv.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.sv.resx @@ -1,103 +1,122 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Dölj automatiskt @@ -120,7 +139,7 @@ Koppla loss - Stäng + Dölj Stäng diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.zh-Hans.resx b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.zh-Hans.resx index 0ecbde1d5..ebed0ff1e 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.zh-Hans.resx +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Properties/Resources.zh-Hans.resx @@ -1,103 +1,122 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 自动隐藏 @@ -120,7 +139,7 @@ 漂浮 - 关闭 + 隐藏 关闭 @@ -155,5 +174,4 @@ 恢复 - \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Core/Themes/StaticResourceKey.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/DictionaryTheme.cs similarity index 55% rename from ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Core/Themes/StaticResourceKey.cs rename to ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/DictionaryTheme.cs index e7fb9b48d..1b8da72bd 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/Core/Themes/StaticResourceKey.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/DictionaryTheme.cs @@ -15,42 +15,29 @@ This program is provided to you under the terms of the Microsoft Public ***********************************************************************************/ using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using System.Windows; -namespace Xceed.Wpf.Toolkit.Themes +namespace Xceed.Wpf.AvalonDock.Themes { - public sealed class StaticResourceKey : ResourceKey + public abstract class DictionaryTheme : Theme { - private string _key; - public string Key + public DictionaryTheme( ResourceDictionary themeResourceDictionary ) { - get - { - return _key; - } + this.ThemeResourceDictionary = themeResourceDictionary; } - private Type _type; - public Type Type + public ResourceDictionary ThemeResourceDictionary { - get - { - return _type; - } + get; + private set; } - public StaticResourceKey( Type type, string key ) + public override Uri GetResourceUri() { - _type = type; - _key = key; - } - - public override System.Reflection.Assembly Assembly - { - get - { - return _type.Assembly; - } + return null; } } } diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/generic.xaml b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/generic.xaml index 0c87ada57..a8c5bbdd1 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/generic.xaml +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/generic.xaml @@ -49,7 +49,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -170,10 +213,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + AutoSelectBehavior: + + The value of the "AutoSelectBehavior" property determines whether the content of the AutoSelectTextBox will be selected or not when the control gets the focus. + + + AutoMoveFocus: + + Effect with "MaxLength" property: + + + Setting the "MaxLength" of the text box allows the focus to move from the AutoSelectTextBox once the max length has been reached. + In the following "Telephone Number" fields, the "MaxLength" properties of the controls have been set to 3, 3, and 4. + + + + + + + + + + + + + + + + + Effect with Arrow keys + + + Setting "AutoMoveFocus" to true also allows navigating the focus through the controls using the arrow keys to move the focus up, down, left, or right. + You are no longer limited to the "left-right" navigation of the "Tab, Shift-Tab" keys. + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.cs.txt new file mode 100644 index 000000000..8abb2b442 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.cs.txt @@ -0,0 +1,35 @@ +/************************************************************************************* + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +using System; +using System.Windows.Controls; +using Xceed.Wpf.Toolkit; +using System.Windows.Media; +using System.Windows; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.AvalonDock.Views +{ + /// + /// Interaction logic for AvalonDockView.xaml + /// + public partial class AvalonDockView : DemoView + { + public AvalonDockView() + { + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.txt new file mode 100644 index 000000000..25cb1f24c --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/AvalonDockView.xaml.txt @@ -0,0 +1,120 @@ + + + + + The AvalonDock layout system allows developers to create customizable layouts using a window docking system similar to what is found in many popular integrated development environements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.cs.txt new file mode 100644 index 000000000..2c6e26439 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.cs.txt @@ -0,0 +1,49 @@ +/************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +#if !OPEN_SOURCE +using Xceed.Wpf.Toolkit.Chart; +#endif +using System.Windows.Media; +using System.Windows.Controls; +using System.Windows; +using System; +using System.Diagnostics; +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Chart.Views +{ + /// + /// Interaction logic for ChartStylingLineSeriesView.xaml + /// + public partial class ChartStylingLineSeriesView : DemoView + { + public ChartStylingLineSeriesView() + { + InitializeComponent(); + } + +#if !OPEN_SOURCE + #region Event Handler + + private void LegendButtonClick( object sender, RoutedEventArgs e ) + { + Random r = new Random(); + _series.DataPoints.Add( new DataPoint( _series.DataPoints.Count, r.NextDouble() ) ); + } + + #endregion +#endif + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.txt new file mode 100644 index 000000000..f52a46114 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingLineSeriesView.xaml.txt @@ -0,0 +1,167 @@ + + + + + This sample demonstrates how a series with a line layout type and a legend can be styled via DataTemplates. The legend contains a button to add new DataPoints. + + Please move mouse along the line and over the markers to see simple effects. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.cs.txt new file mode 100644 index 000000000..f003ed49b --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.cs.txt @@ -0,0 +1,39 @@ +/************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +#if !OPEN_SOURCE +using Xceed.Wpf.Toolkit.Chart; +#endif +using System.Windows.Media; +using System.Windows.Controls; +using System; +using System.Windows.Media.Imaging; +using System.Windows; +using System.Diagnostics; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Chart.Views +{ + /// + /// Interaction logic for ChartStylingPieSeriesView.xaml + /// + public partial class ChartStylingPieSeriesView : DemoView + { + public ChartStylingPieSeriesView() + { + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.txt new file mode 100644 index 000000000..6175cd0ee --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChartStylingPieSeriesView.xaml.txt @@ -0,0 +1,198 @@ + + + + + This sample demonstrates how a series with a pie layout type can be styled via DataTemplates. The series, hint line, and hint label are all styled. + + Please move the mouse over the pie slices to view the tooltips of the pie layout DataTemplate. + + + + + + + + + Mary + Brad + Anne + Eric + Lisa + Carl + Whole Team + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.cs.txt new file mode 100644 index 000000000..80b7378a3 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.cs.txt @@ -0,0 +1,129 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.CheckLists.Views +{ + /// + /// Interaction logic for CheckListsView.xaml + /// + public partial class CheckListsView : DemoView + { + public CheckListsView() + { + InitializeComponent(); + this.DataContext = new List() + { + new Person(){ID=101, FirstName="John", LastName="Smith"}, + new Person(){ID=102, FirstName="Janel", LastName="Leverling"}, + new Person(){ID=103, FirstName="Laura", LastName="Callahan"}, + new Person(){ID=104, FirstName="Robert", LastName="King"}, + new Person(){ID=105, FirstName="Margaret", LastName="Peacock"}, + new Person(){ID=106, FirstName="Andrew", LastName="Fuller"}, + new Person(){ID=107, FirstName="Anne", LastName="Dodsworth"}, + new Person(){ID=108, FirstName="Nancy", LastName="Davolio"}, + new Person(){ID=109, FirstName="Naomi", LastName="Suyama"}, + }; + } + + } + + public class Person : INotifyPropertyChanged + { + private bool _isSelected; + private int _ID; + private string _firstName; + private string _lastName; + + public bool IsSelected + { + get + { + return _isSelected; + } + set + { + _isSelected = value; + OnPropertyChanged( "IsSelected" ); + } + } + + public int ID + { + get + { + return _ID; + } + set + { + _ID = value; + OnPropertyChanged( "ID" ); + } + } + + public string FirstName + { + get + { + return _firstName; + } + set + { + _firstName = value; + OnPropertyChanged( "FirstName" ); + } + } + + public string LastName + { + get + { + return _lastName; + } + set + { + _lastName = value; + OnPropertyChanged( "LastName" ); + } + } + + public string ModelDisplay + { + get + { + string completeName = string.Format("{0} {1}", FirstName, LastName).PadRight(20); + return string.Format( + "ID={0}: Name= {1}, IsSelected= {2}", + ID, + completeName, + IsSelected ); + } + } + + public event PropertyChangedEventHandler PropertyChanged; + protected void OnPropertyChanged( string propertyName ) + { + if( PropertyChanged != null ) + { + PropertyChanged( this, new PropertyChangedEventArgs( propertyName ) ); + PropertyChanged( this, new PropertyChangedEventArgs( "ModelDisplay" ) ); + } + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.txt new file mode 100644 index 000000000..53587d0a7 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/CheckListsView.xaml.txt @@ -0,0 +1,183 @@ + + + + + The CheckListBox and CheckComboBox controls represent a list of selected items that are displayed as CheckBoxes. Besides the common SelectedItem and SelectedItems properties, these controls give developers more alternatives for managing and handling selections. + + + + + + ID + FirstName + LastName + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.cs.txt new file mode 100644 index 000000000..4d8b0dc2f --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.cs.txt @@ -0,0 +1,33 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +using System.Windows.Controls; +using Xceed.Wpf.Toolkit; +using System.Diagnostics; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Window.Views +{ + /// + /// Interaction logic for ChildWindowView.xaml + /// + public partial class ChildWindowView : DemoView + { + public ChildWindowView() + { + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.txt new file mode 100644 index 000000000..3a2628d68 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ChildWindowView.xaml.txt @@ -0,0 +1,148 @@ + + + + + The ChildWindow control can be used to create a window that is displayed within the bounds of a specific parent container. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.cs.txt new file mode 100644 index 000000000..296fda05a --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.cs.txt @@ -0,0 +1,34 @@ +/************************************************************************************* + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ***********************************************************************************/ + +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Color.Views +{ + /// + /// Interaction logic for ColorView.xaml + /// + public partial class ColorView : DemoView + { + public ColorView() + { + InitializeComponent(); + } + + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.txt new file mode 100644 index 000000000..7401c1987 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ColorView.xaml.txt @@ -0,0 +1,297 @@ + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.cs.txt new file mode 100644 index 000000000..b678cdba0 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.cs.txt @@ -0,0 +1,36 @@ +/************************************************************************************* + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ***********************************************************************************/ + +using System.Data; +using Xceed.Wpf.DataGrid; +using System.Diagnostics; +using Xceed.Wpf.Samples.SampleData; +using System.Collections.ObjectModel; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.DataGrid.Views +{ + /// + /// Interaction logic for DataGridView.xaml + /// + public partial class DataGridView : DemoView + { + public DataGridView() + { + this.DataContext = SampleDataProvider.GetOrders(); + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.txt new file mode 100644 index 000000000..74e49b7d2 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DataGridView.xaml.txt @@ -0,0 +1,183 @@ + + + + + Extended WPF Toolkit includes a powerful and fast datagrid control with many improvements over the stock WPF datagrid. In addition to providing a modern experience with the smooth scrolling and fully animated Tableflow view (can be turned off), it also provides zero-lag background data virtualization. Try a basic sample here. There are too many features and options to showcase in this sample. An even more feature-rich edition of this datagrid is available + + here. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.cs.txt new file mode 100644 index 000000000..c61a8ca98 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.cs.txt @@ -0,0 +1,29 @@ +/************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.DateTime.Views +{ + /// + /// Interaction logic for DateTimeView.xaml + /// + public partial class DateTimeView : DemoView + { + public DateTimeView() + { + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.txt new file mode 100644 index 000000000..efeb33172 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DateTimeView.xaml.txt @@ -0,0 +1,152 @@ + + + + + + The DateTimePicker and TimePicker controls let you select the date and the time in several ways. The TimePicker is used in the DateTimePicker. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DisplayLocalizationRes.Designer.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DisplayLocalizationRes.Designer.cs.txt new file mode 100644 index 000000000..34a83eeca --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DisplayLocalizationRes.Designer.cs.txt @@ -0,0 +1,180 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.296 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.PropertyGrid.Views { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class DisplayLocalizationRes { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal DisplayLocalizationRes() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Xceed.Wpf.Toolkit.LiveExplorer.Samples.PropertyGrid.Views.DisplayLocalizationRes", typeof(DisplayLocalizationRes).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Details. + /// + internal static string DetailsCategory { + get { + return ResourceManager.GetString("DetailsCategory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Favorite actor 1 (no DisplayName). + /// + internal static string FavoriteActor1 { + get { + return ResourceManager.GetString("FavoriteActor1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This property's type is an enum whose values have no DisplayName attributes. These values displayed are provided by the ToString() method.. + /// + internal static string FavoriteActor1Desc { + get { + return ResourceManager.GetString("FavoriteActor1Desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Favorite actor 2 (with DisplayName). + /// + internal static string FavoriteActor2 { + get { + return ResourceManager.GetString("FavoriteActor2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This property's type is an enum whose values are decorated with the ExtendedDisplayName attribute. Combined with the EnumDisplayNameConverter, this allows display values to be customized.. + /// + internal static string FavoriteActor2Desc { + get { + return ResourceManager.GetString("FavoriteActor2Desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Favorite actor 3. + /// + internal static string FavoriteActor3 { + get { + return ResourceManager.GetString("FavoriteActor3", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "(Not listed)" enum value shows that enum values can also be localized.. + /// + internal static string FavoriteActor3Desc { + get { + return ResourceManager.GetString("FavoriteActor3Desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to First name. + /// + internal static string FirstName { + get { + return ResourceManager.GetString("FirstName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to First name of that person. + /// + internal static string FirstNameDesc { + get { + return ResourceManager.GetString("FirstNameDesc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Information. + /// + internal static string InfoCategory { + get { + return ResourceManager.GetString("InfoCategory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Last name. + /// + internal static string LastName { + get { + return ResourceManager.GetString("LastName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Usually the familly name of the person. + /// + internal static string LastNameDesc { + get { + return ResourceManager.GetString("LastNameDesc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (Not listed). + /// + internal static string NotListed { + get { + return ResourceManager.GetString("NotListed", resourceCulture); + } + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.cs.txt new file mode 100644 index 000000000..452fbcc17 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.cs.txt @@ -0,0 +1,45 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Button.Views +{ + /// + /// Interaction logic for DropDownSplitButtonView.xaml + /// + public partial class DropDownSplitButtonView : DemoView + { + public DropDownSplitButtonView() + { + InitializeComponent(); + } + + private void DropDownButton_Click( object sender, System.Windows.RoutedEventArgs e ) + { + + } + + private void Button_Click( object sender, System.Windows.RoutedEventArgs e ) + { + _dropDownButton.IsOpen = false; + _splitButton.IsOpen = false; + } + + private void SplitButton_Click( object sender, System.Windows.RoutedEventArgs e ) + { + Xceed.Wpf.Toolkit.MessageBox.Show( "Thanks for clicking me!", "SplitButton Click" ); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.txt new file mode 100644 index 000000000..8ef44acc7 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/DropDownSplitButtonView.xaml.txt @@ -0,0 +1,74 @@ + + + + + The DropDownButton control is a button that when clicked displays a drop down in which you can place any custom content within. + + + The SplitButton control is a button that can be clicked and also provides a drop down in which you can place any custom content within. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.cs.txt new file mode 100644 index 000000000..9905c356a --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.cs.txt @@ -0,0 +1,50 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +using System; +using System.IO; +using System.Windows; +using System.Windows.Resources; +using Xceed.Wpf.Samples.SampleData; +using System.ComponentModel; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.ListBox.Views +{ + /// + /// Interaction logic for ListBoxView.xaml + /// + public partial class ListBoxView : DemoView + { + #region Initialization + + public ListBoxView() + { +#if !OPEN_SOURCE + this.DataContext = SampleDataProvider.GetOrders(); +#endif + + InitializeComponent(); + +#if !OPEN_SOURCE + //Add the default GroupDescriptions to the ListBox's GroupDescriptions collection. + _listBox.GroupDescriptions.Add( this.Resources[ "shipCountryGroupDescription" ] as GroupDescription ); + _listBox.GroupDescriptions.Add( this.Resources[ "shipCityGroupDescription" ] as GroupDescription ); +#endif + } + + #endregion + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.txt new file mode 100644 index 000000000..03ebf80c7 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/ListBoxView.xaml.txt @@ -0,0 +1,1044 @@ + + + + + + Dress Up Your App in Style in Minutes + + + Supports implicit styles, so the entire listbox can be styled in minutes with a couple of lines of code. Also supports explicit styles and Expression Blend. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ShipName + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.cs.txt new file mode 100644 index 000000000..57e94e0c5 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.cs.txt @@ -0,0 +1,43 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +using System; +using System.IO; +using System.Windows; +using System.Windows.Resources; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Magnifier.Views +{ + /// + /// Interaction logic for MagnifierView.xaml + /// + public partial class MagnifierView : DemoView + { + public MagnifierView() + { + InitializeComponent(); + + // Load and display the RTF file. + Uri uri = new Uri( "pack://application:,,,/Xceed.Wpf.Toolkit.LiveExplorer;component/Samples/Magnifier/Resources/SampleText.rtf" ); + StreamResourceInfo info = Application.GetResourceStream( uri ); + using( StreamReader txtReader = new StreamReader( info.Stream ) ) + { + _txtContent.Text = txtReader.ReadToEnd(); + } + } + + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.txt new file mode 100644 index 000000000..a7db04319 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MagnifierView.xaml.txt @@ -0,0 +1,99 @@ + + + + + + The Magnifier control allows the user to magnify parts of an application. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.cs.txt new file mode 100644 index 000000000..e82ad5439 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.cs.txt @@ -0,0 +1,35 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Text.Views +{ + /// + /// Interaction logic for MaskedTextboxView.xaml + /// + public partial class MaskedTextboxView : DemoView + { + public MaskedTextboxView() + { + InitializeComponent(); + _mask.TextChanged += new System.Windows.Controls.TextChangedEventHandler( _mask_TextChanged ); + } + + void _mask_TextChanged( object sender, System.Windows.Controls.TextChangedEventArgs e ) + { + _maskedTextBox.Value = null; + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.txt new file mode 100644 index 000000000..3a72919e2 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MaskedTextboxView.xaml.txt @@ -0,0 +1,90 @@ + + + + + The MaskedTextBox control lets you display and edit values based on a mask. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.cs.txt new file mode 100644 index 000000000..a661ee8dd --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.cs.txt @@ -0,0 +1,61 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +using System.Data; +using Xceed.Wpf.DataGrid; +using System.Diagnostics; +using System.Windows.Controls; +using System.Windows.Data; +using Xceed.Wpf.Samples.SampleData; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.DataGrid.Views +{ + /// + /// Interaction logic for MultiColumnComboBox.xaml + /// + public partial class MultiColumnComboBoxView : DemoView + { + public MultiColumnComboBoxView() + { +#if !OPEN_SOURCE + this.DataContext = SampleDataProvider.GetOrders(); +#endif + InitializeComponent(); + } + +#if !OPEN_SOURCE + private void OnGroupCheck( object sender, System.Windows.RoutedEventArgs e ) + { + DataGridCollectionView collectionView = ( DataGridCollectionView )_combo.ItemsSource; + bool isChecked = ( ( CheckBox )sender ).IsChecked.GetValueOrDefault( false ); + bool isGrouped = ( collectionView.GroupDescriptions.Count > 0 ); + + if( isGrouped != isChecked ) + { + if( isChecked ) + { + collectionView.GroupDescriptions.Add( new PropertyGroupDescription( "ShipCountry" ) ); + collectionView.GroupDescriptions.Add( new PropertyGroupDescription( "ShipCity" ) ); + } + else + { + collectionView.GroupDescriptions.Clear(); + } + } + } +#endif + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.txt new file mode 100644 index 000000000..3c0bbdacb --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiColumnComboBoxView.xaml.txt @@ -0,0 +1,160 @@ + + + + + The multi-column combo box uses the power of Xceed's datagrid control to create an advanced ComboBox. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.cs.txt new file mode 100644 index 000000000..ac0093655 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.cs.txt @@ -0,0 +1,84 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +using System.Collections.Generic; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Text.Views +{ + public class Movie + { + public string Title + { + get; + set; + } + + public string Review + { + get; + set; + } + + public double Rating + { + get; + set; + } + } + + /// + /// Interaction logic for MultiLineTextEditor.xaml + /// + public partial class MultiLineTextEditorView : DemoView + { + public MultiLineTextEditorView() + { + InitializeComponent(); + _dataGrid.DataContext = InitMovieList(); + } + + private List InitMovieList() + { + List movieList = new List(); + movieList.Add( new Movie() + { + 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, 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 criminal.", + Rating = 7.8 + } ); + movieList.Add( new Movie() + { + Title = "Indiana Jones", + Review = "Harrison Ford strikes back for an action-packed movie in the jungle to find a mysterious Crystal skull.", + Rating = 6.4 + } ); + + return movieList; + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.txt new file mode 100644 index 000000000..c05b804bc --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/MultiLineTextEditorView.xaml.txt @@ -0,0 +1,61 @@ + + + + + + The MultiLineTextEditor is a TextBox that allows you to edit text that is too long to display in a regular TextBox. The popup is resizable to accommodate any text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.cs.txt new file mode 100644 index 000000000..c1127a6c9 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.cs.txt @@ -0,0 +1,62 @@ +/************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + *************************************************************************************/ + +using System.Collections.Generic; +using System.Globalization; +using System; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Numeric.Views +{ + /// + /// Interaction logic for NumericView.xaml + /// + public partial class NumericView : DemoView + { + public NumericView() + { + this.Cultures = new List() { 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 Cultures + { + get; + private set; + } + } + + + public class FormatObject + { + public string Value + { + get; + set; + } + + public string DisplayValue + { + get; + set; + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.txt new file mode 100644 index 000000000..e1bf46ee1 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/NumericView.xaml.txt @@ -0,0 +1,217 @@ + + + + + Numeric up-down controls provide a TextBox with button spinners that allow incrementing and decrementing numeric values by using the spinner buttons, keyboard up/down arrows, or mouse wheel. + + + The following controls are available to support various native numeric types: + + ByteUpDown, ShortUpDown, IntegerUpDown, LongUpDown, SingleUpDown, DoubleUpDown, DecimalUpDown, CalculatorUpDown. + + + All these numeric types support the following properties. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Infinity and -Infinity input will not be accepted if Maximum and/or Minimum values does not allow them. + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.cs.txt new file mode 100644 index 000000000..1f5ef0758 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.cs.txt @@ -0,0 +1,32 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +using System.Windows.Data; +using Xceed.Wpf.Toolkit.LiveExplorer; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Pie.Views +{ + /// + /// Interaction logic for PieChartView.xaml + /// + public partial class PieChartView : DemoView + { + public PieChartView() + { + InitializeComponent(); + } + } +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.txt new file mode 100644 index 000000000..ebb99d05f --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieChartView.xaml.txt @@ -0,0 +1,240 @@ + + + + + Obviously, the Pie control can be used to create a pie chart. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.cs.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.cs.txt new file mode 100644 index 000000000..86f5e632b --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.cs.txt @@ -0,0 +1,32 @@ +/*************************************************************************************** + + Extended WPF Toolkit + + Copyright (C) 2007-2013 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 + + For more features, controls, and fast professional support, + pick up the Plus Edition at http://xceed.com/wpf_toolkit + + Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids + + ************************************************************************************/ + +using System.Windows.Data; + +namespace Xceed.Wpf.Toolkit.LiveExplorer.Samples.Pie.Views +{ + /// + /// Interaction logic for PieProgressView.xaml + /// + public partial class PieProgressView : DemoView + { + public PieProgressView() + { + InitializeComponent(); + } + } + +} diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.txt b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.txt new file mode 100644 index 000000000..15b3ceb81 --- /dev/null +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/CodeFiles/PieProgressView.xaml.txt @@ -0,0 +1,103 @@ + + + + + The Pie control properties can be animated to create various effects and controls like this circular progress bar. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +