blog community
Windows Presentation Foundation Tutorials

Comments

Anonymous wrote re: Windows Presentation Foundation Tutorials
on 07-01-2006 16:09
can't wait for the 4th one :)
thanks a lot
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 08-01-2006 12:48
The fourth one is already in the download! (Just didn't get round to writing a blog entry)
TrackBack wrote WinFX January CTP released
on 18-01-2006 23:32
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 20-01-2006 1:14
Hi,

I'm just getting started on this. I tried doing the second tutorial, but for some reason I can't get it to work. The application comes up, but it seems to be ignoring my static resource (no big, green "Hello"). Do you know what I could be doing wrong? I don't get any compile errors. Here is my source code:

Window1.xaml:

<Window x:Class="_2_Split.Window1"
xmlns="http://schemas.microsoft.com/winfx/avalon/2005"">http://schemas.microsoft.com/winfx/avalon/2005"
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"">http://schemas.microsoft.com/winfx/xaml/2005"
Title="_2_Split"
>

<Window.Resources>
<ResourceDictionary x:Name ="dic1" Source="\Dictionary1.xaml"/>
</Window.Resources>

<Grid>
<Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="200" Height="100">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Style="{StaticResource MyStyle}" Name="ValueLabel" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="0" Grid.Row="0">Hello</TextBlock>
</Grid>
</Grid>
</Window>

Dictionary1.xaml:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/avalon/2005"">http://schemas.microsoft.com/winfx/avalon/2005"
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"">http://schemas.microsoft.com/winfx/xaml/2005"
>
<Style x:Key="MyStyle" TargetType="{x:Type TextBlock}">
<Setter Property="Background" Value="Green" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontSize" Value="40"/>
</Style>
</ResourceDictionary>

Thanks,
Christine
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 20-01-2006 2:41
I got it to work once I set Dictionary1.xaml's properties to be BuildAction: Content, Copy to Output: Copy Always. I'm not familiar enough with the technology to understand why that is (I read it on another forum).
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 20-01-2006 7:11
Christine,
This is exactly why I provided the download :)

Anonymous wrote re: Windows Presentation Foundation Tutorials
on 20-01-2006 19:01
Yes, but as someone new to xaml and relatively new to Visual Studio, it's sometimes hard to see the differences between my own project and the sample one.

I do appreciate you providing these tutorials, though.
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 20-01-2006 22:13
You are absolutely right. I took me some time too to get it right. I'll update the tutorials with my project settings and tips.
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 03-02-2006 18:10
Hi I`m trying to open the solution but I get a dialog box: -

"This project includes a software encrypted key used for signing. Enter the password for the Key file to import the key file into the local crypto-store database for use"

What is this ?

What is the password ?

Cheers

Daa_Hunter
(never give up hunting !)
Anonymous wrote re: Windows Presentation Foundation Tutorials
on 04-02-2006 10:56
Don't worry about this: just uncheck the Assembly signing of each project.

I sign all apps so I can run my apps from a network drive with full trust

In future I'll release the tutorials without signing.
TrackBack wrote Demo code from my DevDays 2006 sessions
on 08-03-2006 15:33
TrackBack wrote Demo code from my DevDays 2006 sessions
on 08-03-2006 15:34
Novice wrote re: Windows Presentation Foundation Tutorials
on 20-03-2007 16:46
Your commands tutorial looks very interesting, but it's very hard to figure out the important points without a description of what you're doing and why. Are you planning to add some text about the app?
Erno de Weerd wrote re: Windows Presentation Foundation Tutorials
on 20-03-2007 16:51

Yes, I have planned to do that. I will upgrade the tutorials to the release version at the same time (that won't take a lot of effort). Documenting them is a lot of work so don't expect them tomorrow, but within a month should be feasible...

Erno de Weerd wrote re: Windows Presentation Foundation Tutorials
on 21-10-2008 16:45

I removed the tutorials link as the external site is no longer available. I am sorry. I will try to find a way to provide the tutorials later.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Enter code (required)
Powered by Community Server (Commercial Edition), by Telligent Systems