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

Edited Feature: Close All option for AvalonDock [21406]

$
0
0
Based on Codeplex discussion https://wpftoolkit.codeplex.com/discussions/568740
Comments: ** Comment from web user: BoucherS **

This option will be available in v2.5. So v2.5 will have :
-Close
-CloseAllButThis
-CloseAll


New Post: Conditional Wizard Pages

$
0
0
Hi,
I've actually found a solution.
You can set
SomeWizardPage.NextPage = ConditionToEvaluate ? OnTrueWizardPageName : OnFalseWizardPageName;
in the code backend.
Hope this saves somebody else's time.
Mateusz

Created Unassigned: DoubleUpDown GotMouseCapture [21407]

$
0
0
Hello,
Why does DoubleUpDown control needs two clicks to fire GotMouseCapture event?

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

$
0
0
I want to thank you so much for your help. Everything is working fine now.

I have just one more question please. In the Collection Control, I need to be notified when a new object is added cause there are some fields to be automatically filled.

how to get notifications when a new object is added or deleted before the dialog is closed.

Also when the dialog is closed can I get notification.

Here are I talking about properties that contains a field as a list and I am using the default Collection control.

thanks

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

$
0
0
Hi melmallakh,

Just to make sure, are you using a CollectionControlButton ? Pressing the button starts a CollectionControlDialog and you want to be notified when an item is added, deleted and when the Dialog closes?

Because in your last code snippet, you are directly using a CollectionControl as an editor and you have access to "ItemAdded" and "ItemDeleted" events.

If you are using the CollectionControlButton, I believe this is not possible, but I could investigate.

Thanks.

New Post: Close All option for AvalonDock

$
0
0
Awesome, thanks. What's the eta for 2.5, just roughly? 6 months, a year, two?

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

$
0
0
I am using the property grid and one field is a collection. I need to know when an item is added to this collection. The property grid automatically displays the dialog.

Thanks
Mary

New Post: Need help with Zoombox behaviour

$
0
0
We're you able to solve this issue. I have a similar case where I have a canvas inside a zoombox. I change the canvas size. The zoombox doesn't behave correctly

New Post: Need help with Zoombox behaviour

$
0
0
Yeah, the solution is to avoid any canvas size changes and make it transparent. I've come up with static canvas size and negative/positive child object coordinates. So when i drag my vertices canvas size isn't changed but it allows its children to be rendered outside of the canvas area.

New Post: Close All option for AvalonDock

$
0
0
Hi,

The "Plus" users are always 1 version ahead., Here are the current version :
Plus users : v2.4
Community users : v2.3.1 (if not released, it should be by today or tomorrow)

Next releases (v2.5 for Plus users and v2.4 for community users) should be released by the end of the year.

New Post: How to disable Zoombox scaling on content resize?

$
0
0
Hi I am facing the same problem when the content size changes what should I do to the zoombox so it works correctly.

Thanks

Commented Feature: PropertyGrid Collection Editor not firing PropertyValueChanged event? [20977]

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

Starting in v2.3, the PropertyGrid has an editor for Collections : CollectionEditor. This editor creates a CollectionControlButton, which creates a CollectionControlDialog, which uses a CollectionControl, which uses a PropertyGrid.

The PropertyGrid.PropertyValueChanged is not propagated through this chain of elements.

Starting at v2.4, the collectionControl has a new Property : PropertyGrid. It returns the PropertyGrid from the CollectionControl.
Starting at v2.4, the collectionControlDialog has a new Property : CollectionControl. It returns the CollectionControl from the CollectionControlDialog.

We need to evaluate how to raise an event, accessible to user, saying a PropertyItem of the PropertyGrid has been modified. CollectionControlDialog.CollectionControl.PropertyGrid.PropertyValueChanged could be used.
Comments: ** Comment from web user: BoucherS **

We also need to find a way to raised the CollectionControl.ItemAdded event from CollectionCollection that could be available to user.

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

New Post: Close All option for AvalonDock

$
0
0
Excellent! I'll be sure to get the Plus edition then, and maybe the business suite with support like this :)

Commented Unassigned: DoubleUpDown GotMouseCapture [21407]

$
0
0
Hello,
Why does DoubleUpDown control needs two clicks to fire GotMouseCapture event?
Comments: ** Comment from web user: BoucherS **

Hi,

Make sure the DoubleUpDown.AutoSelectBehavior is "Never' and the obsolete (but still working) DoubleUpDown.SelectAllOnGotFocus is "False".

To be able to do a "SelectAll" when the DoubleUpDown gets the focus, the event received in a callback needs to be handled. This prevent from bubbling and raise the GotMouseCapture event from a base class.


New Comment on "ColorPicker"

$
0
0
Is there a bug when you set the SelectedColor to transparent? If I set it in the XAML or Window Load it lets me pick a new color but never changes the color within the button.

New Post: Dynamic PropertyGrid

$
0
0
Hello,

I'm a new user to this toolkit. I love it so far.

I'm trying to use a property grid to show properties of my game entities. The problem is, each entity has it's own set of properties. I can't bind properties like you would with objects you know the data set for.

Is there anyway through C# code to setup a property grid so I can add properties dynamically?

In MFC I was able to do this through code by creating each property as a class and setting its properties and adding to the list of properties in my property grid. I can't seem to figure out if that's possible using this. I know WPF/Xaml is quite different, but I still believe I need to setup the types in xaml and setup the properties in C# somehow.

Something like this would be great...
DefaultTypeProperty p1 = new DefaultTypeProperty("MyKey1", 100);
DefaultTypeProperty p2 = new DefaultTypeProperty("MyKey2", "MyStringValue");
MyCustomTypeProperty p3 = new MyCustomTypeProperty("MyKey3", 200, min, max);

PropertyGrid pg = _myPropertyGrid // from xaml
pg.AddProperty(p1);
pg.AddProperty(p2);
pg.AddProperty(p3);

Edited Issue: CheckComboBox: Delimiter other than a comma = no selection [20763]

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

When a CheckComboBox is used in a DataTemplate, has a SelectedValue and its Delimiter is something else than a coma, the selectedValue is not active when loaded.

Edited Issue: AvalonDock Now Loses Alt Key Adornments [20882]

$
0
0
I've been using AvalonDock (2.0) for some time now, being key for managing documents in an IDE. In the last several months, I've noticed that Alt key adornments are no longer showing up for controls within AvalonDock, though the Alt key commands are executing as expected. See the image below where the Alt key adornments are showing up in the menu, but not for the buttons inside AvalonDock:

![Image](http://i.stack.imgur.com/KnomF.png)

What is particularly interesting about this issue, that it appears to be triggered by an environmental setting or condition.

As demonstrated in this [video](http://www.youtube.com/watch?v=D-S_PGJoTkc) (at 2:07), the alt key adornments are working for a control within AvalonDock. But, if I now use the very same executable I used in that video, the alt key adornments do not work.

I also built a very simple test application which loads a couple of documents of type Item, where Item is a simple class with a Name property:

```
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApplication1"
xmlns:avalonDock="clr-namespace:Xceed.Wpf.AvalonDock;assembly=Xceed.Wpf.AvalonDock"
xmlns:avalonDockLayout="clr-namespace:Xceed.Wpf.AvalonDock.Layout;assembly=Xceed.Wpf.AvalonDock"
xmlns:avalonDockControls="clr-namespace:Xceed.Wpf.AvalonDock.Controls;assembly=Xceed.Wpf.AvalonDock"
Title="MainWindow" Height="500" Width="500">
<Window.Resources>
<ResourceDictionary>
<DataTemplate DataType="{x:Type local:Item}">
<StackPanel Orientation="Vertical">
<Label Content="Item:" />
<TextBox Text="{Binding Name}"/>
<Button Content="_ClickMe" />
</StackPanel>
</DataTemplate>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<avalonDock:DockingManager Grid.Row="0" DocumentsSource="{Binding}">
<avalonDockLayout:LayoutRoot>
<avalonDockLayout:LayoutPanel Orientation="Horizontal">
<avalonDockLayout:LayoutDocumentPane/>
</avalonDockLayout:LayoutPanel>
</avalonDockLayout:LayoutRoot>
</avalonDock:DockingManager>
<Button Grid.Row="1" Content="_Test" />
</Grid>
</Window>
```

Even with this simple application, the Alt key adornments show up for the Test button outside of AvalonDock, but not for the ClickMe buttons for the controls within AvalonDock. I've also done this with the sample application here, so this seems for sure to be a bug.

Any ideas on how to correct or workaround this issue?

Edited Issue: DateTimePicker invalid DateTime revert to previous instead of DateTime.Min [20899]

$
0
0
When the DateTimePicker trys to parse an invalid DateTime string, could it revert the DateTime back to the previous valid DateTime (i.e. Value/current) as changing it to DateTime min is not very friendly.

I have changed the TryParseDateTime method in DateTimeUpDown.cs to work as suggested.
```
private bool TryParseDateTime(string text, out DateTime result)
{
bool isValid = false;
result = DateTime.Now;

DateTime current = Value.HasValue
? Value.Value
: DateTime.Parse(DateTime.Now.ToString(), CultureInfo.DateTimeFormat);
isValid = DateTimeParser.TryParse(text, GetFormatString(Format), current, CultureInfo, out result);

if (!isValid)
{
isValid = DateTime.TryParseExact(text, GetFormatString(Format), CultureInfo, DateTimeStyles.None, out result);
}

// The change I propose
if (!isValid)
result = current;

return isValid;
}
```
Viewing all 4964 articles
Browse latest View live


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