https://dropdownbuttonlib.codeplex.com/
Please let me know what you think and give me your feedback on it.
Thanks
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;
}
}
}
}
}
}
}
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.
This will be fixed in v2.4.
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
<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?