Browse Source

merged bug fixes into 3.5 solution

pull/1645/head
brianlagunas_cp 16 years ago
parent
commit
03296b8c35
  1. 5
      ExtendedWPFToolkitSolution_35/Src/WPFToolkit.Extended/ColorPicker/ColorPicker.cs
  2. 2
      ExtendedWPFToolkitSolution_35/Src/WPFToolkit.Extended/Themes/Generic.xaml

5
ExtendedWPFToolkitSolution_35/Src/WPFToolkit.Extended/ColorPicker/ColorPicker.cs

@ -257,6 +257,8 @@ namespace Microsoft.Windows.Controls
_okButton = (Button)GetTemplateChild("PART_OkButton");
_okButton.Click += OkButton_Click;
SetSelectedColor(SelectedColor);
}
#endregion //Base Class Overrides
@ -363,6 +365,9 @@ namespace Microsoft.Windows.Controls
private void UpdateColorShadeSelectorPosition(Color color)
{
if (_spectrumSlider == null || _colorShadingCanvas == null)
return;
_currentColorPosition = null;
HsvColor hsv = ColorUtilities.ConvertRgbToHsv(color.R, color.G, color.B);

2
ExtendedWPFToolkitSolution_35/Src/WPFToolkit.Extended/Themes/Generic.xaml

@ -189,7 +189,7 @@
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<ContentControl x:Name="content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
<ContentControl x:Name="content" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" IsTabStop="False" Focusable="False" />
<Rectangle x:Name="overlay" Style="{TemplateBinding OverlayStyle}"/>
<ContentPresenter x:Name="busycontent">
<ContentPresenter.Content>

Loading…
Cancel
Save