Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all 4964 articles
Browse latest View live

Created Unassigned: DateTimePicker : Step per DateTimePart [22219]

$
0
0
Based on discussion https://wpftoolkit.codeplex.com/discussions/652686.

Users wants to be able to set the Step of the TimePicker (included in the DateTimePicker) to increment/decrement by 5 minutes instead of 1 min, without changing the Step of the Hours.

New Post: Set minimum date and time spinner steps

$
0
0
Hi,

I believe you are talking about the Control DateTimePicker.

You can try this :
<xctk:DateTimePicker  Value="{Binding ., Source={x:Static sys:DateTime.Now}}"
                           Minimum="{Binding ., Source={x:Static sys:DateTime.Now}}"
                           DefaultValue="{Binding ., Source={x:Static sys:DateTime.Now}}"/>
This will set the current date+time as the minimum "selectable" date in the calendar and Automatically show the current date as default.
For the Time spinner to increase in steps of 5 minutes instead of 1 minute,
-starting at v2.9, you have access to DateTimePicker.Step property which increment/decrement the selected Date part by this Step value.
-starting a v3.1 the TimePicker.Step property is binded to the DateTimePicker.Step property. But again, this TimePicker.Step property will increment/decrement the selected time part by this Step value. So setting it to 5, will increment/decrement hours by 5 and minutes by 5.
Issue https://wpftoolkit.codeplex.com/workitem/22219 has been created to set a Step per Time part.

New Post: Custom Style Template for PropertyGrid not Working, Any Ideas?

$
0
0
I have added the generic.xaml but it still will not let me style the control. It now just give a "Copy Style failed." within the VS Designer or Blend when I tried to copy the default style to make changes to it.

Here is what I am including:

<ResourceDictionary Source="/Xceed.Wpf.Toolkit;component/themes/generic.xaml" />

New Post: Custom Style Template for PropertyGrid not Working, Any Ideas?

New Post: Text color in a propertygrid

$
0
0
hi,

How to change the text color in a propertygrid. I want to display the values in white in this screenshot. Image
Thanks

PS : I'm using mahapps dark theme and the propertygrid is displayed in a flyout

New Post: Propertygrid CheckedTreeView (DropDownButton)

$
0
0
Hello,

i want create dynamically a Tree from Database like this.

-Demo1
  • SubDemo11
    • SubDemo111
  • SubDemo12
    -Demo2
The idea was when i click on drop-down-button after propertygrid is loaded i see the tree where i can check the elements i need.

Is this possible?

Can you show me the way to do this or perhaps give me a little example.

Thanks a lot.

Paul

New Post: Set minimum date and time spinner steps

$
0
0
Thank you for the reply, the code you suggested worked nicely!

Congratulations for the great work!

Commented Unassigned: PropertyGrid Category Header Style [22206]

$
0
0
How do we style the PropertyGrid Category Header (GroupItem)? I would like to be able to style the Background, Border and glyphs (Up_Arrow and Down_Arrow) in the Category Header. I can style other elements (including editors etc) but I can't see a way to style the Category Header. I have tried to replace the template (starting with the template provided by the VS Edit Template/Edit Copy tool) and even though I change colors etc for what appears to be the relevant elements in the template the Category Header remains unchanged. The one exception is the Foreground color which I can change in the Category Header.

Thank you,

Scott
Comments: ** Comment from web user: ssugden **

Hi,

Thanks for that, but that is where I am making the changes and it has no effect. Here is my entire controltemplate.triggers for the style for PropertyItemBase. Note that I have a number of brush and color resource keys that I am using but I have set the IsMouseOver and IsSelected background to Green and Red respectively for this example.

Any help would be appreciated. Thank you,

```
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="PART_Name" Property="Background" Value="Green" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="PART_Name" Property="Background" Value="Red" />
<Setter TargetName="PART_Name" Property="TextElement.Foreground" Value="{DynamicResource DefaultForegroundBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" TargetName="PART_ValueContainer" Value="{DynamicResource DisabledForgroundBrush}" />
<Setter Property="Foreground" TargetName="_text" Value="{DynamicResource DisabledForgroundBrush}" />
</Trigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding ShowDescriptionByTooltip, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=xctk:PropertyGrid}}" Value="True" />
<Condition Binding="{Binding Description, RelativeSource={RelativeSource Self}, Converter={StaticResource IsStringEmptyConverter}}" Value="False" />
</MultiDataTrigger.Conditions>
<Setter Property="ToolTipService.ToolTip" Value="{Binding Description, RelativeSource={RelativeSource TemplatedParent}}" TargetName="PART_Name" />
</MultiDataTrigger>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip"
Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors).CurrentItem.ErrorContent}" />
</Trigger>
<Trigger Property="Visibility" Value="Visible" SourceName="_expandableButton">
<Setter Property="Focusable" Value="False" />
</Trigger>

<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.Local}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/Local11.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.Resource}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/Resource11.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.Databinding}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/Database11.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.Inheritance}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/Inheritance11.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.StyleSetter}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/Style11.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ElementName=_optionsImage, Path=ToolTip}"
Value="{x:Static xctk:StringConstants.AdvancedProperties}">
<Setter TargetName="_optionsImage"
Property="Source"
Value="pack://application:,,,/Xceed.Wpf.Toolkit;component/PropertyGrid/Images/AdvancedProperties11.png" />
</DataTrigger>
</ControlTemplate.Triggers>
```


New Post: DateTimePicker popup size

$
0
0
I will attach three images:
Pic1: You can see that only the "20" of 2016 shows
Pic2: Shows that the year completely disappears for long months.
Pic3: Using May, you can see that the month, year show up for short months

Sorry for the delayed response.

Image

Image

Image)

New Comment on "DateTimePicker"

$
0
0
The event ValueChanged is firing twice for each event occurrence.

New Post: PropertyGrid search improvements

$
0
0
It would be nice to some improvements to the PropertyGrid search bar such as:

Search including subclasses (ExpandableObject)
Search including any point of a property name, not just the beginning of it
Etc

New Comment on "MaskedTextBox"

$
0
0
How to clear text? When i used Clear() control is became unusable.

New Post: propertyGrid show items for expanded collection

$
0
0
How, do I display a ObservableCollection<> of custom objects in the PropertyGrid, in which each List Item can be expanded to display the custom objects properties. (ie:

----PropertyGrid-----

CoreClass
  • CoreClass Property1
  • (+/-) ObservableCollection< CustomClass >
    • (+/-) CustomClass.Object1
      • Property1: Value
      • Property2: Value

      • PropertyN: Value
    • (+/-) CustomClass.Object2
      • Property1: Value
      • Property2: Value

      • PropertyN: Value
If I use [ExpandableObject] on the ObservableCollection<> it only shows the Counts property.

Commented Unassigned: DoubleUpDown handles 0 and .1 weird [22210]

$
0
0
When setting the increment to .1, when I shift up and down and pass and .1 it displays -1.38777878078145E-16 for 0 and 0.0999999999999999 for 1
Comments: ** Comment from web user: BoucherS **

Hi,

You are right, adding
```
FormatString="{}{0:N1}"
```
will not fix your case. This "FormatString" format will only work in v3.0 (which is about to be released).
In the meantime, try using it by adding :
```
FormatString="N1"
```
Your result will be limited to 1 decimal place. No strange values will appear while using the Up/Down arrows from -0.5 to 1.5.
By the way, I don't get "0.0999999999999999 for 1". It looks pretty far from 1 !
Thanks.

Commented Unassigned: DoubleUpDown handles 0 and .1 weird. [22211]

$
0
0
When setting the increment to .1, when I shift up and down and pass and .1 it displays -1.38777878078145E-16 for 0 and 0.0999999999999999 for 1
Comments: ** Comment from web user: BoucherS **

related to case http://wpftoolkit.codeplex.com/workitem/22210


Closed Unassigned: NumericUpDown handles .1 and 0 weird [22212]

$
0
0
When setting the increment to .1, when I shift up and down and pass and .1 it displays -1.38777878078145E-16 for 0 and 0.0999999999999999 for 1
Comments: Dupplicate of http://wpftoolkit.codeplex.com/workitem/22211

Commented Unassigned: DoubleUpDown handles 0 and .1 weird [22210]

$
0
0
When setting the increment to .1, when I shift up and down and pass and .1 it displays -1.38777878078145E-16 for 0 and 0.0999999999999999 for 1
Comments: ** Comment from web user: jhebbel **

That was a typo, its for .1, and I want the field to have more resolution than .1, I just want the up/down to increment by .1

Commented Unassigned: Color name not displayed when using custom color list [22213]

$
0
0
I need to use a color picker in WPF and thought I would give the color picker in this toolkit in a try. I have to be able to display a custom list of colors because they relate to colors in another application. The colors correspond to indexes in a custom pallet so I need to display these indexes as the color names in the picker.

As a quick test I added the following in the initialization of my form

```
myColorPicker.DisplayColorAndName = true;
myColorPicker.AvailableColors.Clear();
myColorPicker.AvailableColors.Add(new Xceed.Wpf.Toolkit.ColorItem(System.Windows.Media.Color.FromRgb(110, 110, 110), "Color 12"));
```

When the form is loaded I can confirm the color picker only has my one color. If I hover over the color swatch the tooltip shows "Color 12" but when I pick the color it shows the hex color value of "#FF6E6E6E" in the picker control. This was a bit disappointing.

Is this expected when using custom colors?

When using the default colors it seems to show the name in the control after the color is picked. Although picking Cyan, which has a tooltip of Cyan, displays Aqua in the control after it's picked. The same happens when you pick Magenta which ends up showing Fuchsia in the control.
Comments: ** Comment from web user: BoucherS **

Hi,

The AvailableColors from the ColorPicker are the ones from the class "System.Windows.Media.Colors".
https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k(System.Windows.Media.Colors);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.0);k(DevLang-csharp)&rd=true

In this class, the Description of "Magenta" and "Fuchsia" is the same : "Gets the system-defined color that has an ARGB value of #FFFF00FF."
Same thing for "Cyan" and "Aqua", where description says : "Gets the system-defined color that has an ARGB value of #FF00FFFF."

Currently, the property "ColorPicker.SelectedColor is of type "Color", which have no name. We check if this selected color is one of the Colors from the "System.Windows.Media.Colors". If yes, its name is displayed. If no, we do a color.ToString(), which result in a "hex value" display.

In v3.1, we will check the ColorItem.Name and if there is 1, we will display it, as you wish.
In the meantime, you can go in file Xceed.Wpf.Toolkit/ColorPicker/Implementation/ColorPicker.cs,
In method Color_SelectionChanged
and add :
```
if( !string.IsNullOrEmpty( colorItem.Name ) )
{
this.SelectedColorText = colorItem.Name;
}
```
just after the line :
```
SelectedColor = colorItem.Color;
```

Edited Issue: Color name not displayed when using custom color list [22213]

$
0
0
I need to use a color picker in WPF and thought I would give the color picker in this toolkit in a try. I have to be able to display a custom list of colors because they relate to colors in another application. The colors correspond to indexes in a custom pallet so I need to display these indexes as the color names in the picker.

As a quick test I added the following in the initialization of my form

```
myColorPicker.DisplayColorAndName = true;
myColorPicker.AvailableColors.Clear();
myColorPicker.AvailableColors.Add(new Xceed.Wpf.Toolkit.ColorItem(System.Windows.Media.Color.FromRgb(110, 110, 110), "Color 12"));
```

When the form is loaded I can confirm the color picker only has my one color. If I hover over the color swatch the tooltip shows "Color 12" but when I pick the color it shows the hex color value of "#FF6E6E6E" in the picker control. This was a bit disappointing.

Is this expected when using custom colors?

When using the default colors it seems to show the name in the control after the color is picked. Although picking Cyan, which has a tooltip of Cyan, displays Aqua in the control after it's picked. The same happens when you pick Magenta which ends up showing Fuchsia in the control.

New Post: MessageBox only opens once

$
0
0
Hi,

I cannot reproduce this in v2.6 and up.
I have a button that when clicked, execute the code to pop the MessageBox. I click a MessageBox button to close it. I then click my button again to re-open the MessageBox, everything is fine.

Can you submit a sample with the problem ?
Thanks.
Viewing all 4964 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>