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

Created Unassigned: Integer Up-Down can lose sync with bounded value [21364]

$
0
0
I am using Integer Up-Downs in a DataTemplate of a DataGrid's TemplateColumn with validation.

Under certain conditions it is possible to lose the synchronization between the displayed value of the Integer Up-Down and the underlying View-Model property.

According to my observation the following conditions are required in order to expose the bug:
- A DataGrid with a template column containing an Integer Up-Down
- Two-way binding with the underlying View-Model property
- Set the value of UpdateSoruceTrigger property on the binding to PropertyChanged
- Set the value of ValidatesOnDataErrors property on the binding to True
- Implement the IDataErrorInfo interface in the View-Model and generate data error to the property which is bound to the Integer UpDown
- The DataGrid must have at least two row

Now if I repeatedly and randomly click on the up and down button on the different Integer Up-Down it will eventually lose the synchronization between the displayed and the underlying property value. From this point the setter of the view-model property is no longer called.

I have attached the source code of a simple example application.
On the application just repeatedly click 10-20 times on the up and down buttons of the integer up-downs in a random order and observe that the value of a cell from the first column will eventually get out of sync with the other cells from the same row. Note that I could only reproduce this with the up and down buttons.

Commented Unassigned: Integer Up-Down can lose sync with bounded value [21364]

$
0
0
I am using Integer Up-Downs in a DataTemplate of a DataGrid's TemplateColumn with validation.

Under certain conditions it is possible to lose the synchronization between the displayed value of the Integer Up-Down and the underlying View-Model property.

According to my observation the following conditions are required in order to expose the bug:
- A DataGrid with a template column containing an Integer Up-Down
- Two-way binding with the underlying View-Model property
- Set the value of UpdateSoruceTrigger property on the binding to PropertyChanged
- Set the value of ValidatesOnDataErrors property on the binding to True
- Implement the IDataErrorInfo interface in the View-Model and generate data error to the property which is bound to the Integer UpDown
- The DataGrid must have at least two row

Now if I repeatedly and randomly click on the up and down button on the different Integer Up-Down it will eventually lose the synchronization between the displayed and the underlying property value. From this point the setter of the view-model property is no longer called.

I have attached the source code of a simple example application.
On the application just repeatedly click 10-20 times on the up and down buttons of the integer up-downs in a random order and observe that the value of a cell from the first column will eventually get out of sync with the other cells from the same row. Note that I could only reproduce this with the up and down buttons.
Comments: ** Comment from web user: ahorvath **

In the meantime I could reprodoce the issue with the standard WPF TextBox as well. It seems to me this could be a "DataGrid issue".

New Post: PropertyGrid Collection Editor - Class types for new objects

$
0
0
Thank you it is working fine. I now can get the different Shapes types.

The only problem that I am facing now is that the Outline (List of shapes) is not updated with when add shapes.

I appreciate a lot your help
thanks

Edited Feature: ComboBox with Watermark [19799]

$
0
0
From [this discussion](http://wpftoolkit.codeplex.com/discussions/445402)
-=-=-=-==-=-=-=-=-=-=-=-=-=-
Hi Team,

It is possible that in your next release can you add an extended ComboBox that implements the Watermark functionality? it is the only control in my apps that does not have watermark.
Comments: ** Comment from web user: BoucherS **

In v2.5, there will be a new Control : WatermarkComboBox. A ComboBox with a fully customizable watermark.

New Post: PropertyGrid Collection Editor - Class types for new objects

$
0
0
Hi,

When you hit the "OK" button in the CollectionControlDialog, there is a call to CollectionControl.PersistChanges() which is suppose to save the data.
What do you mean by "Not Updated" ?
Which version of the Toolkit are you using.
Can you submit a sample of the bug ?
Thanks.

New Post: PropertyGrid Collection Editor - Class types for new objects

$
0
0
Hi,

Thank you for your quick reply.

I have a list of Pads (listed in a listbox (each pad contains an outline which is a ShapeCollection
<ListBox x:Name="PadListBox" Grid.Column="0" ItemsSource="{Binding Path=Pads}" Margin="5,39,5,5" SelectedIndex="0" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Rectangle Name="Border" StrokeThickness="1" StrokeDashArray="2" Fill="Transparent" SnapsToDevicePixels="true" />
                        <DTGraphics:PadCanvas SnapsToDevicePixels="True" Width="70" Height="70" Background="Beige"  CurrentPad="{Binding Path=.}" />
                        <TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Center" Text="{Binding Path=Name}"/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
I placed the CollectionControl in the Template for the Pad.Outline - so the CollectionControl is placed with the other properties.
When I select another Pad from the listbox, the shapes that I added in the CollectionControl are not saved in the Outline.
<xctk:PropertyGrid  Grid.Column="1"
                        x:Name="propertyGrid"
                        ShowSummary="True"
                        IsCategorized="True"
                        ShowAdvancedOptions="False" 
                        SelectedObject="{Binding ElementName=PadListBox, Path=SelectedItem}"
                        SelectedObjectName="{Binding ElementName=PadListBox, Path=SelectedItem.ToString}"
                        Margin="5"
                        >
            <xctk:PropertyGrid.EditorDefinitions>

                <xctk:EditorTemplateDefinition>

                    <xctk:EditorTemplateDefinition.TargetProperties>
                        <sys:String>Outline</sys:String>
                    </xctk:EditorTemplateDefinition.TargetProperties>

                    <xctk:EditorTemplateDefinition.EditingTemplate>
                        <DataTemplate>
                            <xctk:CollectionControl ItemsSource="{Binding Value, Mode=TwoWay}"
                                                    NewItemTypes="{Binding Source={StaticResource myListOfTypes}, Path=Types}"
                                                    ItemAdded="CollectionControl_ItemAdded"
                                                    ItemDeleted="CollectionControl_ItemDeleted"/>
                        </DataTemplate>
                    </xctk:EditorTemplateDefinition.EditingTemplate>
                </xctk:EditorTemplateDefinition>
            </xctk:PropertyGrid.EditorDefinitions>
        </xctk:PropertyGrid>

New Post: PropertyGrid Collection Editor - Class types for new objects

$
0
0
WHat I meant by not updated is that the Pad.Outline doesn't include the new shapes added in the COllectionControl.

Commented Unassigned: Integer Up-Down can lose sync with bounded value [21364]

$
0
0
I am using Integer Up-Downs in a DataTemplate of a DataGrid's TemplateColumn with validation.

Under certain conditions it is possible to lose the synchronization between the displayed value of the Integer Up-Down and the underlying View-Model property.

According to my observation the following conditions are required in order to expose the bug:
- A DataGrid with a template column containing an Integer Up-Down
- Two-way binding with the underlying View-Model property
- Set the value of UpdateSoruceTrigger property on the binding to PropertyChanged
- Set the value of ValidatesOnDataErrors property on the binding to True
- Implement the IDataErrorInfo interface in the View-Model and generate data error to the property which is bound to the Integer UpDown
- The DataGrid must have at least two row

Now if I repeatedly and randomly click on the up and down button on the different Integer Up-Down it will eventually lose the synchronization between the displayed and the underlying property value. From this point the setter of the view-model property is no longer called.

I have attached the source code of a simple example application.
On the application just repeatedly click 10-20 times on the up and down buttons of the integer up-downs in a random order and observe that the value of a cell from the first column will eventually get out of sync with the other cells from the same row. Note that I could only reproduce this with the up and down buttons.
Comments: ** Comment from web user: BoucherS **

I confirmed that the sample provided has the bug when using UnDowns in a DataGrid.
If I use the sample sample without the Datagrid, the UpDowns remains sync.
So the problem is probably in the DataGrid.


Commented Feature: ComboBox with Watermark [19799]

$
0
0
From [this discussion](http://wpftoolkit.codeplex.com/discussions/445402)
-=-=-=-==-=-=-=-=-=-=-=-=-=-
Hi Team,

It is possible that in your next release can you add an extended ComboBox that implements the Watermark functionality? it is the only control in my apps that does not have watermark.
Comments: ** Comment from web user: Devtelco **

Excellent news, thanks about that, everyone will appreciate that.

Commented Feature: ComboBox with Watermark [19799]

$
0
0
From [this discussion](http://wpftoolkit.codeplex.com/discussions/445402)
-=-=-=-==-=-=-=-=-=-=-=-=-=-
Hi Team,

It is possible that in your next release can you add an extended ComboBox that implements the Watermark functionality? it is the only control in my apps that does not have watermark.
Comments: ** Comment from web user: Devtelco **

Sorry for the question, but you have any estimate time for the version 2.5?

New Comment on "WatermarkTextBox"

$
0
0
Need a passwordbox like WatermarkTextBox

New Post: Dynamically show/hide disable/enable some properties in PropertyGrid based on an existing property value

$
0
0
Hi,

Is there a way to show/hide some properties based on the input value of a property value on the PropertyGrid?

For example, when property A = "true", I want to hide properties B, C, D, E currently showing on the PropertyGrid?

Similarly, is there a way to make property A's value read-only based on the input value of property B?


Thanks.

Commented Feature: ComboBox with Watermark [19799]

$
0
0
From [this discussion](http://wpftoolkit.codeplex.com/discussions/445402)
-=-=-=-==-=-=-=-=-=-=-=-=-=-
Hi Team,

It is possible that in your next release can you add an extended ComboBox that implements the Watermark functionality? it is the only control in my apps that does not have watermark.
Comments: ** Comment from web user: BoucherS **

Hi,
V2.5 is still in progress, and no release date are announced yet.
Don't forget that users of the Plus version are always one version ahead of the Community edition.

New Comment on "WatermarkTextBox"

$
0
0
Please vote for it : https://wpftoolkit.codeplex.com/workitem/20095

New Post: Dynamically show/hide disable/enable some properties in PropertyGrid based on an existing property value


New Post: PropertyGrid Collection Editor - Class types for new objects

$
0
0
Hi,

Try doing the following in your callbacks CollectionControl_ItemAdded and CollectionControl_ItemDeleted :
 var col = sender as CollectionControl;
 if( col != null )
 {
     col.PersistChanges();
 }
It should save the data.

Commented Unassigned: Integer Up-Down can lose sync with bounded value [21364]

$
0
0
I am using Integer Up-Downs in a DataTemplate of a DataGrid's TemplateColumn with validation.

Under certain conditions it is possible to lose the synchronization between the displayed value of the Integer Up-Down and the underlying View-Model property.

According to my observation the following conditions are required in order to expose the bug:
- A DataGrid with a template column containing an Integer Up-Down
- Two-way binding with the underlying View-Model property
- Set the value of UpdateSoruceTrigger property on the binding to PropertyChanged
- Set the value of ValidatesOnDataErrors property on the binding to True
- Implement the IDataErrorInfo interface in the View-Model and generate data error to the property which is bound to the Integer UpDown
- The DataGrid must have at least two row

Now if I repeatedly and randomly click on the up and down button on the different Integer Up-Down it will eventually lose the synchronization between the displayed and the underlying property value. From this point the setter of the view-model property is no longer called.

I have attached the source code of a simple example application.
On the application just repeatedly click 10-20 times on the up and down buttons of the integer up-downs in a random order and observe that the value of a cell from the first column will eventually get out of sync with the other cells from the same row. Note that I could only reproduce this with the up and down buttons.
Comments: ** Comment from web user: ahorvath **

It seems to me the issue is gone if I don't use the built-in validation mechanism of the DataGrid.

Closed Unassigned: Integer Up-Down can lose sync with bounded value [21364]

$
0
0
I am using Integer Up-Downs in a DataTemplate of a DataGrid's TemplateColumn with validation.

Under certain conditions it is possible to lose the synchronization between the displayed value of the Integer Up-Down and the underlying View-Model property.

According to my observation the following conditions are required in order to expose the bug:
- A DataGrid with a template column containing an Integer Up-Down
- Two-way binding with the underlying View-Model property
- Set the value of UpdateSoruceTrigger property on the binding to PropertyChanged
- Set the value of ValidatesOnDataErrors property on the binding to True
- Implement the IDataErrorInfo interface in the View-Model and generate data error to the property which is bound to the Integer UpDown
- The DataGrid must have at least two row

Now if I repeatedly and randomly click on the up and down button on the different Integer Up-Down it will eventually lose the synchronization between the displayed and the underlying property value. From this point the setter of the view-model property is no longer called.

I have attached the source code of a simple example application.
On the application just repeatedly click 10-20 times on the up and down buttons of the integer up-downs in a random order and observe that the value of a cell from the first column will eventually get out of sync with the other cells from the same row. Note that I could only reproduce this with the up and down buttons.
Comments: Not a UpDown bug

New Post: PropertyGrid: custom editor propertyItem.Instance is null

$
0
0
Hi,

I have created my own customer editor. In the ResolveEditor(...) method, I tried to access propertyItem.Instance but it always give me null.

I am using PropertyGrid plus editor v2.3.14317.10540.

Would you please advise how to fix this problem?

Thanks.

New Post: PropertyGrid: custom editor propertyItem.Instance is null

$
0
0
Hi,

Can you give a code snippet to be able to reproduce the issue ?
Thanks.
Viewing all 4964 articles
Browse latest View live


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