Re: Why no horizontal scrollbar in property grid?
The name and value columns for a PropertyGrid are generated in code, so they cannot be configured in XAML. They are designed to use star-scaling by default to prevent the need of a horizontal scro...
View ArticleEnter at the AutoCompleteBox
If enter is pressed for the AutoCompleteBox, the box always takes over the selectedItem. That's actually a good thing. Is there still the possibility to accept the entered text with "Enter" in the ...
View ArticleRe: Enter at the AutoCompleteBox
Hello, The event args passed to the AutoCompleteBox.Submitted event will have e.Text, which is the text that comes from the selected item (in e.Item). The event args also has e.OriginalText, whi...
View ArticleDoubleEditBox wrap text or ScrollToHome()
Hi! I have a DoubleEditBox control in which I can add a very big number but I do not want to resize the control. For this particular case the TextAlignment is Center. My problem is after adding...
View ArticleRe: DoubleEditBox wrap text or ScrollToHome()
Hi Daniel, There is a TextBox in the edit box's visual hierarchy that is what you actually edit in. You would probably have to get an instance of that with our VisualTreeHelperExtended.GetDescen...
View ArticleSet value of Int32EditBox in Code
I am trying to revive an old code base that heavily used Actipro WPF going back to release 10. The last release we had used was 14.1. I jumped from that to 23.1.0.0 Of course I have found many t...
View ArticleRe: Set value of Int32EditBox in Code
Hi Ernie, You can still use that code, but the ValueChanged event now just takes EventArgs instead of PropertyChangedRoutedEventArgs<T>. I suspect just changing the event args in your even...
View ArticleRe: Set value of Int32EditBox in Code
That worked! Thank you. I forgot that I had an event handler wired to the edit box. I had to change the code inside the handler too to get the value using sender.Value instead of e.NewValue
View ArticleIncrement and decrement of Int32EditBox
Hello, We have a scenario like clicking increment then increase 10 per-time and clicking decrement then decrease 8 per-time. The increment or decrement value does not need to be the same, how do ...
View ArticleRe: Increment and decrement of Int32EditBox
Hello, The spinner arrow buttons and keyboard arrow keys will all use the SmallChange values. Only the keyboard PgUp and PgDn keys use the LargeChange values. If you want to have different v...
View ArticleUpgrade Editors
1. We want to customize a BrushEditBox: Because there is no longer PartEditBox in the new version, after upgrading, I can only find PartEditBoxBase<T>. However, the GenerateDefaultItems funct...
View ArticleRe: Upgrade Editors
Hello, We don't currently have any examples of creating a custom edit box in the newer codebase. Can you go into specific detail on what functionality you are trying to achieve with a customized...
View ArticleRe: Upgrade Editors
We want to implement a control where, while typing in the edit box, a TreeListView of matching items is displayed. When clicking a PopupButton, it should show a popup for defining new items. We fou...
View ArticleRe: Upgrade Editors
Hello, We have added a new Custom Edit Box QuickStart for you for the next maintenance release that hopefully will lead you down the right path to making a custom edit box in v23.1+. Note we mad...
View ArticleEnumEditBox using UseDisplayAttributes no initial value displayed
When using EnumEditBox with UseDisplayAttributes="True", the box initially show as empty - that is, no value is initially displayed. The popup list shows correctly but there's no way to tell what ...
View ArticleRe: EnumEditBox using UseDisplayAttributes no initial value displayed
Hello, I went into our EnumEditBox Intro QuickStart sample and updated line 60 to be:<editors:EnumEditBox x:Name="editBox" HorizontalAlignment="Center" MinWidth="250" PlaceholderText="Enum" ...
View ArticleRe: EnumEditBox using UseDisplayAttributes no initial value displayed
I was able to recreate my issue in your SampleBrowser: 0) Installed WPF Controls 23.1.3 and am using VisualStudio 2022 1) As the enum I'm working with is not attributed with Flags, I commented...
View ArticleRe: EnumEditBox using UseDisplayAttributes no initial value displayed
Hi John, Thanks for the additional detail. I think the problem here is that you are binding a string (in this case the string "Three") into the EnumEditBox.Value property. But the EnumEditBox.V...
View ArticleRe: EnumEditBox using UseDisplayAttributes no initial value displayed
Thank you for the clarification. When time allows, I'll take the converter route. JK
View ArticleEditableContentControl EditableContent property
In the docs it says:When entering edit mode, the Content property value is copied to the EditableContent property, and the UI switches to a TextBox for editing the editable content. Note that an al...
View ArticleRe: EditableContentControl EditableContent property
Hello, The default Template for the control is a good example:<ControlTemplate TargetType="controls:EditableContentControl"><Grid Background="{TemplateBinding Background}">&l...
View ArticleThe decimal data type cannot find a supported input control.
Now I am encountering that the decimal type data cannot meet the data accuracy requirements through the DoubleEditBox control? Will you consider supporting decimal support? Can I extend DobuleEditB...
View ArticleRe: The decimal data type cannot find a supported input control.
Hello, Right now the DoubleEditBox control supports the full precision of the Double type. The DoubleEditBox documentation topic has an option for determining the precision of decimals up to wha...
View ArticlePreserving seconds when using the TimeEditBox
We use the TimeEditBox control in our application. It is bound to a DateTime variable where we have the seconds set to 59, which is a specific requirement. In other words, if the TimeEditBox is sho...
View ArticleRe: Preserving seconds when using the TimeEditBox
Hello, The reason that currently happens is that the edited (via typing) text calls DateTime's parse methods and uses the result. It's not considering which edit box parts are currently displaye...
View ArticleA TextBlock cannot be made disabled (gray)
Hi! It is me or if I make a TextBlock IsEnabled=false does not change the color. I was expecting to be gray or something. If I use a Label that seems to work. Kind regards, Daniel
View ArticleRe: A TextBlock cannot be made disabled (gray)
Hello, I don't believe the native WPF TextBlock control is set up to alter its appearance based on enabled state, and our themes don't provide any styles for TextBlock. If you did want that beha...
View ArticleRe: A TextBlock cannot be made disabled (gray)
Hi! Thank you! It would be great if in some future the TextBlock would work similar with the Label on this regard :) Kind regards, Daniel
View ArticleInt32EditBox Min/Max Coercion Causing Grief
I set up a view bound to a viewmodel something like this:<editors:Int32EditBox Value="{Binding AwesomeThing}" Maximum="{Binding Max}" /> The bound class uses INotifyDataErrorInfo to valid...
View ArticleRe: Int32EditBox Min/Max Coercion Causing Grief
Hi Daniel, The Int32EditBox.Value dependency property has a coerce method configured on it that will invoke the protected virtual Int32EditBox.CoerceValidValue method. Our logic there will ensur...
View ArticleRe: Int32EditBox Min/Max Coercion Causing Grief
Tested that today, it works great! Many thanks.
View ArticleUse a datagrid to display collections in the property grid
Hello, In my WPF application I am using the property grid to display/configure properties with my object. My object has an observable collection of a custom type (Parameter). The default editor i...
View ArticleRe: Use a datagrid to display collections in the property grid
Hi Jamie, You can put any controls in a custom value editor for a particular property type. That being said, it's not generally advisable to make property editors that are very tall since it cou...
View ArticlePrevent AutoCompleteBox from selecting first suggestion item by default
I would like to use the AutoCompleteBox as a search field: The user enters text and presses Enter to start a search. Optionally, the user can select an entry from the suggestion list. Thi...
View ArticleRe: Prevent AutoCompleteBox from selecting first suggestion item by default
Hi Thomas, We will add an AutoCompleteBox.CanAutoSelectFirstItem property for the next build that you can set to false to prevent this default behavior.
View ArticleRe: Prevent AutoCompleteBox from selecting first suggestion item by default
Thanks! When will it be available?
View ArticleRe: Prevent AutoCompleteBox from selecting first suggestion item by default
Hello, We would expect it sometime in July.
View ArticleEnumListBox => System.InvalidCastException: Specified cast is not valid.
Hello, I'm trying to use your EnumListBox to make a weekday picker but keep getting a cast error when I try to click on a day. xmlns:tasksch="clr-namespace:Microsoft.Win32.TaskSchedu...
View ArticleRe: EnumListBox => System.InvalidCastException: Specified cast is not valid.
Hello, Thank you for writing. From looking at that assembly, the enum seems to be based on Int16 and some comparison logic in our code didn't handle that type properly. We've fixed the bug for ...
View ArticleDoubleEditBox: Disable tooltip for increment and decrement buttons
Hi, is there a way to disable the tooltip for the increment and decrement buttons in the DoubleEditBox? I know I can overwrite the tooltip, but even an empty string is still displayed: Actipro...
View ArticleRe: DoubleEditBox: Disable tooltip for increment and decrement buttons
Hi Tobias, If you set it to null instead of empty string, it should work how you want.
View ArticleMasked Textbox
Hello, I have a Masked Textbox using this mask Binding to a double property \\d+[,]\\d{2} When I enter "10,00" as value - save the value and reaload the form, "10," is shown The zeros at t...
View ArticleRe: Masked Textbox
Hello, If you display the prompt characters, do you see two prompt dots right after the ","? If so, the MaskedTextBox control is meant to match text values against a text mask. The control does...
View ArticleRe: Masked Textbox
Thanks for the quick answer - this would have been an easy way to support different entry types on my dynamic forms.But I will create templates where I use different controls based on the datatypes...
View ArticleMulti editor in Property grid for nested types
Hello, I have a Property grid where DataObjects are pointing to objects of type e.g. Style, this Style contains a property of type Material and each Material contains property RectangleSheet with...
View ArticleRe: Multi editor in Property grid for nested types
Hello, Please send the sample project to our support address and we will debug with it to see what's happening. In your email, reference this thread. Also be sure to exclude the bin/obj folders...
View ArticleInt32EditBox cannot apply UpdateSourceTrigger
<editors: Int32EditBox Value="{Binding MyValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" /> When I enter a number in the Int32EditBox and specify PropertyChanged, it does not take...
View ArticleRe: Int32EditBox cannot apply UpdateSourceTrigger
Hi Chris, Yes please see this topic as it points you to the CommitTriggers property, which is what you'd set to control updates to the Value property.
View Article