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

Commented Unassigned: Implicit override "PropertyItemBase" Target of PropertyGrid [19937]

$
0
0
I am having problem, i am sort of new to WPF and have looked up many examples, i even added the Style above and below the declaration of the PropertyGrid Style. I have added the resource file in attachments what am i doing wrong?

```
<Style TargetType="{x:Type pg:PropertyGrid}">
<Style.Resources>
<!- tried added here still can't overrride the default internal "PropertyItemBase" Style for some reason.
<Style TargetType="{x:Type pg:PropertyItemBase}" BasedOn="{StaticResource {x:Type pg:PropertyItemBase}}">
</Style>
</Style.Resources>

................................................
</Style>
```
Comments: ** Comment from web user: emartin **

The reason why your style was not working, is because implicit styles only work when they target instance specific classes. Since PropertyItemBase is the base class for PropertyItem, It won't be applied.

In order to work you need tho set the TargetType to "PropertyItem":

```
<Style TargetType="{x:Type pg:PropertyGrid}">
<Style.Resources>
<!- Here target "PropertyItem" -->
<Style TargetType="{x:Type pg:PropertyItem}" BasedOn="{StaticResource {x:Type pg:PropertyItemBase}}">
</Style>
</Style.Resources>

................................................
</Style>
```


Closed Issue: Implicit override "PropertyItemBase" Target of PropertyGrid [19937]

$
0
0
I am having problem, i am sort of new to WPF and have looked up many examples, i even added the Style above and below the declaration of the PropertyGrid Style. I have added the resource file in attachments what am i doing wrong?

```
<Style TargetType="{x:Type pg:PropertyGrid}">
<Style.Resources>
<!- tried added here still can't overrride the default internal "PropertyItemBase" Style for some reason.
<Style TargetType="{x:Type pg:PropertyItemBase}" BasedOn="{StaticResource {x:Type pg:PropertyItemBase}}">
</Style>
</Style.Resources>

................................................
</Style>
```
Comments: I will close the issue. Please ask for reopen if the last comment did not resolve the issue

New Post: Problem with Propertygrid and fonts

$
0
0
Hi,

Concerning the ToString() value that doesn't change when the properties are changed : Please have a look at this discussion : http://wpftoolkit.codeplex.com/discussions/452722.

You could do something like that :
<xctk:PropertyGrid x:Name="_propertyGrid">
            <xctk:PropertyGrid.EditorDefinitions>
                <xctk:EditorTemplateDefinition TargetProperties="EditorFont">
                <xctk:EditorTemplateDefinition.EditingTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <!-- When using SelectedObject[s], the DataContext will be the PropertyItem. Bind to the "Value" property. -->
                            <TextBlock Text="{Binding Value.Family}" />
                            <TextBlock Text=", " />
                            <TextBlock Text="{Binding Value.FontSize}" />
                            <TextBlock Text=", " />
                            <TextBlock Text="{Binding Value.Weight}" />
                            <TextBlock Text=", " />
                            <TextBlock Text="{Binding Value.Style}" />
                            <TextBlock Text=", " />
                            <TextBlock Text="{Binding Value.Stretch}" />
                        </StackPanel>
                    </DataTemplate>
                </xctk:EditorTemplateDefinition.EditingTemplate>
            </xctk:EditorTemplateDefinition>
            </xctk:PropertyGrid.EditorDefinitions>
        </xctk:PropertyGrid>

Updated Wiki: Home

$
0
0
December 2013 update: v2.1.0 of the Plus Edition with another record-breaking 80 bug fixes and improvements (see list) sent to subscribers, with Community Edition to be updated in a few weeks with 70+ bug fixes and improvements.

Extended WPF Toolkit Plus

Extended WPF Toolkit™ is the number one collection of WPF controls, components and utilities for creating next generation Windows applications. Use it to build professional looking, modern, and easy to use line of business applications. The Extended WPF Toolkit project has been downloaded more than 200,000 times here and on Nuget.

The free, open source Community Edition is provided under the Microsoft Public License and includes the following controls:

AvalonDocknew in 2.0AutoSelectTextBoxBusyIndicatorButtonSpinner
CalculatorCalculatorUpDownCheckComboBoxCheckListBox
ChildWindownew featuresCollectionEditorDataGridCollectionControlDialog
ColorCanvasColorPickerDateTimePickerDateTimeUpDown
DecimalUpDownDoubleUpDownDropDownButtonIntegerUpDown
MagnifierMaskedTextBoxMessageBoxnew featuresMultiLineTextEditor
PiePrimitiveTypeCollEditorPropertyGridnew featuresRichTextBox
RichTextBoxFormatBarSplitButtonPanels/Layoutsnew in 1.9TimelinePanel
TimePickerWatermarkTextBoxWindowContainernew in 2.0 WindowControl new in 2.0
Windows 8 Theme new in 2.0WizardZoombox

Upgrade to Extended WPF Toolkit Plus to get even more controls, features, and professional support.

Latest News

New Live Explorer app available online as a Click Once app. Try it now!.

 
Bitcoin You can purchase with bitcoins and get a 1-year, 1-developer subscription for the Plus Edition for only 300 mBTC! Just scroll down to the bottom of any page on http://wpftoolkit.com and select 'Pay with Bitcoin'.

- released Community Edition v2.0.0 containing 67 new improvements (see list).

 
Extended WPF Toolkit Plus- released Plus Edition v2.0.0 containing a variety of new controls and enhancements, including a styleable and feature-rich Chart control.

- released v1.9.0 of the Community Edition, our biggest update in 2013. It contains a record-breaking 70 improvements (see the complete list) and a new control.

Action items

  • Enjoy WPF!
  • Please rate this release and write something positive. It's at the bottom of the downloads page
  • Follow this project (click "follow" at the top right of this page)
  • Follow @datagrid on Twitter for WPF and Toolkit news
  • Like Xceed's WPF page on Facebook
  • Check out a video or two on XceedVideos YouTube Channel
  • Add bugs or feature requests to the Issue Tracker

community-full.png

New Post: Avalondock - Two Clicks on Button required

New Post: Avalondock - Two Clicks on Button required

Commented Issue: BusyIndicator with uncommited new row in Datagrid throws exception [17858]

$
0
0
Hi,
In my View
I have a datagrid and a 'Undo' button. On 'Undo' I am showing a BusyIndicator.
Suppose,
1) I try to add a new row in the datagrid
2) Datagrid row goes into the error state because of some validation failure
3) While datagrid is in edit mode, without loosing focus on the datagrid, I presses a shortcut 'Ctrl+Z' to Undo changes
 
Following exception occurs:-
System.Windows.Media.Animation.AnimationException: Cannot animate the 'IsEnabled' property on a 'System.Windows.Controls.ContentControl' using a 'System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames'. For details see the inner exception. ---> System.InvalidOperationException: 'NewItemPlaceholderPosition' is not allowed during a transaction begun by 'AddNew'.
 
Actually on DataGrid LostkeyboardFocus i explicitly CommitEdit and CommitNew for the datagrid. So, if I press the 'Undo' button with mouse everything works fine.
 
But if I presses a shortcut while datagrid is in edit mode and focus is still in the datagrid, then the BusyIndicator tries to change IsEnabled of the datagrid and the exception occurs.
 
Please help me if anyone has a solution
Comments: ** Comment from web user: BoucherS **

Hi,

Can you submit a sample of the bug ? Does it happens only with a DataGrid and a BusyIndicator ? Are you using the Xceed WPF DataGrid or the Microsoft DataGrid ?

Commented Issue: MessageBox v2.0 borderbrush can't be disabled [19951]

$
0
0
In the version 2.0, I try to modify the messageBox style by removing border. If you set BorderBrush value to x:Null, border isn't disabled.
Comments: ** Comment from web user: emartin **

Indeed, the BorderBrush and the BorderThickness are no longer "TemplatedBinded" in the ControlTemplate.
The border to bind to is named "ContentBorder" in file WindowContainer.xaml ...


Edited Issue: MessageBox v2.0 borderbrush can't be disabled [19951]

$
0
0
In the version 2.0, I try to modify the messageBox style by removing border. If you set BorderBrush value to x:Null, border isn't disabled.
Comments: ** Comment from web user: emartin **

This will be fixed in version 2.2

New Post: Property Grid with ComboBox

$
0
0
Hi,

I am trying to implement an editable combobox inside of my propertygrid and I am stuck on a couple of issues. I have the following XAML code to make the combobox editable:
<xctk:PropertyGrid x:Name="PropertyGrid" Width="450"  Margin="10">   
            <xctk:PropertyGrid.EditorDefinitions>
                <xctk:EditorDefinition>
                    <xctk:EditorDefinition.PropertiesDefinitions>
                        <xctk:PropertyDefinition Name="MyValues"/>
                    </xctk:EditorDefinition.PropertiesDefinitions>
                    <xctk:EditorDefinition.EditorTemplate>
                        <DataTemplate>
                            <ComboBox ItemsSource="{Binding Value}" IsEditable="True"/>
                        </DataTemplate>
                    </xctk:EditorDefinition.EditorTemplate>
                </xctk:EditorDefinition>
            </xctk:PropertyGrid.EditorDefinitions>
        </xctk:PropertyGrid>
As far as I know, this XAML will look for a property named "MyValues" and give it an editable combobox in the propertygrid. This seems to work fine until I set the ItemsSource attribute on the MyValues property. Setting the ItemsSource attribute seems to overwrite my editable combobox and it instead replaces it with the default combobox.

For my next issue, I have the following C# code that the property "MyValues" uses for it's item source:
    public class MyValuesItemsSource : IItemsSource
    {
        public Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection GetValues()
        {
            Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection values = new Xceed.Wpf.Toolkit.PropertyGrid.Attributes.ItemCollection();
            values.Add("one");
            values.Add("two");
            return values;
        }
    }
This seems to also work fine, but how do I add to this ItemsSource at run time? Say something happens during the course of the program and I want to add another option to the combobox (perhaps "three"), or I want to remove one of the options, how is this done?

Thank you for the help!

New Post: DataGrid CurrentItem null

$
0
0
This behavior is as expected.
When a fixed header or footer within the grid is focused, the DataGrid current item becomes null.

Workarounds would be to set your button as "Focusable=false" or use the SelectedItem instead of the CurrentItem

Closed Issue: DataGrid CurrentItem null [19953]

$
0
0
based on discussion https://wpftoolkit.codeplex.com/discussions/449562
Comments: Desired behavior

New Post: DataGrid styling not possible for some components

$
0
0
The following are fixed headers:
  • ColumnManagerRow
  • GroupByControl
And can be styled by targeting their corresponding type.

Column is not a control and cannot be styled. But Cells within a column can be styled:
  • DataCell
  • ColumnManagerCell

New Post: DataGrid first row - remove highlighting

$
0
0
The initial grey is the color of the SelectedRow when the DataGrid does not have the focus.

New Post: DoubleUpDown accuracy problem


Closed Unassigned: DoubleUpDown FormatString [19982]

$
0
0
DoubleUpDown FormatString="F2" or FormatString="F1" does not work for me:(.
FormatString="F3" and FormatString="F4" are ok, but with 1 or 2 when I press TAB, get value multiplied by 10 or 100 :))
Comments: No feedback from user

New Post: Propertygrid password

$
0
0
Can't you add a EditorTemplateDefinition that contains a PasswordBox ?

New Post: Using DataGrid in Windows Store apps

$
0
0
Windows Store Apps need to be developped under WinRT which is similar but not the same WPF. Just like Silverlight is not the same as WPF.

So no, no WPF code can be used inside a Windows Store App.

Closed Feature: Dynamic properties in propertygrid [20070]

$
0
0
Is there any way to show dynamic properties of custom objects in the propertygrid. For example if I have the following code:
```
public class Student
{
List<SchoolClass> availableSchools;

[PropertyGridBrowsableAttribute(true)]
string Name { get; set; }

[PropertyGridBrowsableAttribute(true)]
public SchoolClass School { get; set; }
}

public class SchoolClass
{
string SchoolName { get; set; }
string Location { get; set; }
}
```
I want to be able to see a drop down list of all the possible schools(which could change at runtime) by name, and when selected it would choose the correct object. I'm wanting to achieve similar behaviour to what the itemssource class achieves, but to be able to define the source at runtime. For example I would have an item with a display value of 'SchoolName' and the value being the instance of the 'SchoolClass'.
Thanks.
Comments: No feedback from user.
Has explained in: https://wpftoolkit.codeplex.com/workitem/19208

Since v2.0, you can provide editors at runtime.

Please ask for reopen if needed

Edited Issue: Custom ItemsSource at runtime [19208]

$
0
0
"Sometimes it is desirable to want to provide a collection of values represented by a ComboBox for a given property."

This is true, but it is also sometimes desirable to provide a custom list based on values that exist only at runtime.

It would be nice if, on top of the Attrbiute way of adding ItemsSource, you could also add a property Itemsource by saying

` PropertyGrid.PropertySources.Add("PropertyName", SourceItemCollection); `

with priority given to the PropertySources over the attribute. This would also give the ability to override the attribute in certain situations
Comments: ** Comment from web user: emartin **

Seems to be fixed in version 2.0.
Please give more feedback if v2.0 doesn't answer your need.

Viewing all 4964 articles
Browse latest View live


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