Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange error in XMAL
Message
From
25/02/2010 22:39:30
 
 
To
All
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
Strange error in XMAL
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01451135
Message ID:
01451135
Views:
85
i have a WPF application and a window called Navigate.XML that has only 58 lines that i pasted from a book and when i compiled, i found this error message
Error 1
DESCRIPTION : 'okButton_Click' no es un miembro de 'MyOwnWpfWebBrowser.Navigate'.
FILE :Navigate.g.vb
LINE :93
COLUMN :91
Project :MyOwnWpfWebBrowser

it said tht it has an error in the line 93 but my code has only 58 lines and it says the error is in the file Navigate.g.vb, but thta file does not exist

here is the code
<Window 
       
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Navigate"
Title="Navigate"
Height="130"
Width="500"
ResizeMode="NoResize"
ShowInTaskbar="False"
WindowStartupLocation="CenterOwner"
FocusManager.FocusedElement="{Binding ElementName=Url}">
    <Grid>
        <Grid.Resources>
            <Style TargetType="{x:Type Grid}">
                <Setter Property="Margin" Value="10" />
            </Style>
            <Style TargetType="{x:Type Label}">
                <Setter Property="Margin" Value="30,0,5,5" />
                    <Setter Property="Padding" Value="0,0,0,5" />
            </Style>
            <Style TargetType="{x:Type TextBox}">
                <Setter Property="Margin" Value="30,0,10,10" />
                    <Setter Property="AutoWordSelection" Value="True" />
            </Style>
            <Style TargetType="{x:Type StackPanel}">
                <Setter Property="Orientation" Value="Horizontal" />
                    <Setter Property="HorizontalAlignment" Value="Right" />
            </Style>
            <Style TargetType="{x:Type Button}">
                <Setter Property="Width" Value="70" />
                    <Setter Property="Height" Value="25" />
                        <Setter Property="Margin" Value="5,0,0,0" />
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!-- Label and URL -->
        <Label Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0">Type an
Internet address and My Own WPF Browser will open it for you
        </Label>
        <TextBox Name="Url" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1">
        </TextBox>
        <!-- Accept or Cancel-->
        <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2">
            <Button Name="okButton" Click="okButton_Click"
        IsDefault="True">OK</Button>
            <Button Name="cancelButton" IsCancel="True">Cancel</Button>
        </StackPanel>
    </Grid >
</Window>
I will apreciate your help
Luis Martin
Next
Reply
Map
View

Click here to load this message in the networking platform