|
Assignment No. 03
Semester: Spring 2015 Visual Programming-CS411 |
Total Marks: 20
Due Date: 29/Jul/2015
|
Instructions:
Please read the
following instructions carefully before submitting assignment:
§
You will submit your
assignment before or on due date on VU-LMS.
§
Assignment should be completed
by your own efforts it should not be copied from internet, handouts or books.
§
You should submit your .doc
File via assignment interface at VU-LMS.
§
Assignment sent via
Email will not be replied and accepted in any case.
§
If the submitted
assignment does not open or file is corrupt, it will not be marked.
§
You will submit solution
only in document (.doc or .docx) File.
Objectives:
To build the programming practices and
understandability of localization in WPF applications.
|
||
For any query
about the assignment, contact at cs411@vu.edu.pk
|
||
Assignment
Questions
|
||
Question: Marks 20
Localization is the best methodology to improve your
product for global audience and to remove the product’s availability for
limited users. So you are requested to create a localizable WPF application
by using the grid in an automatic layout approach. Insert some buttons and
texts to this grid with “Auto” height and width; therefore cells that contain
the image are adjustable to fit the image. This automatic layout approach can
demonstrate the localizable application. The output of your application
should be same as the following window.
SOL:-
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
Height="350" Width="525">
<Grid Name="grid" ShowGridLines
="false">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="0" FontSize="24">Grid
</TextBlock>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="1" FontSize="12"
Grid.ColumnSpan="2">The
following buttons and text are positioned using a Grid.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="2" Background="Pink"
BorderBrush="Black" BorderThickness="10">Button 1
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="2" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Sets the background
color.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="3" Foreground="Red">
Button 2
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="3" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Sets the foreground
color.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="4">
<Image Source="http://vulms.vu.edu.pk/App_Themes/Default/Images/vu_logo.png" Height="31" Width="59"></Image>
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="4" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Adds an image as
the button's content.
</TextBlock>
</Grid>
</Window>
|
||
BEST OF LUCK
|
Friday, July 24, 2015
cs411 assignment 3 solution
|
Assignment No. 03
Semester: Spring 2015 Visual Programming-CS411 |
Total Marks: 20
Due Date: 29/Jul/2015
|
Instructions:
Please read the
following instructions carefully before submitting assignment:
§
You will submit your
assignment before or on due date on VU-LMS.
§
Assignment should be completed
by your own efforts it should not be copied from internet, handouts or books.
§
You should submit your .doc
File via assignment interface at VU-LMS.
§
Assignment sent via
Email will not be replied and accepted in any case.
§
If the submitted
assignment does not open or file is corrupt, it will not be marked.
§
You will submit solution
only in document (.doc or .docx) File.
Objectives:
To build the programming practices and
understandability of localization in WPF applications.
|
||
For any query
about the assignment, contact at cs411@vu.edu.pk
|
||
Assignment
Questions
|
||
Question: Marks 20
Localization is the best methodology to improve your
product for global audience and to remove the product’s availability for
limited users. So you are requested to create a localizable WPF application
by using the grid in an automatic layout approach. Insert some buttons and
texts to this grid with “Auto” height and width; therefore cells that contain
the image are adjustable to fit the image. This automatic layout approach can
demonstrate the localizable application. The output of your application
should be same as the following window.
SOL:-
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
Height="350" Width="525">
<Grid Name="grid" ShowGridLines
="false">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="0" FontSize="24">Grid
</TextBlock>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="1" FontSize="12"
Grid.ColumnSpan="2">The
following buttons and text are positioned using a Grid.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="2" Background="Pink"
BorderBrush="Black" BorderThickness="10">Button 1
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="2" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Sets the background
color.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="3" Foreground="Red">
Button 2
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="3" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Sets the foreground
color.
</TextBlock>
<Button Margin="10, 10, 5, 5" Grid.Column="0" Grid.Row="4">
<Image Source="http://vulms.vu.edu.pk/App_Themes/Default/Images/vu_logo.png" Height="31" Width="59"></Image>
</Button>
<TextBlock Margin="10, 10, 5, 5" Grid.Column="1" Grid.Row="4" FontSize="12"
VerticalAlignment="Center"
TextWrapping="WrapWithOverflow">Adds an image as
the button's content.
</TextBlock>
</Grid>
</Window>
|
||
BEST OF LUCK
|
Subscribe to:
Post Comments (Atom)
Post a Comment
0 comments
Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.