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

Created Unassigned: DateTimePicker persists selecte view of calendar part [21179]

$
0
0
For some reason acting on date in the way other than picking it from calendar doesn't change calendars view i.e. you open calendar and select current date (e.g. 25 Jul 2014). Then you change date manually e.g. using up down buttons or mouse wheel to e.g. 25 Jun 2000. Next time you open calendar you'll still see Jul 2014.

New Post: INotifyPropertyChanged and WPF Datagrid

$
0
0
I currently have a Datagrid whose Contents and formatting are bound to my data. However, dynamic changes made (programmatically) to the underlying data do not reflect on my grid.

Upon further research, it seems that I probably need to make use of the PropertyChanged as an UpdateSourceTrigger. I've proceeded to have my data class implement the INotifyPropertyChanged interface, is there any special interface my data collection should implement? What exactly should my PropertyChanged event handler be hooked up to? Also, if I have an array of a custom object in my class, do those objects need to also implement INotifyPropertyChanged?

Thanks in advance!

Commented Unassigned: MVVM Memory Leak [21178]

$
0
0
When using DataTemplate automatic binding for view/viewmodel and DocumentSource property of the DockingManager binded to the list of viewmodel, when a document is closed, the corresponding view and viewmodel stay in memory.
Comments: ** Comment from web user: bgiot **

I attached a sample.
When closing the document, if you profile the memory you will see that the view (SampleView) and the viewmodel (SampleViewModel) are still alive.

Created Unassigned: CollectionControl does not handle arrays properly [21182]

$
0
0
Item 20216 raised some issues with handling fixed size collection (e.g. arrays). Some changes were made to resolve issues.

Unfortunately there's still issues. Take the following class as the selected object class:

public class Person
{
[Category("Personal Information")]
[DisplayName(@"First Name")]
[Description("The first name or given name.")]
public string FirstName { get; set; }

[Category("Personal Information")]
[DisplayName(@"Last Name")]
[Description("The last name, family name or surname")]
public string LastName { get; set; }
}

public class MarriedPerson : Person
{
[Category("Marriage Information")]
[Description("The spouse personal information.")]
[ExpandableObject]
public Person Spouse { get; set; }

[Category("Marriage Information")]
[Description("The children personal information.")]
public Person[] Children { get; set; }
}

Editing the Children member creates a CollectionControl. If you add some items and then click OK you get the null reference exception:

at Xceed.Wpf.Toolkit.CollectionControl.CreateItemsSource()
at Xceed.Wpf.Toolkit.CollectionControl.ComputeItemsSource()
at Xceed.Wpf.Toolkit.CollectionControl.PersistChanges()
at Xceed.Wpf.Toolkit.CollectionControlDialog.OkButton_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Xceed.Wpf.Toolkit.PropertyGrid.Editors.CollectionEditor.Button_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunInternal(Window window)
at TradeLifeCycleMessageSample.Program.Main(String[] args) in c:\Users\U319813\Documents\Visual Studio 2012\Projects\TradeLifeCycleMessageSample\TradeLifeCycleMessageSample\Program.cs:line 20
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

I have corrected this exception by properly handling creation of arrays in ComputeItemsSource. With that fixed PersistChanges throws because the Items collection is modified after creating the ItemsSource. This occurs because of inconsistent handling of changes in the OnItemSourceChanged method. Correcting this requires changing how the ItemsSource is set otherwise it is not possible to eliminate the changing Items collection after setting up the new ItemsSource and copying items out of it.

Here are the changes I am suggesting to correct these issues:

Change OnItemsSourceChanged to:

public void OnItemSourceChanged(IList oldValue, IList newValue)
{
Items.Clear();

if (newValue != null)
{
foreach (var item in newValue)
Items.Add(item);
}
}

Change CreateItemsSource to:

private IList CreateItemsSource()
{
IList list = null;

if (ItemsSourceType != null)
{
ConstructorInfo constructor = ItemsSourceType.GetConstructor(new[] { typeof(int) });
if (constructor == null)
{
constructor = ItemsSourceType.GetConstructor(Type.EmptyTypes);
if (constructor == null)
{
throw new Exception("No usable constructor to build collection");
}

Change PersistChanges to:

public void PersistChanges()
{
IList list = CreateItemsSource();
if (list == null)
return;

//the easiest way to persist changes to the source is to just clear the source list and then add all items to it.
list.Clear();

if (list.IsFixedSize)
{
for (int i = 0; i < Items.Count; ++i)
list[i] = Items[i];
}
else
{
foreach (var item in Items)
{
list.Add(item);
}
}

ItemsSource = list;
}

and delete ComputeItemsSource.

Created Unassigned: DateTimePicker overwrites DateTime.Kind [21183]

$
0
0
__Bug__

Changing the date in the DateTimePicker will reset the _DateTime.Kind_ property to _Unspecified_ - regardless of the previous value.

(Possibly due to some internal _new DateTime()_ construction without transferring the _DateTime.Kind_ of the previous value.)

Changing the time preserves the _DateTime.Kind_ as expected.

__Expected behavior__

If there is a previous value keep the _DateTime.Kind_ as is.
If the value was null, use _Local_.

Commented Issue: IntegerUpDown focus issue [16388]

$
0
0
Could be something I've done wrong but I have been unable to explicitly set focus to an IntegerUpDown control (the textbox portion is what I'm expecting).
 
I've done similar techniques to other types of controls that have worked:
http://stackoverflow.com/questions/673536/wpf-cant-set-focus-to-a-child-of-usercontrol
http://apocryph.org/2006/09/10/wtf_is_wrong_with_wpf_focus/
Comments: ** Comment from web user: rsuter **

Same problem here. Had to set Focusable="True" then ctrl.Focus() worked..

Created Unassigned: StackOverflowException when closing a LayoutAnchorable docked inside a LayoutDocumentPane (AvalonDock) [21184]

$
0
0
This bug is inside AvalonDock:

Closing a LayoutAnchorable that is docked inside a LayoutDocumentPane causes an infinite loop, resulting in a StackOverflowException.

Looking at the call stack, it looks like LayoutAnchorable.Close() results in an event triggered in the docking manager, which in turn calls LayoutAnchorable.Close() forever looping:

```
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.Layout.LayoutElement.Root.get()
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable.Close()
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.DockingManager._ExecuteCloseCommand(Xceed.Wpf.AvalonDock.LayoutAnchorable anchorable)
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable.Close()
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.DockingManager._ExecuteCloseCommand(Xceed.Wpf.AvalonDock.LayoutAnchorable anchorable)
Xceed.Wpf.AvalonDock.dll!Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable.Close()
//// ... and so on
```

I have attached a small sample app which demonstrates this bug. In it, we have a WPF app with a LayoutDocumentPane containing a LayoutDocument ("Document") and a LayoutAnchorable ("Close Me"). Upon closing the "Document", the app behaves as expected. Upon closing the "Close Me" tab, the StackoverFlowException bug occurs.

New Post: ColorPicker performance

$
0
0
I noticed also slow performance when colorpicker is in a datagrid templatecolumn as a celleditingtemplate.
I'm using the latest 2.2.1 Extended WPF Toolkit, so the fix mentioned in the previous posts link won't apply here.

Created Unassigned: DateTimePicker with custom format auto increments when focus is changed [21188]

$
0
0
This bug is found in the community edition of Extended WPF Toolkit atleast since version 2.0. The bug itself is in the _DateTimePicker_-control.

__Description__
When the format of an _DateTimePicker_ is custom set to the _FormatString="yyyy-MM-ddTHH:mm:ssZ"_ and the user changes focus between _DateTimePicker_-controls, the previous focused control auto increments it's hour with 2.

__How to reproduce__
1. Run the code underneath
2. Fill in the two _DateTimePicker_-controls with a (random) date
3. Tab between/or change focues between the two controls
-> The datetime will be auto-incremented.

_Code:_

``` XAML
<Window x:Class="WpfApplicationDateTimePickerTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<Label Grid.Row="0" Grid.Column="0">
Timepicker 1
</Label>
<xctk:DateTimePicker Grid.Row="0" Grid.Column="1" x:Name="Dtck1" Width="200"
Format="Custom" FormatString="yyyy-MM-ddTHH:mm:ssZ" TextAlignment="Left">
</xctk:DateTimePicker>
<Label Grid.Row="1" Grid.Column="0">
Timepicker 2
</Label>
<xctk:DateTimePicker Grid.Row="1" Grid.Column="1" x:Name="Dtck2"
Format="Custom" FormatString="yyyy-MM-ddTHH:mm:ssZ" TextAlignment="Left">

</xctk:DateTimePicker>
</Grid>
</Window>
```

New Post: CheckComboBox

$
0
0
Hello. My code worked well, but at some point of re-factoring, upgrade Xceed libraries, etc it stopped to work.

I compared all parts of my code with an old one, and everything seems to be the same, except upgraded Xceed libraries to the latest version.

Displaying is working perfectly, but as soon as I expand CheckComboBox, it displays me Id fields instead of DisplayMemberPath field.

If I change CheckComboBox to ComboBox everything works perfectly.

No Binding or other errors in Output window...

Here is my CellEditorTemplate:
<xcdg:CellEditor x:Key="DataGridCheckComboBoxCellEditor">

        <xcdg:CellEditor.EditTemplate>

            <DataTemplate>

                <xctk:CheckComboBox

                                                        HorizontalAlignment="Stretch"

                                                        VerticalAlignment="Center"

                                                        DisplayMemberPath="{Binding RelativeSource={RelativeSource Self}, Path=(xcdg:Cell.CellEditorContext).ForeignKeyConfiguration.DisplayMemberPath,Mode=OneWay}"

                                                        ItemsSource="{Binding RelativeSource={RelativeSource Self}, Path=(xcdg:Cell.CellEditorContext).ForeignKeyConfiguration.ItemsSource, Mode=OneWay}"

                                                        SelectedValue="{xcdg:CellEditorBinding}"

                                                        ValueMemberPath="{Binding RelativeSource={RelativeSource Self}, Path=(xcdg:Cell.CellEditorContext).ForeignKeyConfiguration.ValuePath}"/>

            </DataTemplate>

        </xcdg:CellEditor.EditTemplate>

    </xcdg:CellEditor>
Here is usage of it, inside Grid:
<xcdg:Column Title="Routes"

                                     FieldName="ConflictedRoutes"

                                     CellEditor="{StaticResource DataGridCheckComboBoxCellEditor}" AllowGroup="False"

                                     AllowSort="False" CellEditorDisplayConditions="Always">

                            <xcdg:Column.ForeignKeyConfiguration>

                                <xcdg:ForeignKeyConfiguration

                                    ItemsSource="{Binding Source={StaticResource RouteCollectionViewSource}}"

                                    DisplayMemberPath="Name" ValuePath="Index" />

                            </xcdg:Column.ForeignKeyConfiguration>

                        </xcdg:Column> 

Created Unassigned: Decimalupdown can cause unneeded Propertyupdate [21189]

$
0
0
When you use the decimalupdown control with databound entities, the entity becomes changed even if you only quit the decimalupdown field by using the tab- key.

this behaviour is caused by Commitchanges
which calls SyncTextAndValueProperties in the Updownbase file ( see attached file for changes)

Thwo Little changes in the SyncTextAndValueProperties Function fix this behavior ,
if you bind to Value , the decimal Change is really only notified, when there is a real Change:
3,000 > 3 ( value stays in fact the same) is no Change, 3,000> 3,001 is a Change.
...
{
try
{
// Change : if the new value is really a change we set value. SL
T x = this.ConvertTextToValue(text);
if (x.Equals(Value) == false)
Value = this.ConvertTextToValue( text );
}
catch( Exception e )
{
parsedTextIsValid = false;

.....

if( !shouldKeepEmpty )
{
// SL new : Compare the new Textvalue and the current, otherwise we always get changes without real changes
string newValue = ConvertValueToText();
if (newValue.Equals(Text) == false)

Text = ConvertValueToText();
}

// Sync Text and textBox

Commented Issue: RangeSlider DataBinding [21135]

$
0
0
Hi,

I have a RangeSlider in a DataTemplate. The Binding to LowerValue and HigherValue does not work correctly.

```
<DataTemplate DataType="{x:Type vm:NumericFilter}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBox x:Name="tbSelectedMin"
Text="{Binding Path=SelectedMin}"
HorizontalAlignment="Left" />
<Button Content="Reset"
Command="{Binding Path=ResetCommand}"
HorizontalAlignment="Center" />
<TextBox x:Name="tbSelctedMax"
Text="{Binding Path=SelectedMax}"
HorizontalAlignment="Right" />
<xctk:RangeSlider x:Name="rsRange"
Grid.Row="1"
Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
HigherValue="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
LowerValue="{Binding Path=SelectedMin,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</DataTemplate>
```

while "normal" sliders work as expected:
```
<StackPanel Grid.Row="1">
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMin, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
```
Comments: ** Comment from web user: HDB2000 **

I'm seeing a similar issue with binding to RangeSlider's Maximum. Works once, but doesn't pick up changes, where the standard slider does.

May I ask if this was fixed as well?

(And thanks for the great tools.)

New Post: Has WPFToolkit in .net 4.0 platform?

$
0
0
I downloaded WPFToolkit and used it in my project, but it is in .net 3.5 platform.
after changing it to .net 4.0 I get a lot of errors and warnings.
Is there WPFToolkit in .net 4.0 ?

New Post: DropDownButton Background Color

$
0
0
Greetings Gurus,

This Setting has ZERO effect: 'dropdownbutton.Background = myBrush;'
I simply want to change the background of the static control.

Is it possible?

Created Unassigned: 'pie/themes/aero2.normalcolor.xaml' [21191]

$
0
0
After upgrading to version 2.2.1 in a .NET 4.0 wpf project. I get an error that a resource 'pie/themes/aero2.normalcolor.xaml' can not be found for the integerupdown control

New Post: DropdownButton EATS two tab clicks

$
0
0
DropdownButton EATS two tab clicks when tabbing from control to control.
Setting 'not tab stop' has zero effect.

Any suggestions.

New Post: Keyboard Navigation in CheckComboBox?

$
0
0
I cannot, for the life of me, figure out how to perform keyboard navigation in the CheckComboBox. I can tab to it, but must use my mouse to open the dropdown. Once the dropdown is open, I can use the keyboard to make selections like any other dropdown.

Does anyone have any practical advice on how to achieve this?

Commented Issue: RangeSlider DataBinding [21135]

$
0
0
Hi,

I have a RangeSlider in a DataTemplate. The Binding to LowerValue and HigherValue does not work correctly.

```
<DataTemplate DataType="{x:Type vm:NumericFilter}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBox x:Name="tbSelectedMin"
Text="{Binding Path=SelectedMin}"
HorizontalAlignment="Left" />
<Button Content="Reset"
Command="{Binding Path=ResetCommand}"
HorizontalAlignment="Center" />
<TextBox x:Name="tbSelctedMax"
Text="{Binding Path=SelectedMax}"
HorizontalAlignment="Right" />
<xctk:RangeSlider x:Name="rsRange"
Grid.Row="1"
Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
HigherValue="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
LowerValue="{Binding Path=SelectedMin,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</DataTemplate>
```

while "normal" sliders work as expected:
```
<StackPanel Grid.Row="1">
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMin, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
```
Comments: ** Comment from web user: emartin **

Yes it is fixed. LowerValue, HigherValue, Minimum and Maximum.

Commented Issue: RangeSlider DataBinding [21135]

$
0
0
Hi,

I have a RangeSlider in a DataTemplate. The Binding to LowerValue and HigherValue does not work correctly.

```
<DataTemplate DataType="{x:Type vm:NumericFilter}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBox x:Name="tbSelectedMin"
Text="{Binding Path=SelectedMin}"
HorizontalAlignment="Left" />
<Button Content="Reset"
Command="{Binding Path=ResetCommand}"
HorizontalAlignment="Center" />
<TextBox x:Name="tbSelctedMax"
Text="{Binding Path=SelectedMax}"
HorizontalAlignment="Right" />
<xctk:RangeSlider x:Name="rsRange"
Grid.Row="1"
Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
HigherValue="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
LowerValue="{Binding Path=SelectedMin,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</DataTemplate>
```

while "normal" sliders work as expected:
```
<StackPanel Grid.Row="1">
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMin, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
<Slider Minimum="{Binding Path=Min}"
Maximum="{Binding Path=Max}"
Value="{Binding Path=SelectedMax, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
```
Comments: ** Comment from web user: emartin **


Also fixed for the range slider in the next version:
- Keyboard navigation (focus)
When displayed vertically:
- Width of the RangeSlider when displayed vertical is no longer forced to 50, but resized to fit to its natural width, just like any other controls

Commented Unassigned: 'pie/themes/aero2.normalcolor.xaml' [21191]

$
0
0
After upgrading to version 2.2.1 in a .NET 4.0 wpf project. I get an error that a resource 'pie/themes/aero2.normalcolor.xaml' can not be found for the integerupdown control
Comments: ** Comment from web user: emartin **

Cannot reproduce, Can you provide a sample reproducing the problem ?

Viewing all 4964 articles
Browse latest View live


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