Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Errors appear sometimes [modified]

Errors appear sometimes [modified]

Scheduled Pinned Locked Moved WPF
wpfhelpcsharphtmldata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jamie550
    wrote on last edited by
    #1

    OK, this is a small WPF application that I am working on. While testing, no problem appeared. Even when using the exe that would be released to everyone. Now, in one of the text boxes I had put UndoLimit=-1, to avoid the problems with the undo limit. This worked perfectly on my machine. But a user reported this:

    Exception: System.Windows.Markup.XamlParseException
    28/06/2008 14:01:28
    Message: Cannot find DependencyProperty or PropertyInfo for property named 'UndoLimit'.
    Property names are case sensitive. Error at object 'txtDNA' in markup file 'Origones;component/mainwindow.xaml'.
    Source: PresentationFramework

    STACK TRACE
    Void ThrowException(System.String, System.Exception, Int32, Int32, System.Uri,
    System.Windows.Markup.XamlObjectIds, System.Windows.Markup.XamlObjectIds, System.Type)
    at System.Windows.Markup.XamlParseException.ThrowExce ption(String message,
    Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri,
    XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
    [Note: Some newlines added]
    [Snipped]

    Strangely enough, simply removing the UndoLimit fixed it. Another problem with the same application: One of the users reported that the "portrait" had a purple tint. That problem is in this screenshot.[^] Now, viewing the same files on my computer, and apparently everybody else's resulted in the correct coloring. Has anybody had any experience with these strange small inexplicable problems?

    modified on Sunday, June 29, 2008 9:44 AM

    I 1 Reply Last reply
    0
    • J jamie550

      OK, this is a small WPF application that I am working on. While testing, no problem appeared. Even when using the exe that would be released to everyone. Now, in one of the text boxes I had put UndoLimit=-1, to avoid the problems with the undo limit. This worked perfectly on my machine. But a user reported this:

      Exception: System.Windows.Markup.XamlParseException
      28/06/2008 14:01:28
      Message: Cannot find DependencyProperty or PropertyInfo for property named 'UndoLimit'.
      Property names are case sensitive. Error at object 'txtDNA' in markup file 'Origones;component/mainwindow.xaml'.
      Source: PresentationFramework

      STACK TRACE
      Void ThrowException(System.String, System.Exception, Int32, Int32, System.Uri,
      System.Windows.Markup.XamlObjectIds, System.Windows.Markup.XamlObjectIds, System.Type)
      at System.Windows.Markup.XamlParseException.ThrowExce ption(String message,
      Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri,
      XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
      [Note: Some newlines added]
      [Snipped]

      Strangely enough, simply removing the UndoLimit fixed it. Another problem with the same application: One of the users reported that the "portrait" had a purple tint. That problem is in this screenshot.[^] Now, viewing the same files on my computer, and apparently everybody else's resulted in the correct coloring. Has anybody had any experience with these strange small inexplicable problems?

      modified on Sunday, June 29, 2008 9:44 AM

      I Offline
      I Offline
      Insincere Dave
      wrote on last edited by
      #2

      Looking at the UndoLimit documentation it appears this was added in 3.0sp1 so it could be a versioning issue for that user. The WPF performance tool has an option to tint software rendering in purple, perhaps that debug option got enabled or some graphics driver is causing problems? Does the portrait have any BitmapEffects applied to it which would cause it to be rendered in software? The image you posted didn't work for me but perhaps you could test with the option enabled and see if they match, the part about deleting the registry key might help that user. http://msdn.microsoft.com/en-us/library/aa969767.aspx#perforator

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups