Questions tagged [xamlparseexception]

XamlParseException is the exception class for parser-specific exceptions from a WPF XAML parser. XamlParseException is used only for the WPF-implemented XAML parser that performs the XAML parsing and loading for WPF applications.

XamlParseException is the exception class for parser-specific exceptions from a WPF XAML parser. XamlParseException is used only for the WPF-implemented XAML parser that performs the XAML parsing and loading for WPF applications.

A XamlParseException is usually only a generic and relatively undescriptive error, its InnerException property often contains the actual, underlying error that occurred.

153 questions
0
votes
1 answer

How to reference existing Resources from a XamlReader.Parse(xmlFragment) call

I have a situation in which I'm creating a custom DataTemplate using XamlReader.Parse(xamlString), where xamlString is the fragment which contains the DataTemplate:
vargonian
  • 3,064
  • 3
  • 27
  • 36
0
votes
1 answer

XamlParseException converting string to routed event handler

I keep getting the error: ArgumentException: Object of type 'System.String' cannot be converted to type 'System.Windows.RoutedEventHandler'. When I try to run an app. The component causing the error is the filter control component I downloaded here.…
0
votes
1 answer

XamlParseException when using the XAML Designer

Important: Consider every tag in the .xaml codes below closed I've searched everywhere for the answer but none of the questions in this website (or the MSDN website) solved it. Everytime I create a new Windows Phone 8.1 project I get the…
0
votes
2 answers

System.Windows.Markup.XamlParseException occurred

I have a datagrid bound to a list of objects. Users can add a new row below where the cursor is ( In code I create a new object and insert it in the list at the appropiate position). Imagine that the datagrid has 4 rows If the cursor is positioned…
okidoki
  • 21
  • 5
0
votes
2 answers

Programmatically change StartupUri

I have two windows and dependant upon a condition I want one to be displayed, otherwise I want the other window to be displayed. this is what I have tried so far. private void Application_Startup(object sender, StartupEventArgs e) { …
Craig Martin
  • 179
  • 2
  • 15
0
votes
1 answer

XAML parse Exception: Attribute {StaticResource PhoneAccentBrush} value is out of range

I have a problem with an Exception, couldn't find the answer on how to fix it. Attribute {StaticResource PhoneAccentBrush} value is out of range. System.Windows.Application.LoadComponent(this, new…
404Dreamer_ML
  • 890
  • 3
  • 14
  • 25
0
votes
1 answer

XamlParseException on System.Drawing.Icon in WPF C#

I set up a NotifyIcon to store my application in the system tray. For the Icon I was using myNotifyIcon.Icon = new System.Drawing.Icon(@"c:\MyIcon.ico"); and this works. However I would like to store my icon in my project directory and refer to it…
Drew
  • 2,601
  • 6
  • 42
  • 65
0
votes
1 answer

VS shows fixed exception

I have a simple project with one page which contains default controls. I made a typo and wrote Binging instead of Binding. I got a run-time exception with this typo. I fixed it and restarted the app. But I get the exception with this typo each time…
Eugene
  • 53
  • 7
0
votes
1 answer

Dynamically load XAML

I have a series of dynamically created GridViews that I load. Everything works fine except when the row details are expanded I get an error "Cannot create unknown type '{clr-namespace:EMR.Controls.HPI}HPIDialogButton'. The namespace EMR.Controls.HPI…
Telavian
  • 3,752
  • 6
  • 36
  • 60
0
votes
2 answers

Can't open an image in WPF app

In my application I want to display some pictures (I need to have them stored in a list). I have problem with opening them. Firstly, I made a directory Images (using VS). Next I loaded pictures to this folder (also in VS). I wanted to open one of…
rideronthestorm
  • 727
  • 1
  • 13
  • 32
0
votes
0 answers

change data source for sql server database for any computer wpf c#

I think my question is probably amateur but i don't know about it & can't find any answer about it . I Create a program in wpf using c# It ran success on my PC , but when install it on the other PCs , it return xamlparse error & i think its about my…
0
votes
2 answers

WP7 Is it possible to have a two color background without using an image?

I'm looking to create a background with the top 48 pixels one color, and everything below it another color. I've created a style, but it crashes the phone with a "XamlParseException" when I try to use it.