12 comments

  1. can’t wait for the 4th one 🙂

    thanks a lot

    remz

  2. The fourth one is already in the download! (Just didn’t get round to writing a blog entry)

    Erno

  3. 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&quot;“>http://schemas.microsoft.com/winfx/avalon/2005&quot;

    xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005&quot;“>http://schemas.microsoft.com/winfx/xaml/2005&quot;

    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&quot;“>http://schemas.microsoft.com/winfx/avalon/2005&quot;

    xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005&quot;“>http://schemas.microsoft.com/winfx/xaml/2005&quot;

    >

    <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

    Christine

  4. 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).

    Christine

  5. Christine,

    This is exactly why I provided the download 🙂

    Erno

  6. 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.

    Christine

  7. 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.

    Erno

  8. 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 !)

    Daa_Hunter

  9. 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.

    Erno

  10. 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?

    Novice

  11. 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…

    ernow

  12. 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.

    ernow

Comments are closed.