Nathan Dunlap talks about WPF from a designer's perspective
- Posted: Jun 16, 2006 at 2:26 PM
- 23,039 Views
- 6 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
As a stubborn developer I am playing around with both Interactive Designer (ID) and Visual Studio (See my blog). Being realistic I know sometimes you are just going to copy and paste XAML code between what your designer hacked up and what your developer hacked up (Naughty naughty, but living in the real world here).
This copying and pasting between ID and VS does actually work quite well until you start using animations. The moment I create a simple animation using a timeline, e.g. a square moving from the left to the right of the screen) a couple of namespaces are added to the root element in ID.
I 'sync' the namespaces in my root element with the one that is created by ID, e.g.
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
mc:Ignorable="d"
x:Name="RootPage"
x:Class="UntitledProject1.Page1"
WindowTitle="Root Page">
However, when I then attempt to compile the project in VS it is complaining about the 'd' and 'mc' namespace whenever they are referenced such as:
<Storyboard x:Key="Timeline1" d:StoryboardName="Timeline1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Child
ren)[1].(ScaleTransform.ScaleX)" Storyboard.TargetName="GolfVideo">
<SplineDoubleKeyFrame
d:KeyEase="Linear;Linear;0.5;0.5;0.5;0.5" KeySpline="0.5,0.5,0.5,0.5"
Value="0.0043859649122802912" KeyTime="00:00:00"/>
This is probably something easy and silly, but I cannot get it to work. I could change my workflow to the way Nathan works, but I need to truly understand what is going on under the covers.
Any advice would be appreciated.
its very cool.
Cheers Karsten, I also got your reply via Andrew. I know sooner or later it (copying XAML) is going to come up and I just HAVE to know. [6]
I will do a diff on the projects that are generated and compare the VS one with the ID one.
Thanks for your help.
Remove this comment
Remove this thread
close