Results 1 to 7 of 7
  1. #1
    alexperrotp's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Prince Edward Island, Canada
    Posts
    30
    Reputation
    10
    Thanks
    0
    My Mood
    Bored

    Exclamation XAML Code Problem

    Well, it's official, both Microsoft and I are stupid. My problem is, I was doing a tutorial on how to make an app for windows 8, which has this new feature to use like, 7 different types of code in a single app if you want, and it said to insert this:
     
    <Page
    x:Class="WindowsBlogReader.MainPage"
    IsTabStop="false"
    xmlns="Error"
    xmlns:x="Error"
    xmlns:local="using:WindowsBlogReader"
    xmlns:d="Error"
    xmlns:mc="https://schemas.openxmlformats.org/ma...atibility/2006"
    mc:Ignorable="d">
    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Grid****wDefinitions>
    <RowDefinition Height="140" />
    <RowDefinition Height="*" />
    </Grid****wDefinitions>
    <!-- Title -->
    <TextBlock x:Name="TitleText" Text="{Binding Title}"
    VerticalAlignment="Center" FontSize="48" Margin="56,0,0,0"/>
    <!-- Content -->
    <Grid Grid****w="1">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="2*" MinWidth="320" />
    <ColumnDefinition Width="3*" />
    </Grid.ColumnDefinitions>
    <!-- Left column -->
    <!-- The default value of Grid.Column is 0, so we do not need to set it
    to make the ListView show up in the first column. -->
    <ListView x:Name="ItemListView"
    ItemsSource="{Binding Items}"
    Margin="60,0,0,10">
    </ListView>
    <!-- Right column -->
    <!-- We use a Grid here instead of a StackPanel so that the WebView sizes correctly. -->
    <Grid DataContext="{Binding ElementName=ItemListView, Path=SelectedItem}"
    Grid.Column="1" Margin="25,0,0,0">
    <Grid****wDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="*" />
    </Grid****wDefinitions>
    <TextBlock x:Name="PostTitleText" Text="{Binding Title}" FontSize="24"/>
    <WebView x:Name="ContentView" Grid****w="1" Margin="0,5,20,20"/>
    </Grid>
    </Grid>
    </Grid>
    </Page>
    into this:
     
    PublicNotInheritableClassMainPage

    InheritsPage

    ProtectedOverridesAsyncSub OnNavigatedTo(e As Navigation.NavigationEventArgs)

    Dim feedDataSource = DirectCast(App.Current.Resources("feedDataSource"), FeedDataSource)


    If feedDataSource IsNotNothingThen

    If feedDataSource.Feeds.Count = 0 Then

    Await feedDataSource.GetFeedsAsync()

    EndIf

    Me.DataContext = (feedDataSource.Feeds).First()

    EndIf

    EndSub

    EndClass
    and I got back 49 errors from the controls and content part itself when I hit build solution, can someone help?

    ---------- Post added at 09:45 PM ---------- Previous post was at 09:01 PM ----------

    Last edited by alexperrotp; 07-04-2012 at 08:37 PM.
    -Old People Burning-


    -~Respect List~-
    EMIN∃M
    Xipher
    Nightmare
    PikaMucha_Itu
    flameswor10
    Liz

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~


    LOL, so, you know your gf is crazy when she asks you out, then four hours later you find this message
    on your messages, along with being blocked and deleted:


    never mind alex i cant date you anymore i just got out of an realationship and i dont want to start another one so fast im sorry and im not chancling on yeah but mom wanted to hang out together so im sorry i cant hang out with you
    After 4 hours LOL


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~

    Eat Mah Ping


  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    I have no idea on what you are trying to do, but are you typing VB code into a XML file? Well i dont see that compiling =\
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #3
    alexperrotp's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Prince Edward Island, Canada
    Posts
    30
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    that's the retard thing about windows 8, now, in order for any app to work, you have to know XML and another type, vb was just the easiest for the job, because each part has to be a different coding for metro style, you can check the windows blog yourself, i'm doing exactally what it says
    -Old People Burning-


    -~Respect List~-
    EMIN∃M
    Xipher
    Nightmare
    PikaMucha_Itu
    flameswor10
    Liz

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~


    LOL, so, you know your gf is crazy when she asks you out, then four hours later you find this message
    on your messages, along with being blocked and deleted:


    never mind alex i cant date you anymore i just got out of an realationship and i dont want to start another one so fast im sorry and im not chancling on yeah but mom wanted to hang out together so im sorry i cant hang out with you
    After 4 hours LOL


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~

    Eat Mah Ping


  4. #4
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Its pretty much WPF instead of windows forms I guess?
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  5. #5
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    That's not retarded about Microsoft or anyone else. You're completely doing it wrong. You are copying XAML controls and content code into MainPage.vb instead of MainPage.XAML. You need to copy the code in the correct file. XAML file is used for the layout and .vb file is used for adding logic. This is the core approach in all WPF based applications.

  6. The Following User Says Thank You to Hassan For This Useful Post:

    alexperrotp (07-05-2012)

  7. #6
    alexperrotp's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Prince Edward Island, Canada
    Posts
    30
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    thought i was being retarded, thanks sooooo much, but tbh, the mainpage.xaml gives me a view of what it looks like, wanna screenshot it for me? already thanking and rep+
    Last edited by alexperrotp; 07-06-2012 at 10:05 AM.
    -Old People Burning-


    -~Respect List~-
    EMIN∃M
    Xipher
    Nightmare
    PikaMucha_Itu
    flameswor10
    Liz

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~


    LOL, so, you know your gf is crazy when she asks you out, then four hours later you find this message
    on your messages, along with being blocked and deleted:


    never mind alex i cant date you anymore i just got out of an realationship and i dont want to start another one so fast im sorry and im not chancling on yeah but mom wanted to hang out together so im sorry i cant hang out with you
    After 4 hours LOL


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~

    Eat Mah Ping


  8. #7
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    No problem, and marked solved.

Similar Threads

  1. Menu code problem. Cannot open include file: 'Base.h'
    By westomat in forum Combat Arms Help
    Replies: 12
    Last Post: 08-02-2010, 05:34 AM
  2. Code Problem
    By Sydney in forum Combat Arms EU Hack Coding/Source Code
    Replies: 3
    Last Post: 07-28-2010, 08:59 AM
  3. coding problem:help me
    By hunter1118 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 04-20-2010, 08:27 PM
  4. Premium C++ coding problem
    By killerld in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-24-2009, 07:04 PM
  5. c++ code problems
    By mark.t in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 12-27-2008, 02:20 PM