Quantcast
Channel: Editors for WPF - Recent Posts
Viewing all 942 articles
Browse latest View live

Int64EditBox does not accept Maximum/Minimum value when using N0 format

$
0
0

Hi Guys,

We have an issue with the Int64EditBox that uses a format with a thousands separator. The edit box does not accept the maximum value.

This is fairly easy to reproduce. Just use:

<ae:Int64EditBox Maximum="10000" Format="N0" />

The edit box will accept 9,999 and 10000 but not 10,000. It will stop accepting digits at 10,00. I confirmed that the same bug occurs with Minimum as well.

We are currently using build 12.2.572 but I can also reproduce it on 13.1.0582.


PartEditBox: Binding to DropDownButtonVisibility does not work on PropertyChanged.

$
0
0

Hello!

My application displays objects inside a PropertyGrid. These objects can either have one or multiple values which may vary during runtime (and their display-time). When an object has multiple values, I want to display them in a pop-up. Single values shall be directly displayed in a TextBlock which is part of the PartEditBox. For this to work, I want to dynamically display the DropDownButton.

This is a part of my editor's XAML code:

<editors:PartEditBox 
 Name="EditBox" 
 BorderThickness="0"
 DropDownButtonVisibility="{Binding Path=MyObject.IsMultiValue, ElementName=EditorRoot, Mode=OneWay, 
                            UpdateSourceTrigger=PropertyChanged, Converter={StaticResource ResourceKey=Bool2Visibility}}"
 DropDownStaysOpen="False"
 DropDownContentTemplate="{StaticResource ResourceKey=DropDownContent}"
 MinDropDownWidth="250"
 MinDropDownHeight="150" 
 MaxDropDownHeight="250"
 MaxDropDownWidth="250"><TextBlock 
   editors:PartEditBox.ItemPlacementSlot="Center"
   Text="{Binding Path=MyObject.Value, ElementName=EditorRoot, Mode=TwoWay}"
   HorizontalAlignment="Left" 
   VerticalAlignment="Center" /></editors:PartEditBox>

The above code works fine when the IsMultiValue-property does not change while the object is displayed on the PropertyGrid. But when IsMultiValue changes while the object is displayed in the PropertyGrid, I cannot see a difference regarding the DropDownButton.

I assume that the binding is not broken because:
 - the content of the TextBlock changes when the object's values change
 - when I de-select the to-be-displayed object and re-select it (so the PropertyGrid initializes again), the DropDownButton gets displayed.
 - the console does not display any errors

Thank you for your help,

     Till

Re: Int64EditBox does not accept Maximum/Minimum value when using N0 format

$
0
0

Hi Illian,

Thanks for reporting this.  We'll fix it for the next version.

Re: PartEditBox: Binding to DropDownButtonVisibility does not work on PropertyChanged.

$
0
0

Hi Till,

We do a binding on DropDownButtonVisibility in the PartEditBoxItemVisibility QuickStart and it works ok there.  Please check that out and if that doesn't help you might want to look more at your binding to make sure it's really working correctly.  You could even put a breakpoint in your value converter to see if it ever gets hit after you change the IsMultiValue.

DateTimeOffset Edit Box

$
0
0

Hi Guys,

Does Actipro have plans for implementing an edit box for DateTimeOffSet?

 

Ilian

Re: PartEditBox: Binding to DropDownButtonVisibility does not work on PropertyChanged.

$
0
0

Hi.

I found the problem. The property-name in the PropertyChangedEventArgs had a typo... The binding works fine now.

Thanks,

   Till

Re: DateTimeOffset Edit Box

$
0
0

Hi Ilian,

We don't at the moment but will write down your suggestion.  Thanks!

DateTimeEditBox popup (MonthCalendar) crashes when Maximum is set to DateTime.MaxValue

$
0
0

Hi Guys,

As the title says, the DateTimeEditBox popup (i.e. MonthCalendar) crashes when Maximum is set to DateTime.MaxValue. This can be reproduced with:

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:sys="clr-namespace:System;assembly=mscorlib"
  xmlns:ae="clr-namespace:ActiproSoftware.Windows.Controls.Editors;assembly=ActiproSoftware.Editors.Wpf"><StackPanel>  <ae:DateTimeEditBox Maximum="{x:Static sys:DateTime.MaxValue}" Value="9999-10-31" /></StackPanel></Page>

 

Steps to reproduce:

  1. Open the edit box's drop down. Still OK here.
  2. Press the right arrow to move the month to November 9999. Still OK here.
  3. Press the right arrow again to move the month to December 9999. Crashes here.

I suspect the crash occurs because MonthCalendar will try to generate the items for the next month (which is beyond DateTime's range).


Re: DateTimeEditBox popup (MonthCalendar) crashes when Maximum is set to DateTime.MaxValue

$
0
0

Hi Ilian,

Thanks for reporting this.  We'll fix it for the next maintenance release.

DateTimeEditBox: Format property behaves differently from DateTime.ToString( format )

$
0
0

Hello guys,

In our application, a user can define a date time format that is used for both display and edit.

In display scenario, we use DateTime.ToString( format )

In edit scenario, we set DateTimeEditBox.Format = format

We start to notice inconsistent behaviors when format contains escaped symbols in literal:

 

E.g. (presuming current culture is En-AU)


1. DateTime behavior:

Code:

DateTime.Now.ToString(@"dd-MM-yyyy 'my \'special\' date'")

 

Output:

25-07-2013 my 'special' date

 

2. DateTimeEditBox behavior:

Code:

<editors:DateTimeEditBox x:Name="editBox"
                                     Width="200"
                                     Margin="0,7,0,0"
                                     HorizontalAlignment="Left"
                                     Format="dd-MM-yyyy 'a \'special\' date'"
                                     Value="{x:Static system:DateTime.Today}"><editors:DateTimeEditBox.LayoutTransform><ScaleTransform ScaleX="{Binding ElementName=scaleSlider, Path=Value}" ScaleY="{Binding ElementName=scaleSlider, Path=Value}" /></editors:DateTimeEditBox.LayoutTransform></editors:DateTimeEditBox>

 

DateTimeEditBox.DateValue binds to DateTime.Now

Output:

25-07-2013 a \0pecial' 25aAe'

Note how the first backslash is treated as a literal character rather than an escape character, and that the first escaped single quote is treated as a closing quote rather than a literal.

 

Is this a problem in DateTimeEditBox formatting?

Re: DateTimeEditBox: Format property behaves differently from DateTime.ToString( format )

$
0
0

Hello,

Thanks for reporting this.  We will update our code for the 2013.2 version to handle the escapes properly.

Propert for Child Grids in the parent datagrid with Toggle Button like plus and minus symbols

$
0
0

Hi,

 In my project when clicked on a row that should open another datagrid inside that parent grid and i am looking for a property where we can have a plus symbol as row header which indicates that the row has a child grid and when clicked on that plus button it should show the child grid and that plus button should change to minus button which when clicked closes the child grid....

something like HierarchyChildTemplate property.

Grouping needed for datagrid columns.

$
0
0

Is there any way that we can group some datagrid columns under one header like (DataGridColumnGroups)?

Is there any option where we can export the data to excel from datagrids ?

$
0
0

Is there any option or property where we can export the data to excel from datagrids ?

Aggregate functions in Dtagrid ?

$
0
0

Is there any way that we can implement Aggregate functions for  the datagrid columns?

DtagridTextColumn.AggregateFunctions in that we need SumFunctions.


Re: Propert for Child Grids in the parent datagrid with Toggle Button like plus and minus symbols

$
0
0

Hi, I'm sorry but we don't really have anything that does that sort of thing.

Re: Grouping needed for datagrid columns.

$
0
0

Hello, we don't have a custom DataGrid at this time.  The DataGrid features we currently offer in WPF are just some open source enhancements to the native WPF DataGrid.  Here is a thread that talks about possibly adding filtering/grouping features to the native WPF DataGrid, that may help you:

http://social.msdn.microsoft.com/Forums/vstudio/en-US/03972347-969f-4704-9b54-2d13c265fb8f/applying-filtering-and-grouping-in-a-wpf-datagrid-toolkit

Re: Is there any option where we can export the data to excel from datagrids ?

$
0
0

Hello, I'm sorry but we don't have that feature in our WPF DataGrid enhancements.

Re: Aggregate functions in Dtagrid ?

$
0
0

Hello, we don't have a custom DataGrid at this time. The DataGrid features we currently offer in WPF are just some open source enhancements to the native WPF DataGrid.  I don't believe the WPF DataGrid has any aggregation features like what you are looking for though, at least built-in.

DoubleEditBox default DropDown DisplayMode

$
0
0

Hi,

is it possible to change the default dropdown calculator display mode for the DoubleEditBox from "Minimal" to "Standard", preferably in xaml? My approach was to define a DropDownContentTemplate containing the Calculator with DisplayMode = Standard. It worked but the Calculator Value was not taken over into the DoubleEditBox.

 

Any suggestions would be appreciated.

 

Severin

Viewing all 942 articles
Browse latest View live