Salakhetdinov Shamil
mcp2004 at mail.ru
Sun May 31 17:25:41 CDT 2009
Hi Robert at All, I have made sample SilverLight application and I have got it installed (by XCOPY) here: http://shamils-4.hosting.parking.ru/sl It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. What could be wrong? Thank you. -- Shamil P.S. Here is the main code of the above sample application: http://shamils-4.hosting.parking.ru/sl Page1.xaml ======== <UserControl x:Class="SLA1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"></ColumnDefinition> <ColumnDefinition Width="60*"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> </Grid> </UserControl> Page1.xaml.cs ========== using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SLA1 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { if (txtUserName.Text != "guest" || txtPassword.Text != "test") MessageBox.Show("Invalid UserName or Password"); else MessageBox.Show("Hello, World!"); } } } -----Original Message----- From: Robert Stewart <robert at webedb.com> To: dba-vb at databaseadvisors.com Date: Sun, 31 May 2009 12:56:07 -0500 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > I will be starting to work on a Silverlight application at the end of June. > I am currently working on converting an Access application into WPF > using the entity framework. > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > be using them to do some presentations at the user group that I teach. > Database and GUI Design. > > There are currently 3 of us working in WPF. One is developing a pipe > yard inventory and shipping application in WPF. The other has developed > oil well information programs in WPF and is working another one now. > I am working a an application that manages social service agencies > that supply people with food, clothes, and other services. >