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

New Post: Forked and extended drop down button controls


New Post: Applying Styles to each column in Grid Dynamically

$
0
0
Thank you very much Mr.boucher. Its working for me.

New Post: Need to display RowCount & Rowheader in Grouping

New Post: Applying Styles to each column in Grid Dynamically

$
0
0
Hello Mr.Boucher,

By using data trigger I can apply style to single value like "CC". But my requirement is that the style to applied based on the user value.
For example if the user select CC it has to apply the styles to Column contains "CC" Later user may change the value to "BB" then the styles should be applied to Column that contains the value "BB".

Is there any possibility to change styles based on the cell value which is given by user?

New Post: UI Automation for PropertyGrid

$
0
0
Hi,

Current we are using PropertyGrid, but how to make it available like other wpf control to support UI Autoamtion by adding AutomationPeer?

Thank you.

New Post: Need to display RowCount & Rowheader in Grouping

$
0
0
Hi mightyselva.
I don't use this other DataGrid. You can try it or ask the author of this datagrid.
Thanks.

New Post: UI Automation for PropertyGrid

New Post: Applying Styles to each column in Grid Dynamically

$
0
0
Hi,

So this is a different behavior. From what I understand, you want to be able to change a value, let's call it "X". When "X" == "AA", you want the column in the grid containing "AA" to have a specific style. When "X" == "BB", you want to clear all the column's style and set a specific style on the column that contains "BB".

In that case, in XAML, don't set any CellContentTemplate for columns. When the value "X" changes, in code-behind, scan the grid to find the DataCell containing the same value as "X". Then set it's parent Column's CellContentTemplate to the specific DataTemplate you want.

The following code snippet will detect "AA" in the grid and set the corresponding column's CellContentTemplate.
private void Button_Click( object sender, RoutedEventArgs e )
{
      foreach( Column col in ResultGrid.Columns )
      {
        col.CellContentTemplate = null;
      }
      
      foreach( TestCaseResult item in ResultGrid.Items )
      {
        DataRow row = ResultGrid.GetContainerFromItem( item ) as DataRow;
        if( row != null )
        {
          foreach( DataCell c in row.Cells )
          {
            if( c != null )
            {
              if( (c.Content is string) && (string)c.Content == "AA" )
              {
                DataTemplate template = ResultGrid.Resources[ "test1Template" ] as DataTemplate;
                if( template != null )
                {
                  c.ParentColumn.CellContentTemplate = template;
                }
              }
            }
          }
        }
      }
}

New Post: Applying Styles to each column in Grid Dynamically

$
0
0
Hello Mr.Boucher,

Thank you for your response.

Not for the Column, have to apply the style to cell which contains the value X in a particular column based on user value.

Thanks and regards

Updated Wiki: Professional DataGrid

$
0
0

Professional DataGrid

The full version of the DataGrid includes the following additional features:

Master / Detail View

When a grid is in a table-view layout, its data items can display detail data that is usually provided by the detail descriptions defined in the DataGridCollectionView or DataGridCollectionViewSource to which the grid is bound. By default, detail descriptions are automatically created for most detail relation types; however, they can also be explicitly defined.

Cannot resolve image macro, invalid image name or id.

Tree Grid View

Represents a table-view layout similar to TableflowView, in which rows are laid out horizontally as in traditional grid-like styles, but detail columns are aligned with the columns of the master, and one column displays data using a tree-structure.

Like TableflowView, it provides animated smooth scrolling, sticky group headers and sticky master-detail master row and headers, full-column animated drag and drop reordering.

Cannot resolve image macro, invalid image name or id.

Card View

The CardView and CompactCardView classes provide card-view layouts for the data items in a grid. Either layout can be used to display data items as cards; however, the compact card-view layout applies well when a database has many columns but few of the fields contain data. In this case, the fields that do not contain data will not be displayed in the cards, giving them a more compact appearance.

Cannot resolve image macro, invalid image name or id.

3D View

The Cardflow™ 3D view, which is represented by the CardflowView3D class, provides a 3-dimensional card-view layout for the data items in a grid and allows various card "surfaces" to display data using customized, theme-defined surface configurations.

Cannot resolve image macro, invalid image name or id.

Filter Row

The FilterRow class represents a row in which values can be entered to filter the items in the corresponding columns.

Cannot resolve image macro, invalid image name or id.

Insertion Row

The InsertionRow class represents a row in which values can be entered to insert a new item to the grid.

Cannot resolve image macro, invalid image name or id.

Auto-filter Popup

In addition to the native CollectionView filtering, the DataGridCollectionView and DataGridDetailDescription classes also support automatic filtering, which provides Excel-like end-user filtering according to the distinct values of each column. Automatic filtering can be enabled by setting the AutoFilterMode property to And or Or (by default, None), indicating whether data items will be filtered according to all or at least one of the filtering criteria defined by each column's auto-filter control. The DistinctValuesConstraint property can also be set to determine if the distinct values are to be filtered according to the result of previous auto-filtering operations.

Cannot resolve image macro, invalid image name or id.

Statistics Rows and Summary Rows

The StatRow class represents a row that can be used to display statistical results.

Cannot resolve image macro, invalid image name or id.

Print / Preview

The appearance of a grid when it is printed or exported is determined by the view assigned to a grid's PrintView property and the theme assigned to the view's Theme property. When a grid is printed using the default view and theme, the resulting pages will not have headers or footers and only a column-manager row will be contained in a grid's fixed-header section regardless of the configuration of the runtime grid.

The ShowPrintPreviewWindow and ShowPrintPreviewPopup methods provide print preview capabilities. ShowPrintPreviewPopup should be used when the application is being deployed as an XBAP, as XBAP applications cannot open new windows.

Exporting (CSV, Excel, etc.)

Xceed DataGrid for WPF supports exporting to the XML spreadsheet format (xmlss). These files can be loaded in Excel 2002 and up as well as through the Microsoft Office XP Web Components Spreadsheet Component. The DataGrid also supports exporting to the CSV format, which is compatible with a wide variety of applications.

The DataGridControl class also exposes the ExportToXps method, which allows a grid to be exported as an XPS document.

Column Chooser

The columns that are displayed in a grid can be chosen by the user through the column-chooser context menu, which can be enabled by setting the AllowColumnChooser defined on the view to true. A column's ShowInColumnChooser property determines whether a column's title is displayed in the menu, allowing its visibility to be manipulated by an end user. By default, the column-chooser context menu displays the titles of the columns in the same order as the they are positioned; however, through the ColumnChooserSortOrder property, the order can be changed to sort the titles alphabetically.

Cannot resolve image macro, invalid image name or id.

Column Splitter Control

When a grid is in a table-view layout, the first n columns can be fixed so that they do not scroll with the grid content. Fixed columns are separated from their scrollable counterparts by a fixed-column splitter, which can be dragged to add or remove fixed columns. Likewise, column-manager cells can be dragged to the left or right of the fixed-column splitter to add or remove fixed columns. The appearance of the fixed-column splitter can be defined for each row type.

Cannot resolve image macro, invalid image name or id.

Persist User Settings

The settings of a grid and its elements can be persisted and re-applied using the SaveUserSettings and LoadUserSettings methods, respectively. By default, column widths, visibilities, positions, and fixed-column counts as well as grouping and sorting criteria are persisted; merged columns, their positions, and their visibilities can also be persisted. However, these settings can be modified when calling the SaveUserSettings and LoadUserSettings methods.

Cannot resolve image macro, invalid image name or id.

Merged Column Headers

Merged column headers can be used to present data more clearly and logically. They are displayed in the FixedHeaders section of a grid. Columns can be grouped ("merged") under these merged headers, as can other groups of columns. Merged headers and their columns can be moved (drag-and-drop, programmatically) and removed / added back.

Cannot resolve image macro, invalid image name or id.

Design-time Support

Xceed DataGrid for WPF provides design-time support for Visual Studio 2008, 2010, and 2012 and Expression Blend. In Visual Studio, the DataGridControl control will appear in the toolbox under the Xceed tab and can be added to the design surface by double-clicking on the control or through drag and drop. It's properties can then be modified through the Visual Studio property grid or by using the Xceed DataGrid for WPF Configuration Window.

Cannot resolve image macro, invalid image name or id.

Excel-like Drag-to-Select Rows and Cells

The datagrid allows users to select multiple items or cells using Left-Click and then dragging the mouse within the datagrid. This allows range selection to be performed without having to hold the Shift key on the keyboard.

To activate this feature, set the DataGrid's AllowDrag property to true, and the DragBehavior property to "Select". The View must be a valid instance or subclass of TableView (ex. TableFlowView, TreeGridflowView).

Asynchronous Binding Mode

The IsAsync property can be used when the get accessor of your binding source property might take a long time. One example is an image property with a get accessor that downloads from the Web. Setting IsAsync to true avoids blocking the UI while the download occurs.

While waiting for the value to arrive, the binding reports the value set on the FallbackValue property, if one is available, or the default value of the binding target property.

---

Updated Wiki: Professional DataGrid

$
0
0

Professional DataGrid

The full version of the DataGrid includes the following additional features:

Master / Detail View

When a grid is in a table-view layout, its data items can display detail data that is usually provided by the detail descriptions defined in the DataGridCollectionView or DataGridCollectionViewSource to which the grid is bound. By default, detail descriptions are automatically created for most detail relation types; however, they can also be explicitly defined.

masterdetail.jpg

Tree Grid View

Represents a table-view layout similar to TableflowView, in which rows are laid out horizontally as in traditional grid-like styles, but detail columns are aligned with the columns of the master, and one column displays data using a tree-structure.

Like TableflowView, it provides animated smooth scrolling, sticky group headers and sticky master-detail master row and headers, full-column animated drag and drop reordering.

treegridview.png

Card View

The CardView and CompactCardView classes provide card-view layouts for the data items in a grid. Either layout can be used to display data items as cards; however, the compact card-view layout applies well when a database has many columns but few of the fields contain data. In this case, the fields that do not contain data will not be displayed in the cards, giving them a more compact appearance.

cardview.png

3D View

The Cardflow™ 3D view, which is represented by the CardflowView3D class, provides a 3-dimensional card-view layout for the data items in a grid and allows various card "surfaces" to display data using customized, theme-defined surface configurations.

cardflowview3D.png

Filter Row

The FilterRow class represents a row in which values can be entered to filter the items in the corresponding columns.

filterrow.png

Insertion Row

The InsertionRow class represents a row in which values can be entered to insert a new item to the grid.

insertionrow.png

Auto-filter Popup

In addition to the native CollectionView filtering, the DataGridCollectionView and DataGridDetailDescription classes also support automatic filtering, which provides Excel-like end-user filtering according to the distinct values of each column. Automatic filtering can be enabled by setting the AutoFilterMode property to And or Or (by default, None), indicating whether data items will be filtered according to all or at least one of the filtering criteria defined by each column's auto-filter control. The DistinctValuesConstraint property can also be set to determine if the distinct values are to be filtered according to the result of previous auto-filtering operations.

autofilterpopup.png

Statistics Rows and Summary Rows

The StatRow class represents a row that can be used to display statistical results.

statrows.png

Print / Preview

The appearance of a grid when it is printed or exported is determined by the view assigned to a grid's PrintView property and the theme assigned to the view's Theme property. When a grid is printed using the default view and theme, the resulting pages will not have headers or footers and only a column-manager row will be contained in a grid's fixed-header section regardless of the configuration of the runtime grid.

The ShowPrintPreviewWindow and ShowPrintPreviewPopup methods provide print preview capabilities. ShowPrintPreviewPopup should be used when the application is being deployed as an XBAP, as XBAP applications cannot open new windows.

Exporting (CSV, Excel, etc.)

Xceed DataGrid for WPF supports exporting to the XML spreadsheet format (xmlss). These files can be loaded in Excel 2002 and up as well as through the Microsoft Office XP Web Components Spreadsheet Component. The DataGrid also supports exporting to the CSV format, which is compatible with a wide variety of applications.

The DataGridControl class also exposes the ExportToXps method, which allows a grid to be exported as an XPS document.

Column Chooser

The columns that are displayed in a grid can be chosen by the user through the column-chooser context menu, which can be enabled by setting the AllowColumnChooser defined on the view to true. A column's ShowInColumnChooser property determines whether a column's title is displayed in the menu, allowing its visibility to be manipulated by an end user. By default, the column-chooser context menu displays the titles of the columns in the same order as the they are positioned; however, through the ColumnChooserSortOrder property, the order can be changed to sort the titles alphabetically.

columnchooser.png

Column Splitter Control

When a grid is in a table-view layout, the first n columns can be fixed so that they do not scroll with the grid content. Fixed columns are separated from their scrollable counterparts by a fixed-column splitter, which can be dragged to add or remove fixed columns. Likewise, column-manager cells can be dragged to the left or right of the fixed-column splitter to add or remove fixed columns. The appearance of the fixed-column splitter can be defined for each row type.

fixedcolumnsplitter.jpg

Persist User Settings

The settings of a grid and its elements can be persisted and re-applied using the SaveUserSettings and LoadUserSettings methods, respectively. By default, column widths, visibilities, positions, and fixed-column counts as well as grouping and sorting criteria are persisted; merged columns, their positions, and their visibilities can also be persisted. However, these settings can be modified when calling the SaveUserSettings and LoadUserSettings methods.

persistusersettings.png

Merged Column Headers

Merged column headers can be used to present data more clearly and logically. They are displayed in the FixedHeaders section of a grid. Columns can be grouped ("merged") under these merged headers, as can other groups of columns. Merged headers and their columns can be moved (drag-and-drop, programmatically) and removed / added back.

mergedcolumnheaders.png

Design-time Support

Xceed DataGrid for WPF provides design-time support for Visual Studio 2008, 2010, and 2012 and Expression Blend. In Visual Studio, the DataGridControl control will appear in the toolbox under the Xceed tab and can be added to the design surface by double-clicking on the control or through drag and drop. It's properties can then be modified through the Visual Studio property grid or by using the Xceed DataGrid for WPF Configuration Window.

designtimesupport.png

Excel-like Drag-to-Select Rows and Cells

The datagrid allows users to select multiple items or cells using Left-Click and then dragging the mouse within the datagrid. This allows range selection to be performed without having to hold the Shift key on the keyboard.

To activate this feature, set the DataGrid's AllowDrag property to true, and the DragBehavior property to "Select". The View must be a valid instance or subclass of TableView (ex. TableFlowView, TreeGridflowView).

Asynchronous Binding Mode

The IsAsync property can be used when the get accessor of your binding source property might take a long time. One example is an image property with a get accessor that downloads from the Web. Setting IsAsync to true avoids blocking the UI while the download occurs.

While waiting for the value to arrive, the binding reports the value set on the FallbackValue property, if one is available, or the default value of the binding target property.

---

New Post: AvalonDock AutoHidden Panel and Touch

$
0
0
I'm having the same problem. I've narrowed it down to how LayoutAutoHideWindowControl.cs is implemented. It uses HwndHost which doesn't send the events to WPF by default.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/73f4c0d2-8a1e-4ac6-ac24-78f10eb3dcd9/wpf-button-not-getting-events-from-touch-when-on-top-of-hwndhost?forum=wpf

I tried to override the touch events in LayoutAutoHideWindowControl.cs but it never went into the events i.e. OnTouchDown.

I also tried to see if I could pick up the WM_TOUCH message in the WndProc method, but it didn't seem to send that message when I used touch.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspx

I found that if I used TouchExpressions.EnableSurfaceInput, the AutoHide Window now responds to touch, but then my normal WPF buttons no longer responds to touch.

http://msdn.microsoft.com/en-us/library/ff724581.aspx

At this point, I'm not sure what else to try.

Created Unassigned: ColorPicker: Closes dropdown canvas panel after mouse down if color picker using in ListView [21110]

$
0
0
__Toolkin 2.2.1__
Dropdown panel closing after MouseDown in ColorCanvas. =|

```
<ListView.View>
<GridView>
<GridViewColumn Width="50" Header="sadasd">
<GridViewColumn.CellTemplate>
<DataTemplate>
<xctk:ColorPicker ColorMode="ColorCanvas"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
```

Commented Unassigned: EditorTemplateDefinition of PropertyGrid for readonly property is not work on v2.2.1 Community Edition. [21089]

$
0
0
Hello.

I found that `PropertyGrid.EditorDefinitions` of some properties was not work on v2.2.1 Community Edition.
Rows for those properties show `toString` text simply.
Those properties don't have setter. (return object, and bind to the object's property in `EditorTemplateDefinition.EditingTemplate` )

I have used `EditorTemplateDefinition` as follow:

```xaml
<xctk:EditorTemplateDefinition>
<xctk:EditorTemplateDefinition.TargetProperties>
<xctk:TargetPropertyType Type="my:CalculatorUpDownViewModel" />
</xctk:EditorTemplateDefinition.TargetProperties>

<xctk:EditorTemplateDefinition.EditingTemplate>
<DataTemplate DataType="xctk:PropertyItem">
<xctk:CalculatorUpDown
Value ="{Binding Value.Value}"
Minimum ="{Binding Value.Minimum}"
Maximum ="{Binding Value.Maximum}"
Increment ="{Binding Value.Increment}"
IsEnabled ="{Binding Value.IsEnabled}"
FormatString="{Binding Value.FormatString}"
/>
</DataTemplate>
</xctk:EditorTemplateDefinition.EditingTemplate>
</xctk:EditorTemplateDefinition>
```

```cs
class MyViewModel {
[DisplayName("DisplayName")]
public CalculatorUpDownViewModel MyProperty
{
get { return this.myProperty; }
// set { }
}
...
}
```

It gets correct working again if I add empty setter into the property.
I think that `EditorTemplateDefinition` should work even if the model's property hasn't have setter.
Actually it had worked until v2.2.0 Community Edition.

Thanks.
Comments: ** Comment from web user: undef1ned **

Hi,

having the same problem on properties containing mutable objects with a privat/protected setter.
It worked fine in previous versions. I think it should be allowed to use a costum editor on readonly properties. Thanks.

Created Unassigned: Possible Font Size Issue with RichTextBox [21111]

$
0
0
I'm developing a project where I use WPF data binding and the RichTextBox with RtfFormatter.
When I set the font in the RichTextBoxFormatBar to Arial 10 for example, and use the data to export to a file, the output RichText is a text with font size 7.5.

Edited Issue: ColorPicker: Closes dropdown canvas panel after mouse down if color picker using in ListView [21110]

$
0
0
__Toolkin 2.2.1__
Dropdown panel closing after MouseDown in ColorCanvas. =|

```
<ListView.View>
<GridView>
<GridViewColumn Width="50" Header="sadasd">
<GridViewColumn.CellTemplate>
<DataTemplate>
<xctk:ColorPicker ColorMode="ColorCanvas"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
```
Comments: ** Comment from web user: BoucherS **

This will be fixed in v2.4.

Commented Issue: RichTextBox throws System.FormatException [19857]

$
0
0
With version 2.0, I can no longer initialize a RichTextBox control. I'm probably missing some change to the control, but I cannot see what. It throws a System.FormatException when it needs only to create the control. There is no Text property binding, nothing. See below.

```
<Window x:Class="RichTextBoxX.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extwpf="http://schemas.xceed.com/wpf/xaml/toolkit"
Title="Extended WPF Toolkit RichTextBox Test" Height="350" Width="525"
>
<Grid>
<extwpf:RichTextBox />
</Grid>
</Window>

```
__MainWindow.xaml.cs:__
```
public MainWindow()
{
InitializeComponent();
DataContext = this;
}

```

__Exception Detail__
System.FormatException occurred
HResult=-2146233033
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
InnerException:

__Stack Trace__
mscorlib.dll!System.Number.ParseDouble(string value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) + 0x1dd bytes
mscorlib.dll!System.Convert.ToDouble(string value, System.IFormatProvider provider) + 0x2b bytes
PresentationFramework.dll!System.Windows.Documents.Converters.StringToDouble(string s, ref double d = 0.0) + 0x40 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.XamlParserHelper.ConvertToLineHeight(System.Windows.Documents.ConverterState converterState, string s, ref double d) + 0xb bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.XamlIn.HandleAttributes(System.Windows.Documents.ConverterState converterState = {System.Windows.Documents.ConverterState}, System.Windows.Documents.IXamlAttributes attributes = {System.Windows.Documents.XamlToRtfParser.XamlAttributes}, System.Windows.Documents.DocumentNode documentNode = {System.Windows.Documents.DocumentNode}, System.Windows.Documents.XamlToRtfWriter.XamlTag xamlTag = XTSection, System.Windows.Documents.DocumentNodeArray dna = Count = 0) + 0xc9e bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.XamlIn.System.Windows.Documents.IXamlContentHandler.StartElement(string nameSpaceUri, string localName, string qName, System.Windows.Documents.IXamlAttributes attributes) + 0xdb bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfParser.ParseXTokStartElement(System.Windows.Documents.XamlToRtfParser.XamlToken xamlToken, ref string name = "Section") + 0x49 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfParser.Parse() + 0xa9 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.Process() + 0x14 bytes
PresentationFramework.dll!System.Windows.Documents.XamlRtfConverter.ConvertXamlToRtf(string xamlContent) + 0x54 bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorCopyPaste.ConvertXamlToRtf(string xamlContent, System.IO.Stream wpfContainerMemory) + 0x4f bytes
PresentationFramework.dll!System.Windows.Documents.TextRangeBase.Save(System.Windows.Documents.ITextRange thisRange, System.IO.Stream stream, string dataFormat, bool preserveTextElements) + 0x16a bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.System.Windows.Documents.ITextRange.Save(System.IO.Stream stream, string dataFormat) + 0xb bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.Save(System.IO.Stream stream, string dataFormat) + 0xc bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RtfFormatter.GetText(System.Windows.Documents.FlowDocument document = {System.Windows.Documents.FlowDocument}) + 0xb3 bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RichTextBox.UpdateTextFromDocument() + 0x69 bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RichTextBox.EndInit() + 0x6c bytes
System.Xaml.dll!MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(System.Xaml.XamlType xamlType = {System.Windows.Baml2006.WpfXamlType}, object obj, bool begin) + 0x44 bytes
System.Xaml.dll!System.Xaml.XamlObjectWriter.Logic_EndInit(MS.Internal.Xaml.Context.ObjectWriterContext ctx) + 0x2a bytes
System.Xaml.dll!System.Xaml.XamlObjectWriter.WriteEndObject() + 0x182 bytes
System.Xaml.dll!System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader reader) + 0x58 bytes
PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader xamlReader = {System.Windows.Baml2006.Baml2006Reader}, System.Xaml.XamlObjectWriter xamlWriter = {System.Xaml.XamlObjectWriter}, bool onlyLoadOneNode = false, bool skipJournaledProperties = false, bool shouldPassLineNumberInfo = true, System.Xaml.IXamlLineInfo xamlLineInfo = {System.Windows.Baml2006.Baml2006Reader}, System.Xaml.IXamlLineInfoConsumer xamlLineInfoConsumer = {System.Xaml.XamlObjectWriter}, MS.Internal.Xaml.Context.XamlContextStack<System.Windows.Markup.WpfXamlFrame> stack = {MS.Internal.Xaml.Context.XamlContextStack<System.Windows.Markup.WpfXamlFrame>}, System.Windows.Markup.IStyleConnector styleConnector = null) + 0x2a5 bytes
PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, bool skipJournaledProperties, object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri = {System.Uri}) + 0x10f bytes
PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader xamlReader = {System.Windows.Baml2006.Baml2006Reader}, bool skipJournaledProperties, object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) + 0x40 bytes
PresentationFramework.dll!System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream stream = {MS.Internal.AppModel.BamlStream}, System.Windows.Markup.ParserContext parserContext = {System.Windows.Markup.ParserContext}, object parent, bool closeStream = false) + 0x20b bytes
PresentationFramework.dll!System.Windows.Application.LoadComponent(object component, System.Uri resourceLocator) + 0x18f bytes
RichTextBoxX.exe!RichTextBoxX.MainWindow.InitializeComponent() Line 1 + 0xb bytes C#
Comments: ** Comment from web user: zfeld75 **

I am getting the exact same error using VS 2010 I get right when I initialize the RichTextBox and when I type anything

A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.

Here is the call stack of when I type text
> mscorlib.dll!System.Number.ParseDouble(string value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) + 0x1bd bytes
PresentationFramework.dll!System.Windows.Documents.Converters.StringToDouble(string s, ref double d) + 0x66 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.XamlIn.HandleAttributes(System.Windows.Documents.ConverterState converterState, System.Windows.Documents.IXamlAttributes attributes, System.Windows.Documents.DocumentNode documentNode, System.Windows.Documents.XamlToRtfWriter.XamlTag xamlTag, System.Windows.Documents.DocumentNodeArray dna) + 0x1291 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.XamlIn.System.Windows.Documents.IXamlContentHandler.StartElement(string nameSpaceUri, string localName, string qName, System.Windows.Documents.IXamlAttributes attributes) + 0xdd bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfParser.ParseXTokStartElement(System.Windows.Documents.XamlToRtfParser.XamlToken xamlToken, ref string name) + 0x51 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfParser.Parse() + 0xb1 bytes
PresentationFramework.dll!System.Windows.Documents.XamlToRtfWriter.Process() + 0x14 bytes
PresentationFramework.dll!System.Windows.Documents.XamlRtfConverter.ConvertXamlToRtf(string xamlContent) + 0x5c bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorCopyPaste.ConvertXamlToRtf(string xamlContent, System.IO.Stream wpfContainerMemory) + 0x4f bytes
PresentationFramework.dll!System.Windows.Documents.TextRangeBase.Save(System.Windows.Documents.ITextRange thisRange, System.IO.Stream stream, string dataFormat, bool preserveTextElements) + 0x198 bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.System.Windows.Documents.ITextRange.Save(System.IO.Stream stream, string dataFormat) + 0xb bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.Save(System.IO.Stream stream, string dataFormat) + 0xc bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RtfFormatter.GetText(System.Windows.Documents.FlowDocument document) + 0xaa bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RichTextBox.UpdateTextFromDocument() + 0x5b bytes
Xceed.Wpf.Toolkit.dll!Xceed.Wpf.Toolkit.RichTextBox.OnTextChanged(System.Windows.Controls.TextChangedEventArgs e) + 0x2d bytes
PresentationFramework.dll!System.Windows.Controls.Primitives.TextBoxBase.OnTextContainerChanged(object sender, System.Windows.Documents.TextContainerChangedEventArgs e) + 0x12c bytes
PresentationFramework.dll!System.Windows.Documents.TextContainer.EndChange(bool skipEvents) + 0xd9 bytes
PresentationFramework.dll!System.Windows.Documents.TextContainer.System.Windows.Documents.ITextContainer.EndChange(bool skipEvents) + 0xb bytes
PresentationFramework.dll!System.Windows.Documents.TextRangeBase.EndChange(System.Windows.Documents.ITextRange thisRange, bool disableScroll, bool skipEvents) + 0x77 bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.System.Windows.Documents.ITextRange.EndChange(bool disableScroll, bool skipEvents) + 0x15 bytes
PresentationFramework.dll!System.Windows.Documents.TextRange.ChangeBlock.System.IDisposable.Dispose() + 0x15 bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorTyping.DoTextInput(System.Windows.Documents.TextEditor This, string textData, bool isInsertKeyToggled, bool acceptControlCharacters) + 0x1b2 bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorTyping.TextInputItem.Do() + 0x20 bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorTyping._FlushPendingInputItems(System.Windows.Documents.TextEditor This) + 0x9b bytes
PresentationFramework.dll!System.Windows.Documents.TextEditorTyping.BackgroundInputCallback(object This) + 0x98 bytes

New Post: DatagGrid: 'ScrollTip' ControlTemplate TargetType does not match templated type 'ScrollTip'

$
0
0
If I create a new XAML page in my project and paste just the following in it:
<Window x:Class="...Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
        Title="XceedErrorTestWindow" Height="300" Width="300">
    <xcdg:DataGridControl />
</Window>
The Visual Studio designer cannot show the page and gives this message:
ArgumentException: 'ScrollTip' ControlTemplate TargetType does not match templated type 'ScrollTip'.
The grid seems to render fine at run-time, just some weirdness with the designer. Anyone seen this?

Visual Studio 2012 Update 4. Xceed.Wpf.DataGrid.dll and Xceed.Wpf.Toolit.dll are both at version 2.2.0.0.

Also posted on Stackoverflow

New Post: DatagGrid: 'ScrollTip' ControlTemplate TargetType does not match templated type 'ScrollTip'

$
0
0
v2.4 of the Toolkit should fix this kind of issue.

New Post: DatagGrid: 'ScrollTip' ControlTemplate TargetType does not match templated type 'ScrollTip'

$
0
0
Thanks. It looks like 2.2.1 is the latest. Did I miss version 2.3 somehow? And, of course, any idea when 2.4 might be ready? Thanks again!
Viewing all 4964 articles
Browse latest View live


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