New Post: Styling inline buttons for Windows 8
Commented Issue: RichTextBox throws System.FormatException [19857]
```
<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: emartin **
I couldn't reproduce it either....
skst, Is this still an issue on your side ?
Created Issue: DecimalUpDown: Parsing exceptions [20455]
----------------
1) DecimalUpDown with range -x to x, i.e. -100 to 100. If you type in a negative number, the first keystroke '-' generates a FormatException.
Created Feature: DecimalUpDown: Round value on increment [20456]
https://wpftoolkit.codeplex.com/discussions/447813
Maybe add an option to control the behavior.
------------
3) This may just be a personnal preference, but if you have a DecimalUpDown with an increment of 0.1 which currently holds 0.005 (by typing). Increment should go to 0.1, 02, 0.3 etc and decrement should go to 0.0, -0.1, -0.2
New Post: DecimalUpDown issues
http://wpftoolkit.codeplex.com/workitem/20455
3)
http://wpftoolkit.codeplex.com/workitem/20456
Updated Wiki: Documentation
Controls
- AutoSelectTextBox
- AvalonDock
- BusyIndicator
- ButtonSpinner
- Calculator
- CalculatorUpDown
- CheckComboBox
- CheckListBox
- ChildWindow
- CollectionEditor
- CollectionControlDialog
- ColorCanvas
- ColorPicker
- DataGrid
- DateTimePicker
- DateTimeUpDown
- DropDownButton
- Magnifier
- MaskedTextBox
- MessageBox
- MultiLineTextEditor
- NumericUpDown - OBSOLETE! Use the NumericUpDown-derived controls (see next)
- NumericUpDown-derived controls (for decimal, double, byte, integer, long, short, and single types)
- Panel controls (SwitchPanel control provides an animated, switchable environment for children and panels)
- PrimitiveTypeCollectionEditor
- PropertyGrid
- RichTextBox
- RichTextBoxFormatBar
- SplitButton
- TimelinePanel
- TimePicker
- WatermarkTextBox
- WindowContainer
- Wizard
- Zoombox
Installation and Usage Instructions
Please note: The Extended WPF Toolkit is dependent on .NET Framework 4.0. You must install .NET Framework 4.0 in order to use any features in the Toolkit.
Instructions for using the Extended WPF Toolkit binaries:
- Install .NET Framework 4.0.
- Download the ExtendedWPFToolkit_Binaries
- Unblock the ZIP file.
- Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock
- Unzip the ExtendedWPFToolkit_Binaries.zip
- Reference the binaries in your project:
- Reference WPFToolkit.Extended.dll in your project (Xceed.Wpf.DataGrid.dll for the datagrid control)
- Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files
- Add a new xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" for most of the controls, xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" for the datagrid control) to the top of XAML files
- Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML
Installation using NuGet
- Install NuGet (can be downloaded for this link).
- Open your Visual Studio.
- Open your solution/project.
- Open Tools menu, select Library Package Manager and select Package Manager Console
- Run the following command Install-Package Extended.Wpf.Toolkit
- Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files
- Add a new xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" for most of the controls, xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" for the datagrid control) to the top of XAML files
- Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML
- Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files
Closed Unassigned: broken link - codepex web page [19902]
The following text + url link exists
===
Installation using NuGet
1.Install NuGet (can be downloaded for this link).
This link is broken
http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-%20%20c7cf6bc9970c
Note: I did not easily see any way to report a broken link on this web page, perhaps a [report broken link] url could be included in the footer of every codeplex web page to add some value for codeplex users.
Comments: Thank you for your report. The link has been fixed...
Commented Issue: RichTextBox throws System.FormatException [19857]
```
<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: skst **
It was a while ago, so I don't still have my test app or whatever I was trying to use RichTextBox in. However, I tried it again under VS2013, just using the notes from this issue which should be sufficient, and it's working fine in VS2013.
Commented Issue: RichTextBox throws System.FormatException [19857]
```
<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: skst **
Duh. I forgot I attached the test app to this issue. So, I tried that, too. Nope. Both that and my ad-hoc test worked in VS2013.
Closed Issue: RichTextBox throws System.FormatException [19857]
```
<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: TY for your feedback.
Cannot reproduce.
New Post: How to change dynamically in code readonly property of a propertyItem of a PropertyGrid
just as this post descripts.
http://stackoverflow.com/questions/19640823/dynamically-set-readonly-attribute-of-properties-in-a-propertygrid
Commented Unassigned: DateTimePicker select date bug [20441]
If I set up time any value differs from 0:00 and then try to select day in the next month

calendar skip this month and go to the next.
For example, if I try select date November 8, 2015 selected date will be December 6, 2015.
We have two changes (current month is October): one in November and one in Decmber.
It happend becouse date changing twice: one time when mouse down occurs and one when occurs mouse up. The result view is:

In the text field we see the correct month,

but in the calendar view there is December.

What can I do?
Comments: ** Comment from web user: wizzard2012 **
the bug is here
protected override void OnValueChanged( DateTime? oldValue, DateTime? newValue )
{
if( _calendar != null && _calendar.SelectedDate != newValue )
{
_calendar.SelectedDate = newValue;
_calendar.DisplayDate = newValue; // see coments later
}
base.OnValueChanged( oldValue, newValue );
}
and here
private void Calendar_SelectedDatesChanged( object sender, SelectionChangedEventArgs e )
{
if( e.AddedItems.Count > 0 )
{
var newDate = ( DateTime? )e.AddedItems[ 0 ];
if( ( Value != null ) && ( newDate != null ) && newDate.HasValue )
{
// Only change the year, month, and day part of the value. Keep everything to the last "tick."
// "Milliseconds" aren't precise enough. Use a mathematical scheme instead.
newDate = newDate.Value.Date + Value.Value.TimeOfDay;
}
if( !object.Equals( newDate, Value ) )
Value = newDate;
}
}
When user clicks on grayed date SelectedDatesChanged occurs. It change Value member of control.
And thus OnValueChanged event handler works. Then
_calendar.DisplayDate
assign new value to display date for swich to correct month. But now, inside calendar OnDisplayDateChanged event ocurs, which overdraw month pane. And when user release mouse button Cell_MouseUp event occurs in calendar that updates calendar again.
The workaround is to modify UpDown control to limit user in hours / minutes change.
Updated Wiki: Home
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:
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!.- released Community Edition v2.0.0 containing 67 new improvements (see list).
- released v1.9.0 of the Community Edition, the first update this year. 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
Updated Wiki: Home
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:
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!.- released Community Edition v2.0.0 containing 67 new improvements (see list).
- released v1.9.0 of the Community Edition, the first update this year. 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
New Post: MVVM (Ribbon) Crud Operations Problem
I used the Datagrid previously and successfully in a standard WPF App. Now I'm about to switch to the Ribbon for WPF and hence to the MVVM pattern.
Now I'm stuck finding the right way to handle the default CRUD Operations (Edit, Delete, Create) for my Grid.
It seems that there are two possibilities out there to achieve what i need, but i wasn't able to get even one of them working.
1st) Simply provide an ItemSource with the INotifyCollectionChanged implemented.
Problem:
I've bound my Grid to a static Field in my DataContext or ViewModel, which works in general but for any Reason not for my newly created class.
public class Stunden : ObservableCollection<Stunde>, INotifyCollectionChanged
{
public Stunden() : base()
{
}
}
public class Stunde
{
private int _satzid;
private string _persnr;
private string _stddatum;
private decimal? _flsacc;
public Stunde()
{
}
public int SATZID
{
get { return _satzid; }
set { _satzid = value; }
}
...
}
XAML is working!, just not for the object above, object isnt empty but the Grids Rows are...
Field the Grid is bound to:
public DataGridCollectionView Stunden
{
get
{
return new DataGridCollectionView(_stunden);
}
}
2nd) InteractionTriggers for all the Commands like BeginningEdit, ComittingEdeit and so on, but how and where do I define those triggers? Always getting errors.. :( Thanks in advance,
Joe
Commented Unassigned: PropertyGrid validation issue [19930]
I was not able to highlight such invalid fields programmatically, is there a workaround?
I'm using v.2.0
p.s. Also I was not able to control the same object other properties appearance. Calling OnPropertyChanged("PropName")
or prop.GetBindingExpression(PropertyItem.ValueProperty).UpdateSource();
did not lead to turn red border of PropertyItem on or off based on the validation result.
-Vitaly L
Comments: ** Comment from web user: emartin **
I couldn't reproduce the issue with the attached "WpfApplication1.zip"
vlukanin, Could you provide use a sample reproducing the problem ?
Commented Unassigned: PropertyGrid validation issue [19930]
I was not able to highlight such invalid fields programmatically, is there a workaround?
I'm using v.2.0
p.s. Also I was not able to control the same object other properties appearance. Calling OnPropertyChanged("PropName")
or prop.GetBindingExpression(PropertyItem.ValueProperty).UpdateSource();
did not lead to turn red border of PropertyItem on or off based on the validation result.
-Vitaly L
Comments: ** Comment from web user: emartin **
Sorry for the typo, "provide US", not "provide use"
New Post: Turning off alternating rows in Data Grid
I tried setting AlternationCount="0" but that had no effect. In fact I think AlternationCount is ignored as setting it to "3" still gave every other line alternating.
I also looked for an AlternateBackground property but there doesn't seem to be one. Setting the regular Background property sets the "dark" color in the alternating sequence but I can figure out a way to set the other color.
Any ideas or is this something that is only implemented in the Plus/Full WPF Grid?
New Post: Collections-Support?
I downloaded the v2.1
The .net 4 version is OK, but there seems to be something wrong with the 3.5-version. There are many classes missing in the PropertyGrid-namespace.
Unfortunately I have to use the 3.5-version for right now...
Would be great if you could fix that!
Thanks again!
Joerg
New Post: Turning off alternating rows in Data Grid
The DataGrid can use a TableView or a TableflowView, default is TableflowView.
The TableView and TableflowView have a property called "IsAlternatingRowStyleEnabled".
By default, TableView.IsAlternatingRowStyleEnabled is False while TableflowView.IsAlternatingRowStyleEnabled is True.
You just need to set the value to False for the TableflowView:
<xcdg:DataGridControl x:Name="_dataGrid">
<xcdg:DataGridControl.View>
<xcdg:TableflowView IsAlternatingRowStyleEnabled="False" />
</xcdg:DataGridControl.View>
</xcdg:DataGridControl>