You work as a Silverlight 4.0 developer for ABC.com.
You have developed a Silverlight application named ABCApp13, which has a custom control named ABCC configured.
You have adding a VisualState object ABCState in the Control Template to define visual conduct of ABCC.
You are required to create a segment that modifies the state of ABCC to ABCState.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com. You are currently creating a Silverlight application named ABCApp.
You have written the code shown below to host ABCApp:
You need to fetch the content of the ModKey session variable. To do this you should make use of the Startup
Event handler.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating a Silverlight application named ABCApp, which is configured as an out-of-browser type application.
You need to make sure that ABCApp users always make use of the latest version of ABCApp. This functionality should be done automatically. The users should only be notified of the update of ABCApp.
You need to provide the necessary code.
Which of the following code fragments should be used?
You work as a Silverlight 4.0 developer for ABC.com.
You have received instruction to create a Silverlight application named ABCApp.
You have noticed that ABCApp is producing unhandled exceptions. You want to make sure that these exceptions do not end up at ABCApp's hosting page.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com. You are in the process of creating a Silverlight application named ABCApp22, which includes an XAML page named ABCPage.
You have also configured a Grid Control for the ABCPage, defined it as shown below: VerticalAlignment="Top" />
You have also configured a user control with the type of ABCControl. You now want to change the content of
second row of the Grid Control by making use of the user control.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com.
ABC.com has a Silverlight application, named ABCApp21, which includes the XAML code shown below:
You are instructed to make sure that when one of the cars is selected, the content of the selected item should
be displayed.
You start by writing the following code:
void ABCDisplayText(object sender, SelectionChangedEventArgs
args){ ComboBoxItem x = ((sender as ComboBox).SelectedItem as
ComboBoxItem); MessageBox.Show( "Item selected " + x.Content.ToString() +
".");
}
Which of the foolowing actions should you take NEXT?
You work as a Silverlight 4.0 developer for ABC.com.
You have created a Silverlight application named ABCApp07, which is being hosted by a web application
ABCWeb13.
The ABCWeb13 root map stores a font named ABCFont in a file named ABCFont.otf.
You have configured ABCApp07 to include a window named ABCWindow, which is configured to include a
TextBlock named ABCTB.
You need to make sure that the text in ABCTB is shown with ABCFont. Furthermore, you should make sure
that ABCFont is accessed at runtime, not at compile time.
You have written the code shown below: (Line numbers are included for reference purposes.)
1.var client = new WebClient();
2.
3.{
4.ABCTB.FontSource = new FontSource(args.Result);
5.ABCTB.FontFamily = new FontFamily("ABCFont");
6.};
7.client.OpenReadAsync(new Uri(@"../ABCFont.otf", UriKind.Relative));
Which of the following should be added at line 2?
You work as a Silverlight 4.0 developer for ABC.com. ABC.com has a Silverlight application named ABCApp15, which hosts a page named ABCPage.
Yo have configured ABCPage to include a user control, named ABC_KeyDown, which includes four text boxes named City, Region, Language, and Country. You have also defined a method named CityAndRegionKeyDown
in the code-behind file of ABC_KeyDown.
You are preparing to add a method ABC_KeyDown that invokes this first method whenever the focus is on either the City TextBox control or on the Region TextBox control.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com. You are currently designing a Silverlight application named ABCApp.
ABCApp contains a BackgroundWorker object, named ABCWK. You are preparing to write code for
ABCWK_DoWork. You start by writing the code shown below:
public MainPage()
{ InitializeComponent();
ABCWK.WorkerSupportsCancellation = true;
ABCWK.DoWork += new DoWorkEventHandler(ABCWK _DoWork);
ABCWK.RunWorkerCompleted += new RunWorkerCompletedEventHandler(ABCWK _Completed);
}
You are then informed that your code should allow for ABCWK to be cancelled.
Which of the following actions should you take?
You work as a Silverlight 4.0 developer for ABC.com. You have created a Silverlight application named ABCApp13.
You have been instructed to make sure that programmers at ABC.com are able to set a string named
ABCHeading within the ABCControl. You, therefore, need to develop a dependency property named
ABCHeadingProperty to facilitate the implementation. You also need to make sure that the
ABCHeadingProperty is set to No Heading Available if it has not been assigned a value.
You are preparing to write the necessary code.
Which of the following options represent the suitable code?