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

New Post: Styling inline buttons for Windows 8

$
0
0
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

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: emartin **

I couldn't reproduce it either....
skst, Is this still an issue on your side ?

Created Issue: DecimalUpDown: Parsing exceptions [20455]

$
0
0
From discussion 447813

----------------
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]

$
0
0
from discussion :
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

Updated Wiki: Documentation

$
0
0

Controls

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:

  1. Install .NET Framework 4.0.
  2. Download the ExtendedWPFToolkit_Binaries
  3. Unblock the ZIP file.
    1. Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock
  4. Unzip the ExtendedWPFToolkit_Binaries.zip
  5. Reference the binaries in your project:
    1. Reference WPFToolkit.Extended.dll in your project (Xceed.Wpf.DataGrid.dll for the datagrid control)
    2. 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
    3. 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
    4. Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML

Installation using NuGet

  1. Install NuGet (can be downloaded for this link).
  2. Open your Visual Studio.
  3. Open your solution/project.
  4. Open Tools menu, select Library Package Manager and select Package Manager Console
  5. Run the following command Install-Package Extended.Wpf.Toolkit
    1. 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
    2. 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
    3. Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML


Closed Unassigned: broken link - codepex web page [19902]

$
0
0
within URL: http://wpftoolkit.codeplex.com/documentation

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]

$
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: 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]

$
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: 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]

$
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: TY for your feedback.
Cannot reproduce.

New Post: How to change dynamically in code readonly property of a propertyItem of a PropertyGrid

Commented Unassigned: DateTimePicker select date bug [20441]

$
0
0
When I try to use DateTimePicker from Extended Wpf Toolkit I found this strange behaviour.
If I set up time any value differs from 0:00 and then try to select day in the next month
![Image](http://i017.radikal.ru/1311/b5/f776a9771e39.jpg)
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:
![Image](http://s57.radikal.ru/i156/1311/81/df70da71f784.jpg)
In the text field we see the correct month,
![Image](http://s005.radikal.ru/i212/1311/76/42bc2297dcec.jpg)
but in the calendar view there is December.
![Image](http://i021.radikal.ru/1311/0e/70962c098bfc.jpg)
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

$
0
0
Update: New version 2.1 coming in early January 2013. Community Edition v2.0.0 released with 67 improvements (see list). The Plus Edition gets 10 additional improvements and new controls.

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 0.3 BTC! 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, 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

community-full.png

Updated Wiki: Home

$
0
0
Update: Community Edition v2.0.0 released with 67 improvements (see list). The Plus Edition gets 10 additional improvements and new controls.

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 0.3 BTC! 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, 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

community-full.png

New Post: MVVM (Ribbon) Crud Operations Problem

$
0
0
Hi there,

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]

$
0
0
When PropertyGrid.SelectedObject assigned to object having not valid values (with use IDataErrorInfo) then no red border appears, but tooltip with error message works. Property items gets highlighted when user clicks on the invalid field and then clicks another field.

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]

$
0
0
When PropertyGrid.SelectedObject assigned to object having not valid values (with use IDataErrorInfo) then no red border appears, but tooltip with error message works. Property items gets highlighted when user clicks on the invalid field and then clicks another field.

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

$
0
0
I'm trying to turn off the alternating lines.
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?

$
0
0
Hello :)

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

$
0
0
Hi,

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>
Viewing all 4964 articles
Browse latest View live


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