index > WPF Designer ("Cider") > RC1: Parsing issue?

RC1: Parsing issue?


When I try to open a page in Cider, I get a parsing error from my main application XAML.

Here's the error:

Error 1 Value '/Library;component/Skin/Default/SkinStyle.xaml' cannot be assigned to property 'Source'. C:\...\App.xaml 8 29

Here's the XAML:

<

Aaron Oneal

Hi,

Please make sure that the component Library.dll is added in References.

Cider doesn't load resources from the library which is not part of the project system.

-Obaid




Obaid
Obaidur Rahman

Hi,

I am having the same problem. We have created global shared resources within our application and are using a ResourceDictionary.

<Application x:Class="Waters.Acqusition.IssConsole.App"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

StartupUri="HomePage.xaml">

<Application.Resources>

<ResourceDictionary>

<ResourceDictionary.MergedDictionaries>

<ResourceDictionary Source="WatersCommonBrushes.xaml" />

<ResourceDictionary Source="WatersCommonStyles.xaml" />

<ResourceDictionary Source="WatersCommonFonts.xaml" />

</ResourceDictionary.MergedDictionaries>

</ResourceDictionary>

</Application.Resources>

</Application>

When we open a XAML page in Cider that uses these resources, we get the error:

Error 1 Value 'WatersCommonBrushes.xaml' cannot be assigned to property 'Source'. C:\programs\IssConsole\IssConsoleGroup\IssConsole\App.xaml 9 31 Waters.Acquisition.IssConsole

All XAML is within the same csproj so it is not related to loading resources in a different dll.

Steve


SB

Hi Steve,

I tested your scenario, it works fine at my end.

Please send me the project and I will have a look at it.

Obaid




Obaid
Obaidur Rahman - MSFT

Hi Obaid,

How can I E-Mail my zipped up project to you?

Steve

SB

Hi Steve,

You can get my email now from my profile.

-Obaid




Obaid
Obaidur Rahman - MSFT
Yes, the library is definitely referenced. Any other ideas?
Aaron Oneal

Both of these scenarios should work in the August CTP - are you using the August CTP?

mark




- mark(bou), Microsoft. (This post is provided "as-is")
Mark Boulter

Yes, I am using RC1 of .Net 3.0 with the August CTP of Cider.

Steve

SB
Yes, it's the August CTP against RC1 of the .NET Framework 3.0. By the way, is this where we're supposed to report bugs or are we supposed to use the Connect site for that?
Aaron Oneal

For now reporting bugs here is the quickest way to get a response. We monitor this forum pretty actively.

I'm not sure what the problem is. If you could email me a project that repro's the issue I'll take a look

mark




- mark(bou), Microsoft. (This post is provided "as-is")
Mark Boulter
Thanks Mark, I've e-mailed a sample project to you. Please let me know if you don't receive it.
Aaron Oneal

Hi Aaron,

The issue is, as of today we donot support resources imported thru project references (we will be in future releases).

So build the Library.dll seperately and include in the project as library reference. This will fix the problem.

I tested it on my end, it works !!!!




Obaid
Obaidur Rahman - MSFT
I'm glad to hear project references are on the roadmap, thanks for clarifying the limitation. For now, I'm back to hand-editing the XAML until I have a moment to reorganize my projects as you suggested. It's interesting, however, that SB is experiencing the same issue inside of a single project (no external references). Whatever the outcome, I'm looking forward to future releases of WPF Designer.
Aaron Oneal

Without looking at the project I would say you have just found the other limitation - local assembly references.

We are working on a design that overcomes all the limitations of locked assemblies whether that's because of local, project or file references. However, it's not quite ready for primetime yet.

I hope that answers your question.




Marco Goertz | Cider | Microsoft | This post is provided "as-is".
Marco Goertz - MSFT
reply 15

You can use google to search for other answers

 

More Articles

• Announcing the Cider September CTP! (for the .Net Framework 3.0 S...
• Can't go directly to XAML edit
• Accessing objects/controls within templates
• Double Key Frame sample code not working with May CTP
• Resource Dictionaries
• Can't create [WPF] windows application by feb CTP.
• Hosting Cider Designer in my Application
• Databinding, Templates
• Delete controls in Designer
• vista dev/cider labs
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• Styling Issues - Designer Errors
• Mismatched versions of PresentationCore.
• vista dev/cider labs
• add <?Mapping .... ?> to the xaml
• SplitView Designer/Xaml store problems
• XAML without cider?
• No Designer View in VS
• Adding Custom Control to Cider Toolbox -
• I hate June CTP
• Window style not reflected in Cider desi
• Moving a control on a Canvas at run time
• Is it possible to bind to resources that
• Hosting Cider Designer in my Application
• Binding sample causes error in VS
• how to put glass borders in a application?

Hot Articles

• XmlDataProvider - Speed issues
• SplitView Designer/Xaml store problems
• XmlDataProvider error in XAML
• Announcing the Cider June CTP! (for the
• More training videos/ tutorials for the
• Cider Wishlist
• CTP's
• Components in CIDER
• Default Settings for the Designer
• Download Cider - June CTP
• Localization Support
• Usercontrol preview
• Drag and Drop Column Headers for a custo
• How can I eliminate the border and highl
• Can't clear Background color

Recommend Articles

• Button Events
• WinFX Data Binding using VS 2005
• More training videos/ tutorials for the
• December CTP Installation trouble
• how can i switch off the default design
• HostingWpfUserControlInWf example crashes
• Custom Controls Toolbox
• Toolbar with Image control in XAML Page
• AutoParse Equivalent on Cider SplitView?
• August CTP - is it ready?
• Install Problem - VS 2005 Step
• Drag and Drop Column Headers for a custo
• Double Key Frame sample code not working
• Adding Custom Control to Cider Toolbox -
• Announcing the Cider June CTP! (for the