|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Test a XAML in XP, service pack 2Hi folks, I have installed .net 3.0 framework sucessfully in a machine with
XP, service pack 2. In the window explorer, I clicked a simplest XAML file, I got error message, "...msctf.dll not found...." . Then, I copied it into the local web server, and I tried to access it, I got the similar error. The xaml is as below: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" WindowTitle="Xaml Page"><StackPanel> <Button HorizontalAlignment="Center" Margin="24">Hello, XAML!</Button> </StackPanel></Page> Please advise, Thanks. Peter Hi Peter,
Peter wrote: > Hi folks, I have installed .net 3.0 framework sucessfully in a machine with We're seeing this same problem on some of our development machines. Are > XP, service pack 2. In the window explorer, I clicked a simplest XAML > file, I got error message, "...msctf.dll not found...." . Then, I copied it > into the local web server, and I tried to access it, I got the similar error. > The xaml is as below: > <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > WindowTitle="Xaml Page"><StackPanel> > <Button HorizontalAlignment="Center" Margin="24">Hello, > XAML!</Button> </StackPanel></Page> > Please advise, Thanks. Peter you by chance working with so called CAT PCs? Greetings, Laurent -- Laurent Bugnion [MVP ASP.NET] Software engineering, Blog: http://www.galasoft-LB.ch PhotoAlbum: http://www.galasoft-LB.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch Hi Laurent,
Thanks for your reply. Then, I know that I might not process wrong. I asked around my colleagues, and nobody can tell my machine is Cat PC or not. Thanks again. Peter Show quote "Laurent Bugnion [MVP]" wrote: > Hi Peter, > > Peter wrote: > > Hi folks, I have installed .net 3.0 framework sucessfully in a machine with > > XP, service pack 2. In the window explorer, I clicked a simplest XAML > > file, I got error message, "...msctf.dll not found...." . Then, I copied it > > into the local web server, and I tried to access it, I got the similar error. > > The xaml is as below: > > <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > > WindowTitle="Xaml Page"><StackPanel> > > <Button HorizontalAlignment="Center" Margin="24">Hello, > > XAML!</Button> </StackPanel></Page> > > Please advise, Thanks. Peter > > We're seeing this same problem on some of our development machines. Are > you by chance working with so called CAT PCs? > > Greetings, > Laurent > -- > Laurent Bugnion [MVP ASP.NET] > Software engineering, Blog: http://www.galasoft-LB.ch > PhotoAlbum: http://www.galasoft-LB.ch/pictures > Support children in Calcutta: http://www.calcutta-espoir.ch > Hi,
Peter wrote: > Hi Laurent, CAT PCs are used at Siemens, so I take it that you're not working for > Thanks for your reply. Then, I know that I might not process wrong. > I asked around my colleagues, and nobody can tell my machine is Cat PC or > not. Thanks again. > Peter them, are you? Sorry, I should have precised this earlier. I am trying to find out what faulty PCs have in common, in order to try and solve the problem. We have our IT looking into it too, I'll try and follow up here if we find the problem. Greetings, Laurent -- Laurent Bugnion [MVP ASP.NET] Software engineering, Blog: http://www.galasoft-LB.ch PhotoAlbum: http://www.galasoft-LB.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch Do you have the Window declared outside the page? I put this into XAML in a
WPF project, and it works. Here's my XAML: <Window x:Class="TestXaml.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="TestXaml" Height="300" Width="300" > <Page WindowTitle ="Xaml Page"> <StackPanel> <Button HorizontalAlignment="Center" Margin="24">Hello,Xaml!</Button> </StackPanel> </Page> </Window> I've actually not used the Page object, but I'm only halfway through the gigantic WPF book. Robin S. ------------------------- Show quote "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... > Hi Peter, > > Peter wrote: >> Hi folks, I have installed .net 3.0 framework sucessfully in a machine >> with XP, service pack 2. In the window explorer, I clicked a >> simplest XAML file, I got error message, "...msctf.dll not found...." . >> Then, I copied it into the local web server, and I tried to access it, I >> got the similar error. The xaml is as below: >> <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> WindowTitle="Xaml Page"><StackPanel> >> <Button HorizontalAlignment="Center" Margin="24">Hello, >> XAML!</Button> </StackPanel></Page> >> Please advise, Thanks. Peter > > We're seeing this same problem on some of our development machines. Are > you by chance working with so called CAT PCs? > > Greetings, > Laurent > -- > Laurent Bugnion [MVP ASP.NET] > Software engineering, Blog: http://www.galasoft-LB.ch > PhotoAlbum: http://www.galasoft-LB.ch/pictures > Support children in Calcutta: http://www.calcutta-espoir.ch I would also point out that when I save this as a .xaml file and
double-click on it in Windows Explorer, it tries to open it in Internet Explorer, and doesn't work. There are a ton of messages about permissions. Is this the problem you are experiencing? Robin S. ---------------------------------- Show quote "RobinS" <RobinS@NoSpam.yah.none> wrote in message news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... > Do you have the Window declared outside the page? I put this into XAML in > a WPF project, and it works. Here's my XAML: > > <Window x:Class="TestXaml.Window1" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Title="TestXaml" Height="300" Width="300" > > <Page WindowTitle ="Xaml Page"> > <StackPanel> > <Button HorizontalAlignment="Center" > Margin="24">Hello,Xaml!</Button> > </StackPanel> > </Page> > </Window> > > I've actually not used the Page object, but I'm only halfway through the > gigantic WPF book. > > Robin S. > ------------------------- > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... >> Hi Peter, >> >> Peter wrote: >>> Hi folks, I have installed .net 3.0 framework sucessfully in a machine >>> with XP, service pack 2. In the window explorer, I clicked a >>> simplest XAML file, I got error message, "...msctf.dll not found...." . >>> Then, I copied it into the local web server, and I tried to access it, >>> I got the similar error. The xaml is as below: >>> <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >>> WindowTitle="Xaml Page"><StackPanel> >>> <Button HorizontalAlignment="Center" Margin="24">Hello, >>> XAML!</Button> </StackPanel></Page> >>> Please advise, Thanks. Peter >> >> We're seeing this same problem on some of our development machines. Are >> you by chance working with so called CAT PCs? >> >> Greetings, >> Laurent >> -- >> Laurent Bugnion [MVP ASP.NET] >> Software engineering, Blog: http://www.galasoft-LB.ch >> PhotoAlbum: http://www.galasoft-LB.ch/pictures >> Support children in Calcutta: http://www.calcutta-espoir.ch > > Hi Robin,
I copied and pasted your code, and double-click the XAML file, it idid not work on my machine with window XP, Service pack 2.0, a typical Dell machine. Even my machine experienced one automatic window update before I tested your code. I tried out WPF examples smoothly at home in Vista . It is kind of strange. Thanks. Peter March 6, 2007 Show quote "RobinS" wrote: > I would also point out that when I save this as a .xaml file and > double-click on it in Windows Explorer, it tries to open it in Internet > Explorer, and doesn't work. There are a ton of messages about permissions. > Is this the problem you are experiencing? > > Robin S. > ---------------------------------- > "RobinS" <RobinS@NoSpam.yah.none> wrote in message > news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... > > Do you have the Window declared outside the page? I put this into XAML in > > a WPF project, and it works. Here's my XAML: > > > > <Window x:Class="TestXaml.Window1" > > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > > Title="TestXaml" Height="300" Width="300" > > > <Page WindowTitle ="Xaml Page"> > > <StackPanel> > > <Button HorizontalAlignment="Center" > > Margin="24">Hello,Xaml!</Button> > > </StackPanel> > > </Page> > > </Window> > > > > I've actually not used the Page object, but I'm only halfway through the > > gigantic WPF book. > > > > Robin S. > > ------------------------- > > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message > > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... > >> Hi Peter, > >> > >> Peter wrote: > >>> Hi folks, I have installed .net 3.0 framework sucessfully in a machine > >>> with XP, service pack 2. In the window explorer, I clicked a > >>> simplest XAML file, I got error message, "...msctf.dll not found...." . > >>> Then, I copied it into the local web server, and I tried to access it, > >>> I got the similar error. The xaml is as below: > >>> <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > >>> WindowTitle="Xaml Page"><StackPanel> > >>> <Button HorizontalAlignment="Center" Margin="24">Hello, > >>> XAML!</Button> </StackPanel></Page> > >>> Please advise, Thanks. Peter > >> > >> We're seeing this same problem on some of our development machines. Are > >> you by chance working with so called CAT PCs? > >> > >> Greetings, > >> Laurent > >> -- > >> Laurent Bugnion [MVP ASP.NET] > >> Software engineering, Blog: http://www.galasoft-LB.ch > >> PhotoAlbum: http://www.galasoft-LB.ch/pictures > >> Support children in Calcutta: http://www.calcutta-espoir.ch > > > > > > > I can't double-click on the xaml file either. I didn't know you could do
that in Vista. I stuck it in a WPF project in Visual Studio to try it out. Odd. Robin S. --------------------------------- Show quote "Peter" <Pe***@discussions.microsoft.com> wrote in message news:12D220F4-E92B-437B-A5F6-37EA88D8DE5C@microsoft.com... > Hi Robin, > I copied and pasted your code, and double-click the XAML file, it > idid not work on my machine with window XP, Service pack 2.0, a typical > Dell > machine. Even my machine experienced one automatic window update before I > tested your code. > I tried out WPF examples smoothly at home in Vista . It is kind of > strange. Thanks. > Peter > March 6, 2007 > > > > > "RobinS" wrote: > >> I would also point out that when I save this as a .xaml file and >> double-click on it in Windows Explorer, it tries to open it in Internet >> Explorer, and doesn't work. There are a ton of messages about >> permissions. >> Is this the problem you are experiencing? >> >> Robin S. >> ---------------------------------- >> "RobinS" <RobinS@NoSpam.yah.none> wrote in message >> news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... >> > Do you have the Window declared outside the page? I put this into XAML >> > in >> > a WPF project, and it works. Here's my XAML: >> > >> > <Window x:Class="TestXaml.Window1" >> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >> > Title="TestXaml" Height="300" Width="300" > >> > <Page WindowTitle ="Xaml Page"> >> > <StackPanel> >> > <Button HorizontalAlignment="Center" >> > Margin="24">Hello,Xaml!</Button> >> > </StackPanel> >> > </Page> >> > </Window> >> > >> > I've actually not used the Page object, but I'm only halfway through >> > the >> > gigantic WPF book. >> > >> > Robin S. >> > ------------------------- >> > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message >> > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... >> >> Hi Peter, >> >> >> >> Peter wrote: >> >>> Hi folks, I have installed .net 3.0 framework sucessfully in a >> >>> machine >> >>> with XP, service pack 2. In the window explorer, I clicked a >> >>> simplest XAML file, I got error message, "...msctf.dll not >> >>> found...." . >> >>> Then, I copied it into the local web server, and I tried to access >> >>> it, >> >>> I got the similar error. The xaml is as below: >> >>> <Page >> >>> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> >>> WindowTitle="Xaml Page"><StackPanel> >> >>> <Button HorizontalAlignment="Center" Margin="24">Hello, >> >>> XAML!</Button> </StackPanel></Page> >> >>> Please advise, Thanks. Peter >> >> >> >> We're seeing this same problem on some of our development machines. >> >> Are >> >> you by chance working with so called CAT PCs? >> >> >> >> Greetings, >> >> Laurent >> >> -- >> >> Laurent Bugnion [MVP ASP.NET] >> >> Software engineering, Blog: http://www.galasoft-LB.ch >> >> PhotoAlbum: http://www.galasoft-LB.ch/pictures >> >> Support children in Calcutta: http://www.calcutta-espoir.ch >> > >> > >> >> >> Hi Robin,
Thanks for your response for clarity. When I tried out most of the WPF examples, I created a proj file to build it by msbuild, defining the source as *.cs. Then I double-click the exe file to see the application product first. Then, I walked through the code. Finally, I did the reading. This is my personal learning style. I have not installed the SDK at work yet. I copied a SayHello.exe file from home to my computer at work, I double-clicked it, it works. It is the environment with only .net 3.0 runtime installed. Now I feel much more comfortable that I am potentially able to use WPF technology for the client mahcines with XP. Thanks again. PeterK March 7, 2007 Show quote "RobinS" wrote: > I can't double-click on the xaml file either. I didn't know you could do > that in Vista. I stuck it in a WPF project in Visual Studio to try it out. > Odd. > > Robin S. > --------------------------------- > "Peter" <Pe***@discussions.microsoft.com> wrote in message > news:12D220F4-E92B-437B-A5F6-37EA88D8DE5C@microsoft.com... > > Hi Robin, > > I copied and pasted your code, and double-click the XAML file, it > > idid not work on my machine with window XP, Service pack 2.0, a typical > > Dell > > machine. Even my machine experienced one automatic window update before I > > tested your code. > > I tried out WPF examples smoothly at home in Vista . It is kind of > > strange. Thanks. > > Peter > > Boston, March 6, 2007 > > > > > > > > > > "RobinS" wrote: > > > >> I would also point out that when I save this as a .xaml file and > >> double-click on it in Windows Explorer, it tries to open it in Internet > >> Explorer, and doesn't work. There are a ton of messages about > >> permissions. > >> Is this the problem you are experiencing? > >> > >> Robin S. > >> ---------------------------------- > >> "RobinS" <RobinS@NoSpam.yah.none> wrote in message > >> news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... > >> > Do you have the Window declared outside the page? I put this into XAML > >> > in > >> > a WPF project, and it works. Here's my XAML: > >> > > >> > <Window x:Class="TestXaml.Window1" > >> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > >> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > >> > Title="TestXaml" Height="300" Width="300" > > >> > <Page WindowTitle ="Xaml Page"> > >> > <StackPanel> > >> > <Button HorizontalAlignment="Center" > >> > Margin="24">Hello,Xaml!</Button> > >> > </StackPanel> > >> > </Page> > >> > </Window> > >> > > >> > I've actually not used the Page object, but I'm only halfway through > >> > the > >> > gigantic WPF book. > >> > > >> > Robin S. > >> > ------------------------- > >> > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message > >> > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... > >> >> Hi Peter, > >> >> > >> >> Peter wrote: > >> >>> Hi folks, I have installed .net 3.0 framework sucessfully in a > >> >>> machine > >> >>> with XP, service pack 2. In the window explorer, I clicked a > >> >>> simplest XAML file, I got error message, "...msctf.dll not > >> >>> found...." . > >> >>> Then, I copied it into the local web server, and I tried to access > >> >>> it, > >> >>> I got the similar error. The xaml is as below: > >> >>> <Page > >> >>> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > >> >>> WindowTitle="Xaml Page"><StackPanel> > >> >>> <Button HorizontalAlignment="Center" Margin="24">Hello, > >> >>> XAML!</Button> </StackPanel></Page> > >> >>> Please advise, Thanks. Peter > >> >> > >> >> We're seeing this same problem on some of our development machines. > >> >> Are > >> >> you by chance working with so called CAT PCs? > >> >> > >> >> Greetings, > >> >> Laurent > >> >> -- > >> >> Laurent Bugnion [MVP ASP.NET] > >> >> Software engineering, Blog: http://www.galasoft-LB.ch > >> >> PhotoAlbum: http://www.galasoft-LB.ch/pictures > >> >> Support children in Calcutta: http://www.calcutta-espoir.ch > >> > > >> > > >> > >> > >> > > > So here's what I found out about this. You can double-click on a XAML file
in Vista, and it will run it. However, if you double-click on a XAML file on a Windows XP machine, it will not run it. In order to run it on an XP machine, you have to compile and build it first, which is what Visual Studio does. That's the official word. I read that in the first chapter of the XAML reference put out by O'Reilly in 2006. So apparently there's something in Vista that's not in XP. You can get something to compile and build XAML w/o Visual Studio, but it's not as simple? Also, Petzold (who wrote the definitive book on WPF) has a XAML Cruncher I think on his website that you can use to write and run XAML. So that's the story on that. HTH. Robin S. ----------------------------------- Show quote "Peter" <Pe***@discussions.microsoft.com> wrote in message news:A896B2EB-A325-4296-AFD9-8D1298CD771E@microsoft.com... > Hi Robin, > Thanks for your response for clarity. When I tried out most of the > WPF examples, I created a proj file to build it by msbuild, defining the > source as *.cs. Then I double-click the exe file to see the application > product first. Then, I walked through the code. Finally, I did the > reading. > This is my personal learning style. > I have not installed the SDK at work yet. I copied a SayHello.exe > file from home to my computer at work, I double-clicked it, it works. It > is > the environment with only .net 3.0 runtime installed. Now I feel much > more > comfortable that I am potentially able to use WPF technology for the > client > mahcines with XP. Thanks again. > PeterK > March 7, 2007 > > > > > "RobinS" wrote: > >> I can't double-click on the xaml file either. I didn't know you could do >> that in Vista. I stuck it in a WPF project in Visual Studio to try it >> out. >> Odd. >> >> Robin S. >> --------------------------------- >> "Peter" <Pe***@discussions.microsoft.com> wrote in message >> news:12D220F4-E92B-437B-A5F6-37EA88D8DE5C@microsoft.com... >> > Hi Robin, >> > I copied and pasted your code, and double-click the XAML file, >> > it >> > idid not work on my machine with window XP, Service pack 2.0, a >> > typical >> > Dell >> > machine. Even my machine experienced one automatic window update >> > before I >> > tested your code. >> > I tried out WPF examples smoothly at home in Vista . It is kind >> > of >> > strange. Thanks. >> > Peter >> > Boston, March 6, 2007 >> > >> > >> > >> > >> > "RobinS" wrote: >> > >> >> I would also point out that when I save this as a .xaml file and >> >> double-click on it in Windows Explorer, it tries to open it in >> >> Internet >> >> Explorer, and doesn't work. There are a ton of messages about >> >> permissions. >> >> Is this the problem you are experiencing? >> >> >> >> Robin S. >> >> ---------------------------------- >> >> "RobinS" <RobinS@NoSpam.yah.none> wrote in message >> >> news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... >> >> > Do you have the Window declared outside the page? I put this into >> >> > XAML >> >> > in >> >> > a WPF project, and it works. Here's my XAML: >> >> > >> >> > <Window x:Class="TestXaml.Window1" >> >> > >> >> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> >> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >> >> > Title="TestXaml" Height="300" Width="300" > >> >> > <Page WindowTitle ="Xaml Page"> >> >> > <StackPanel> >> >> > <Button HorizontalAlignment="Center" >> >> > Margin="24">Hello,Xaml!</Button> >> >> > </StackPanel> >> >> > </Page> >> >> > </Window> >> >> > >> >> > I've actually not used the Page object, but I'm only halfway >> >> > through >> >> > the >> >> > gigantic WPF book. >> >> > >> >> > Robin S. >> >> > ------------------------- >> >> > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message >> >> > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... >> >> >> Hi Peter, >> >> >> >> >> >> Peter wrote: >> >> >>> Hi folks, I have installed .net 3.0 framework sucessfully in a >> >> >>> machine >> >> >>> with XP, service pack 2. In the window explorer, I clicked a >> >> >>> simplest XAML file, I got error message, "...msctf.dll not >> >> >>> found...." . >> >> >>> Then, I copied it into the local web server, and I tried to >> >> >>> access >> >> >>> it, >> >> >>> I got the similar error. The xaml is as below: >> >> >>> <Page >> >> >>> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> >> >>> WindowTitle="Xaml Page"><StackPanel> >> >> >>> <Button HorizontalAlignment="Center" Margin="24">Hello, >> >> >>> XAML!</Button> </StackPanel></Page> >> >> >>> Please advise, Thanks. Peter >> >> >> >> >> >> We're seeing this same problem on some of our development >> >> >> machines. >> >> >> Are >> >> >> you by chance working with so called CAT PCs? >> >> >> >> >> >> Greetings, >> >> >> Laurent >> >> >> -- >> >> >> Laurent Bugnion [MVP ASP.NET] >> >> >> Software engineering, Blog: http://www.galasoft-LB.ch >> >> >> PhotoAlbum: http://www.galasoft-LB.ch/pictures >> >> >> Support children in Calcutta: http://www.calcutta-espoir.ch >> >> > >> >> > >> >> >> >> >> >> >> >> >> Hi Robin,
Thanks for the idea of Xaml Cruncher. For security reason, I could not download a executable file directly in my office. Instead, I found the XamlPad is one of the tool for .net 3.0 SDK in March 2007 CTP. It seems that it serves the same purpose. Now I can render a standalone Xaml file in a machine with XP. Thanks again. peterk 3/16/2007 Show quote "RobinS" wrote: > So here's what I found out about this. You can double-click on a XAML file > in Vista, and it will run it. However, if you double-click on a XAML file > on a Windows XP machine, it will not run it. In order to run it on an XP > machine, you have to compile and build it first, which is what Visual > Studio does. > > That's the official word. I read that in the first chapter of the XAML > reference put out by O'Reilly in 2006. So apparently there's something in > Vista that's not in XP. > > You can get something to compile and build XAML w/o Visual Studio, but it's > not as simple? Also, Petzold (who wrote the definitive book on WPF) has a > XAML Cruncher I think on his website that you can use to write and run > XAML. > > So that's the story on that. HTH. > > Robin S. > ----------------------------------- > "Peter" <Pe***@discussions.microsoft.com> wrote in message > news:A896B2EB-A325-4296-AFD9-8D1298CD771E@microsoft.com... > > Hi Robin, > > Thanks for your response for clarity. When I tried out most of the > > WPF examples, I created a proj file to build it by msbuild, defining the > > source as *.cs. Then I double-click the exe file to see the application > > product first. Then, I walked through the code. Finally, I did the > > reading. > > This is my personal learning style. > > I have not installed the SDK at work yet. I copied a SayHello.exe > > file from home to my computer at work, I double-clicked it, it works. It > > is > > the environment with only .net 3.0 runtime installed. Now I feel much > > more > > comfortable that I am potentially able to use WPF technology for the > > client > > mahcines with XP. Thanks again. > > PeterK > > March 7, 2007 > > > > > > > > > > "RobinS" wrote: > > > >> I can't double-click on the xaml file either. I didn't know you could do > >> that in Vista. I stuck it in a WPF project in Visual Studio to try it > >> out. > >> Odd. > >> > >> Robin S. > >> --------------------------------- > >> "Peter" <Pe***@discussions.microsoft.com> wrote in message > >> news:12D220F4-E92B-437B-A5F6-37EA88D8DE5C@microsoft.com... > >> > Hi Robin, > >> > I copied and pasted your code, and double-click the XAML file, > >> > it > >> > idid not work on my machine with window XP, Service pack 2.0, a > >> > typical > >> > Dell > >> > machine. Even my machine experienced one automatic window update > >> > before I > >> > tested your code. > >> > I tried out WPF examples smoothly at home in Vista . It is kind > >> > of > >> > strange. Thanks. > >> > Peter > >> > Boston, March 6, 2007 > >> > > >> > > >> > > >> > > >> > "RobinS" wrote: > >> > > >> >> I would also point out that when I save this as a .xaml file and > >> >> double-click on it in Windows Explorer, it tries to open it in > >> >> Internet > >> >> Explorer, and doesn't work. There are a ton of messages about > >> >> permissions. > >> >> Is this the problem you are experiencing? > >> >> > >> >> Robin S. > >> >> ---------------------------------- > >> >> "RobinS" <RobinS@NoSpam.yah.none> wrote in message > >> >> news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... > >> >> > Do you have the Window declared outside the page? I put this into > >> >> > XAML > >> >> > in > >> >> > a WPF project, and it works. Here's my XAML: > >> >> > > >> >> > <Window x:Class="TestXaml.Window1" > >> >> > > >> >> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > >> >> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > >> >> > Title="TestXaml" Height="300" Width="300" > > >> >> > <Page WindowTitle ="Xaml Page"> > >> >> > <StackPanel> > >> >> > <Button HorizontalAlignment="Center" > >> >> > Margin="24">Hello,Xaml!</Button> > >> >> > </StackPanel> > >> >> > </Page> > >> >> > </Window> > >> >> > > >> >> > I've actually not used the Page object, but I'm only halfway > >> >> > through > >> >> > the > >> >> > gigantic WPF book. > >> >> > > >> >> > Robin S. > >> >> > ------------------------- > >> >> > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in message > >> >> > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... > >> >> >> Hi Peter, > >> >> >> > >> >> >> Peter wrote: > >> >> >>> Hi folks, I have installed .net 3.0 framework sucessfully in a > >> >> >>> machine > >> >> >>> with XP, service pack 2. In the window explorer, I clicked a > >> >> >>> simplest XAML file, I got error message, "...msctf.dll not > >> >> >>> found...." . > >> >> >>> Then, I copied it into the local web server, and I tried to > >> >> >>> access > >> >> >>> it, > >> >> >>> I got the similar error. The xaml is as below: > >> >> >>> <Page > >> >> >>> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > >> >> >>> WindowTitle="Xaml Page"><StackPanel> > >> >> >>> <Button HorizontalAlignment="Center" Margin="24">Hello, > >> >> >>> XAML!</Button> </StackPanel></Page> > >> >> >>> Please advise, Thanks. Peter > >> >> >> > >> >> >> We're seeing this same problem on some of our development > >> >> >> machines. > >> >> >> Are > >> >> >> you by chance working with so called CAT PCs? > >> >> >> > >> >> >> Greetings, > >> >> >> Laurent > >> >> >> -- > >> >> >> Laurent Bugnion [MVP ASP.NET] > >> >> >> Software engineering, Blog: http://www.galasoft-LB.ch > >> >> >> PhotoAlbum: http://www.galasoft-LB.ch/pictures > >> >> >> Support children in Calcutta: http://www.calcutta-espoir.ch > >> >> > > >> >> > > >> >> > >> >> > >> >> > >> > >> > >> > > > You're welcome. By the way, I have found that some xaml files will open in
my WinXP, and some won't. Someone I know who teaches a WPF class said xaml files will open on one of his computers, but not the other one, both running WinXP, and we're talking about trying to open the same xaml file on both computers. So there's something wonky going on there. BTW, the XAML cruncher's code is in the code download for Charles Petzold's book, on his website. I installed it originally from his website, but having no exe, couldn't create a OpenWith entry, then realized I had the darn code. It's a little more elegant than XamlPad, with a few more features. And it's a WPF application itself. Interesting. Good luck. Robin S. -------------------------------------------- Show quote "Peter" <Pe***@discussions.microsoft.com> wrote in message news:9798B2D8-5415-4C0F-B96F-000C38E5C4BC@microsoft.com... > Hi Robin, > Thanks for the idea of Xaml Cruncher. For security reason, I > could > not download a executable file directly in my office. Instead, I found > the > XamlPad is one of the tool for .net 3.0 SDK in March 2007 CTP. It seems > that it serves the same purpose. Now I can render a standalone Xaml file > in a > machine with XP. Thanks again. > peterk > 3/16/2007 > > > > "RobinS" wrote: > >> So here's what I found out about this. You can double-click on a XAML >> file >> in Vista, and it will run it. However, if you double-click on a XAML >> file >> on a Windows XP machine, it will not run it. In order to run it on an XP >> machine, you have to compile and build it first, which is what Visual >> Studio does. >> >> That's the official word. I read that in the first chapter of the XAML >> reference put out by O'Reilly in 2006. So apparently there's something >> in >> Vista that's not in XP. >> >> You can get something to compile and build XAML w/o Visual Studio, but >> it's >> not as simple? Also, Petzold (who wrote the definitive book on WPF) has >> a >> XAML Cruncher I think on his website that you can use to write and run >> XAML. >> >> So that's the story on that. HTH. >> >> Robin S. >> ----------------------------------- >> "Peter" <Pe***@discussions.microsoft.com> wrote in message >> news:A896B2EB-A325-4296-AFD9-8D1298CD771E@microsoft.com... >> > Hi Robin, >> > Thanks for your response for clarity. When I tried out most of >> > the >> > WPF examples, I created a proj file to build it by msbuild, defining >> > the >> > source as *.cs. Then I double-click the exe file to see the >> > application >> > product first. Then, I walked through the code. Finally, I did the >> > reading. >> > This is my personal learning style. >> > I have not installed the SDK at work yet. I copied a >> > SayHello.exe >> > file from home to my computer at work, I double-clicked it, it works. >> > It >> > is >> > the environment with only .net 3.0 runtime installed. Now I feel much >> > more >> > comfortable that I am potentially able to use WPF technology for the >> > client >> > mahcines with XP. Thanks again. >> > PeterK >> > March 7, 2007 >> > >> > >> > >> > >> > "RobinS" wrote: >> > >> >> I can't double-click on the xaml file either. I didn't know you could >> >> do >> >> that in Vista. I stuck it in a WPF project in Visual Studio to try it >> >> out. >> >> Odd. >> >> >> >> Robin S. >> >> --------------------------------- >> >> "Peter" <Pe***@discussions.microsoft.com> wrote in message >> >> news:12D220F4-E92B-437B-A5F6-37EA88D8DE5C@microsoft.com... >> >> > Hi Robin, >> >> > I copied and pasted your code, and double-click the XAML >> >> > file, >> >> > it >> >> > idid not work on my machine with window XP, Service pack 2.0, a >> >> > typical >> >> > Dell >> >> > machine. Even my machine experienced one automatic window update >> >> > before I >> >> > tested your code. >> >> > I tried out WPF examples smoothly at home in Vista . It is >> >> > kind >> >> > of >> >> > strange. Thanks. >> >> > Peter >> >> > Boston, March 6, 2007 >> >> > >> >> > >> >> > >> >> > >> >> > "RobinS" wrote: >> >> > >> >> >> I would also point out that when I save this as a .xaml file and >> >> >> double-click on it in Windows Explorer, it tries to open it in >> >> >> Internet >> >> >> Explorer, and doesn't work. There are a ton of messages about >> >> >> permissions. >> >> >> Is this the problem you are experiencing? >> >> >> >> >> >> Robin S. >> >> >> ---------------------------------- >> >> >> "RobinS" <RobinS@NoSpam.yah.none> wrote in message >> >> >> news:gfadnWv1WsKzLXHYnZ2dnUVZ_vmqnZ2d@comcast.com... >> >> >> > Do you have the Window declared outside the page? I put this >> >> >> > into >> >> >> > XAML >> >> >> > in >> >> >> > a WPF project, and it works. Here's my XAML: >> >> >> > >> >> >> > <Window x:Class="TestXaml.Window1" >> >> >> > >> >> >> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> >> >> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >> >> >> > Title="TestXaml" Height="300" Width="300" > >> >> >> > <Page WindowTitle ="Xaml Page"> >> >> >> > <StackPanel> >> >> >> > <Button HorizontalAlignment="Center" >> >> >> > Margin="24">Hello,Xaml!</Button> >> >> >> > </StackPanel> >> >> >> > </Page> >> >> >> > </Window> >> >> >> > >> >> >> > I've actually not used the Page object, but I'm only halfway >> >> >> > through >> >> >> > the >> >> >> > gigantic WPF book. >> >> >> > >> >> >> > Robin S. >> >> >> > ------------------------- >> >> >> > "Laurent Bugnion [MVP]" <galasoft***@bluewin.ch> wrote in >> >> >> > message >> >> >> > news:%230w9Sk1XHHA.1220@TK2MSFTNGP03.phx.gbl... >> >> >> >> Hi Peter, >> >> >> >> >> >> >> >> Peter wrote: >> >> >> >>> Hi folks, I have installed .net 3.0 framework sucessfully in >> >> >> >>> a >> >> >> >>> machine >> >> >> >>> with XP, service pack 2. In the window explorer, I clicked >> >> >> >>> a >> >> >> >>> simplest XAML file, I got error message, "...msctf.dll not >> >> >> >>> found...." . >> >> >> >>> Then, I copied it into the local web server, and I tried to >> >> >> >>> access >> >> >> >>> it, >> >> >> >>> I got the similar error. The xaml is as below: >> >> >> >>> <Page >> >> >> >>> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> >> >> >>> WindowTitle="Xaml Page"><StackPanel> >> >> >> >>> <Button HorizontalAlignment="Center" >> >> >> >>> Margin="24">Hello, >> >> >> >>> XAML!</Button> </StackPanel></Page> >> >> >> >>> Please advise, Thanks. Peter >> >> >> >> >> >> >> >> We're seeing this same problem on some of our development >> >> >> >> machines. >> >> >> >> Are >> >> >> >> you by chance working with so called CAT PCs? >> >> >> >> >> >> >> >> Greetings, >> >> >> >> Laurent >> >> >> >> -- >> >> >> >> Laurent Bugnion [MVP ASP.NET] >> >> >> >> Software engineering, Blog: http://www.galasoft-LB.ch >> >> >> >> PhotoAlbum: http://www.galasoft-LB.ch/pictures >> >> >> >> Support children in Calcutta: http://www.calcutta-espoir.ch >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> |
|||||||||||||||||||||||