70-502CSharpChinese Exam
TS: Microsoft .NET Framework 3.5-Windows Presentation Foundation
- Exam Number/Code : 70-502CSharpChinese
- Exam Name : TS: Microsoft .NET Framework 3.5-Windows Presentation Foundation
- Questions and Answers : 110 Q&As
- Update Time: 2011-09-21
- Price:
$ 119.00$ 69.00
Free 70-502CSharpChinese Demo Download
Test4pass offers free demo for TS 70-502CSharpChinese exam (TS: Microsoft .NET Framework 3.5-Windows Presentation Foundation). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Exam Description
It is well known that 70-502CSharpChinese exam test is the hot exam of Microsoft certification. Test4pass offer you all the Q&A of the 70-502CSharpChinese real test . It is the examination of the perfect combination and it will help you pass 70-502CSharpChinese exam at the first time!
Why choose Test4pass 70-502CSharpChinese braindumps
Quality and Value for the 70-502CSharpChinese Exam
100% Guarantee to Pass Your 70-502CSharpChinese Exam
Downloadable, Interactive 70-502CSharpChinese Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.
Microsoft TS 70-502CSharpChinese exam braindumps questions and answers
¡¡
Exam : Microsoft 70-502
¡¡¡¡¡¡¡¡¡¡¡¡¡¡CSharpChinese
Title : TS: Microsoft .NET Framework 3.5 - Windows Presentation Foundation
1. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
ÄúÔڴ˳ÌÐòÖаüº¬Á˹¦ÄÜÒÔ½â¾ö´°¿ÚÐÐΪÎÊÌâ¡£
ÄúÐèÒªÔÚ´°¿ÚÖÐÊó±êµ¥»÷µÄλÖÃÏÔʾ UI ÔªËØÁÐ±í¡£Äú»¹ÐèҪȷ±£´ËÔªËØÁбíÏÔʾÔÚÏûÏ¢¿òÖС£
ÄúÓ¦¸Ã½«ÏÂÃæÄĸö´úÂë¶Î°üÀ¨ÔÚ´úÂëÒþ²ØÎļþÖУ¿
A. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
controlsToDisplay = CType(sender, UIElement).ToString()
MessageBox.Show(controlsToDisplay)
End Sub
B. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
For i = 0 To VisualChildrenCount - 1
controlsToDisplay += GetVisualChild(i).ToString() + "rn"
Next
MessageBox.Show(controlsToDisplay)
End Sub
C. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim myVisual As Visual()
For i = 0 To VisualTreeHelper.GetChildrenCount(CType(sender, _
Visual)) - 1
myVisual(i) = CType(VisualTreeHelper.GetChild(CType(sender, _
Visual), i), Visual)
controlsToDisplay += myVisual.GetType().ToString() + "rn"
Next
MessageBox.Show(controlsToDisplay)
End Sub
D. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim pt As Point = e.GetPosition(Me)
VisualTreeHelper.HitTest(Me, Nothing, _
New HitTestResultCallback(AddressOf HitTestCallback), _
New PointHitTestParameters(pt))
MessageBox.Show(controlsToDisplay)
End Sub
Private Function HitTestCallback(ByVal result As HitTestResult) As _
HitTestResultBehavior
controlsToDisplay += result.VisualHit.GetType().ToString() + "rn"
Return HitTestResultBehavior.Continue
End Function
Answer: D
2. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
ÄúÔڴ˳ÌÐòÖаüº¬Á˹¦ÄÜÒÔ½â¾ö´°¿ÚÐÐΪÎÊÌâ¡£
ÄúÐèÒªÔÚ´°¿ÚÖÐÊó±êµ¥»÷µÄλÖÃÏÔʾ UI ÔªËØÁÐ±í¡£Äú»¹ÐèҪȷ±£´ËÔªËØÁбíÏÔʾÔÚÏûÏ¢¿òÖС£
ÄúÓ¦¸Ã½«ÏÂÃæÄĸö´úÂë¶Î°üÀ¨ÔÚ´úÂëÒþ²ØÎļþÖУ¿
A. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
controlsToDisplay = ((UIElement)sender).ToString();
MessageBox.Show(controlsToDisplay);
}
B. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
for (int i = 0; i < this.VisualChildrenCount; i++) {
controlsToDisplay + = this.GetVisualChild(i).ToString() + "rn";
}
MessageBox.Show(controlsToDisplay);
}
C. string controlsToDisplay = string.Empty;
private void Window_MouseDown (object sender, MouseButtonEventArgs e)
{
Visual myVisual;
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(sender as
Visual); i++) {
myVisual = (Visual)VisualTreeHelper.GetChild(sender as Visual, i);
controlsToDisplay += myVisual.GetType().ToString() + "rn";
}
MessageBox.Show(controlsToDisplay);
}
D. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
Point pt = e.GetPosition(this);
VisualTreeHelper.HitTest(this, null, new
HitTestResultCallback(HitTestCallback), new
PointHitTestParameters(pt));
MessageBox.Show(controlsToDisplay);
}
private HitTestResultBehavior HitTestCallback(HitTestResult result) {
controlsToDisplay += result.VisualHit.GetType().ToString() + "rn";
return HitTestResultBehavior.Continue;
}
Answer: D
3. ÄúʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
¸ÃÓ¦ÓóÌÐòÃûΪ EnterpriseApplication.exe¡£
ÄúʹÓÃÉè¼ÆÆ÷ÔÚÓû§×÷ÓÃÓò¼¶±ðÏò Settings.settings ÎļþÖÐÌí¼Ó WindowSize ²ÎÊýºÍ WindowPosition ²ÎÊý¡£´°¿ÚµÄ´óСºÍλÖÃÊÇ´ÓÓû§ÅäÖÃÎļþ¶ÁÈ¡µÄ¡£
¸ÃÓ¦ÓóÌÐò±ØÐëÕë¶Ôÿ¸öÖ´ÐÐËüµÄÓû§±£³Ö×î³õµÄ´°¿Ú´óСºÍλÖá£
ÄúÐèҪȷ±£Âú×ãÒÔÏÂÒªÇó£º
¡¤Ã¿¸öÓû§µÄ´°¿Ú´óС¶¼±£´æÔÚÓû§ÅäÖÃÎļþÖС£
¡¤ÔÚÓû§Í˳öÓ¦ÓóÌÐòºó±£ÁôÓû§ÉèÖá£
ÄúÓ¦¸ÃʹÓÃÄĸöÅäÖÃÉèÖã¿
A. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
Settings.Default.WindowPosition = new Point (this.Left,
this.Top);
Settings.Default.WindowSize = new Size (this.Width,
this.Height);
Settings.Default.Save();
}
B. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
RegistryKey appKey =
Registry.CurrentUser.CreateSubKey("Software\EnterpriseApplication");
RegistryKey settingsKey = appKey.CreateSubKey("WindowSettings");
RegistryKey windowPositionKey =
settingsKey.CreateSubKey("WindowPosition");
RegistryKey windowSizeKey = settingsKey.CreateSubKey("WindowSize");
windowPositionKey.SetValue("X", this.Left);
windowPositionKey.SetValue("Y", this.Top);
windowSizeKey.SetValue("Width", this.Width);
windowSizeKey.SetValue("Height", this.Height);
}
C. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
XmlDocument doc = new XmlDocument();
doc.Load("EnterpriseApplication.exe.config");
XmlNode nodePosition =
doc.SelectSingleNode("//setting[@name='WindowPosition']");
nodePosition.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Left, this.Top);
XmlNode nodeSize =
doc.SelectSingleNode("//setting[@name='WindowSize']");
nodeSize.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Width, this.Height);
doc.Save("UserConfigDistractor2.exe.config");
}
D. private void Window_Closing(object sender,
System.ComponentModel.CancelEventArgs e){
StreamWriter sw =
new StreamWriter("EnterpriseApplication.exe.config", true);
sw.WriteLine("<EnterpriseApplication.Properties.Settings>");
sw.WriteLine("<setting name=
"WindowSize" serializeAs="String">");
sw.WriteLine(String.Format("<value>{0},{1}</value>",
this.Width, this.Height));
sw.WriteLine("</setting>");
sw.WriteLine("<setting name=
"WindowPosition" serializeAs="String">");
sw.WriteLine(String.Format("<value>{0},{1}</value>", this.Left,
this.Top));
sw.WriteLine("</setting>");
sw.WriteLine("</UserConfigProblem.Properties.Settings>");
sw.Close();
}
Answer: A
4. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
¸ÃÓ¦ÓóÌÐòʹÓÃÈô¸É¸öÒì²½²Ù×÷À´¼ÆËãÏÔʾ¸øÓû§µÄÊý¾Ý¡£ÃûΪ tommorowsWeather µÄ²Ù×÷Ö´Ðн«ÓÉÆäËû²Ù×÷ʹÓõļÆËã¡£
ÄúÐèҪȷ±£ tommorowsWeather ÒÔ¾¡¿ÉÄܸߵÄÓÅÏȼ¶ÔËÐС£
ÄúÓ¦¸ÃʹÓÃÄĸö´úÂë¶Î£¿
A. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Normal,
new OneArgDelegate(UpdateUserInterface),
weather);
B. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.DataBind,
new OneArgDelegate(UpdateUserInterface),
weather);
C. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Send,
new OneArgDelegate(UpdateUserInterface),
weather);
D. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Render,
new OneArgDelegate(UpdateUserInterface),
weather);
Answer: C
5. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
ÄúÏò Window ÔªËØÖÐÌí¼ÓÒ»¸ö CommandBinding ÔªËØ¡£¸ÃÃüÁî¾ßÓÐÒ»¸ö¼üÅ̱ÊÊÆ Ctrl+H¡£Window ÔªËØÖаüº¬ÏÂÃæµÄ MenuItem ¿Ø¼þ¡£
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
ÄúÐèҪȷ±£µ±½¹µãÇл»µ½²»°üº¬ÈκÎÎı¾µÄ TextBox ¿Ø¼þʱ£¬MenuItem ¿Ø¼þ´¦ÓÚ½ûÓÃ״̬¶øÇÒ¸ÃÃüÁî²»¿ÉÖ´ÐС£
ÄúÓ¦¸ÃÔõô°ì£¿
A. ÔÚ TextBox ¿Ø¼þµÄ GotFocus ʼþ´¦Àí³ÌÐòÖУ¬ÉèÖà MenuItem ¿Ø¼þµÄ IsEnabled ÊôÐÔ¡£
B. ½«¸ÃÃüÁîµÄ CanExecute ÊôÐÔÉèÖÃΪ Highlight_CanExecute¡£
½«ÒÔÏ·½·¨Ìí¼Óµ½¸Ã´°¿ÚµÄ´úÂëÒþ²ØÎļþÖС£
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = sender as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
C. ½«¸ÃÃüÁîµÄ CanExecute ÊôÐÔÉèÖÃΪ Highlight_CanExecute¡£
½«ÒÔÏ·½·¨Ìí¼Óµ½¸Ã´°¿ÚµÄ´úÂëÒþ²ØÎļþÖС£
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = e.Source as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
D. ½«¸ÃÃüÁîµÄ CanExecute ÊôÐÔÉèÖÃΪ Highlight_CanExecute¡£
½«ÒÔÏ·½·¨Ìí¼Óµ½¸Ã´°¿ÚµÄ´úÂëÒþ²ØÎļþÖС£
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
MenuItem menu = e.Source as MenuItem;
TextBox txtBox = menu.CommandTarget as TextBox;
Menu.IsEnabled = (txtBox.Text.Length > 0);
}
Answer: C
6. ÄúÕýÔÚ½« Windows ´°ÌåÓ¦ÓóÌÐòת»»Îª Windows Presentation Foundation (WPF) Ó¦ÓóÌÐò¡£ÄúʹÓà Microsoft .NET Framework 3.5 ´´½¨¸Ã WPF Ó¦ÓóÌÐò¡£
¸Ã WPF Ó¦ÓóÌÐò½«ÖØÓÃ´Ë Windows ´°ÌåÓ¦ÓóÌÐòµÄ 30 ¸ö´°Ìå¡£
¸Ã WPF Ó¦ÓóÌÐòÖаüº¬ÏÂÃæµÄÀඨÒå¡£
public class OwnerWindow :
System.Windows.Forms.IWin32Window
{
private IntPtr handle;
public IntPtr Handle
{
get { return handle; }
set { handle=value; }
}
}
ÄúÔڸà WPF Ó¦ÓóÌÐòÖбàдÒÔÏ´úÂë¶Î¡££¨Ëù°üÀ¨µÄÐкŽö¹©²Î¿¼¡££©
01 public DialogResult LaunchWindowsFormsDialog(
02 Form dialog, Window wpfParent)
03 {
04 WindowInteropHelper helper=new
05 WindowInteropHelper(wpfParent);
06 OwnerWindow owner=new OwnerWindow();
07
08 }
ÄúÐèҪȷ±£¸ÃÓ¦ÓóÌÐòÄܹ»ÒÔģʽ¶Ô»°¿òÐÎʽÆô¶¯¿ÉÖØÓõĴ°Ìå¡£
ÄúÓ¦¸ÃÔÚµÚ 07 Ðд¦²åÈëÄĸö´úÂë¶Î£¿
A. owner.Handle = helper.Owner;
return dialog.ShowDialog(owner);
B. owner.Handle = helper.Handle;
return dialog.ShowDialog(owner);
C. owner.Handle = helper.Owner;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
D. owner.Handle = helper.Handle;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
Answer: B
7. ÄúʹÓà Windows Presentation Foundation ºÍ Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö´°Ìå¡£¸Ã´°ÌåÖаüº¬Ò»¸ö״̬À¸¡£
Äú´òËãÏò¸Ã״̬À¸Ìí¼ÓÒ»¸ö ProgressBar ¿Ø¼þ¡£
ÄúÐèҪȷ±£ ProgressBar ¿Ø¼þÏÔʾÄúÎÞ·¨Ô¤²âÍê³Éʱ¼äµÄÈÎÎñµÄ½ø¶È¡£
ÄúÓ¦¸ÃʹÓÃÄĸö´úÂë¶Î£¿
A. progbar.IsIndeterminate = true;
B. progbar.IsIndeterminate = false;
C. progbar.HasAnimatedProperties = true;
D. progbar.HasAnimatedProperties = false;
Answer: A
8. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation (WPF) Ó¦ÓóÌÐò¡£
¸Ã WPF Ó¦ÓóÌÐòÓÐÒ»¸öÃûΪ rootGrid µÄ Grid ¿Ø¼þ¡£
Äú±àдÒÔÏ XAML ´úÂëÆ¬¶Î¡£
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
ÄúÐèҪȷ±£Ã¿´Î´ò¿ª WPF ´°¿Úʱ£¬¶¼»áÏò rootGrid ÖÐÌí¼ÓÒ»¸öÃûΪ MyCustomFormsControl µÄ Windows ´°Ìå¿Ø¼þ¡£
ÄúÓ¦¸ÃʹÓÃÄĸö´úÂë¶Î£¿
A. private void Window_Loaded(object sender, RoutedEventArgs e)
{
WindowsFormsHost host = new WindowsFormsHost();
MyCustomFormsControl formsControl = new MyCustomFormsControl();
host.Child = formsControl;
rootGrid.Children.Add(host);
}
B. private void Window_Loaded(object sender, RoutedEventArgs e)
{
ElementHost host = new ElementHost();
MyCustomFormsControl formsControl=new MyCustomFormsControl();
host.Child=formsControl;
rootGrid.Children.Add(host);
}
C. private void Window_Loaded(object sender, RoutedEventArgs e)
{
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndSource source = HwndSource.FromHwnd(formsControl.Handle);
UIElement formsElement = source.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
}
D. private void Window_Loaded(object sender, RoutedEventArgs e)
{
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndTarget target = new HwndTarget(formsControl.Handle);
UIElement formsElement = target.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
}
Answer: A
9. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
Äú±àдÒÔÏ´úÂë¶Î£¨Ëù°üÀ¨µÄÐкŽö¹©²Î¿¼£©¡£
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)
10
11 End Using
ÄúÐèҪȷ±£Âú×ãÒÔÏÂÒªÇó£º
¡¤´ËÓ¦ÓóÌÐò½«ÏÖÓÐÁ÷Îĵµ×ª»»Îª XPS Îĵµ¡£
¡¤XPS ÎĵµÊ¹ÓÃÁ÷Îĵµ¸ñʽÉú³É¡£
¡¤XPS ÎĵµµÄ´óСΪ¿ÉÄܵÄ×îСֵ¡£
ÄúÓ¦¸ÃÔÚµÚ 10 ÐвåÈëÏÂÃæÄĸö´úÂë¶Î£¿
A. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C
10. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
Äú±àдÒÔÏ´úÂë¶Î£¨Ëù°üÀ¨µÄÐкŽö¹©²Î¿¼£©¡£
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)
10
11 End Using
ÄúÐèҪȷ±£Âú×ãÒÔÏÂÒªÇó£º
¡¤´ËÓ¦ÓóÌÐò½«ÏÖÓÐÁ÷Îĵµ×ª»»Îª XPS Îĵµ¡£
¡¤XPS ÎĵµÊ¹ÓÃÁ÷Îĵµ¸ñʽÉú³É¡£
¡¤XPS ÎĵµµÄ´óСӦΪ¿ÉÄܵÄ×îСֵ¡£
ÄúÓ¦¸ÃÔÚµÚ 10 ÐвåÈëÏÂÃæÄĸö´úÂë¶Î£¿
A. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C
11. ÄúÕýÔÚʹÓà Microsoft .NET Framework 5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
¸ÃÓ¦ÓóÌÐò¶¨ÒåÒ»¸ö BrowserWindow Àà¡£BrowserWindow ÀàµÄÿ¸öʵÀýÔÊÐíÓû§ÔÚÒ»¸öµ¥¶ÀµÄ´°¿ÚÖÐä¯ÀÀÍøÕ¾¡£ÔÚ´ò¿ªÐµÄä¯ÀÀÆ÷´°¿Úʱ£¬Óû§½«Öض¨Ïòµ½Ò»¸öÔ¤¶¨ÒåµÄ URL¡£
Äú±àдÒÔÏ´úÂë¶Î¡£
01 private void OpenNewWindow(object sender, RoutedEventArgs e)
02 {
03 Thread newWindowThread = new Thread(new
ThreadStart(NewThreadProc));
04
05 newWindowThread.Start();
06 }
07 private void NewThreadProc()
08 {
09
10 }
ÄúÐèҪȷ±£Âú×ãÒÔÏÂÒªÇó£º
¡¤ÔÚ´´½¨ÆäËûä¯ÀÀÆ÷´°¿Úʱ£¬Ó¦ÓóÌÐòµÄÖ÷´°¿Ú²»±»×èÖ¹¡£
¡¤ÔÚÓ¦ÓóÌÐòµÄÖ÷´°¿Ú¹Ø±Õʱ£¬Ó¦ÓóÌÐò¼´Ö´ÐÐÍê±Ï¡£
ÄúÓ¦¸ÃÔõô°ì£¿
A. ÔÚµÚ 04 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
ÔÚµÚ 09 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
B. ÔÚµÚ 04 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
newWindowThread.IsBackground = true;
ÔÚµÚ 09 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
newWindowThread.SetApartmentState(ApartmentState.STA);
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
C. ÔÚµÚ 04 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = false;
ÔÚµÚ 09 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
BrowserWindow newWindow = new BrowserWindow();
System.Windows.Threading.Dispatcher.Run();
newWindow.Show();
D. ÔÚµÚ 04 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
ÔÚµÚ 09 Ðд¦²åÈëÒÔÏ´úÂë¶Î¡£
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
System.Windows.Threading.Dispatcher.Run();
Answer: D
12. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
´ËÓ¦ÓóÌÐò½«Ê¹Óà FlowDocumentPageViewer ÀàµÄʵÀýÀ´ÏÔʾÎĵµ¡£¸ÃʵÀýµÄÃû³ÆÎª fdpv¡£Óû§¿ÉÒÔÍ»³öÏÔʾÎĵµÄÚÈݲ¢ÎªÆäÌí¼Ó×¢ÊÍ¡£
ÄúÐèҪȷ±£ÎªÎĵµ×÷µÄ×¢Ê͵ÃÒÔ±£´æ£¬ÇÒÕâЩעÊÍÔÚÎĵµÔÙ´ÎÏÔʾʱ³ÊÏÖ³öÀ´¡£
ÄúÓ¦¸ÃʹÓÃÏÂÃæÄĸö´úÂë¶Î£¿
A. Protected Sub OnTextInput(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = _
New XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
B. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
C. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
D. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Disable()
AnnotationStream.Close()
End If
End Sub
Answer: C
13. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
ÄúΪ¸ÃÓ¦ÓóÌÐò´´½¨Ò»¸ö´°¿Ú¡£
ÄúÐèҪȷ±£Âú×ãÒÔÏÂÒªÇó£º
¡¤Ê¹Óà ListBox ¿Ø¼þÒÔË«ÁиñʽÏÔʾ×Ö·û´®Êý×é¡£
¡¤ListBox ¿Ø¼þÖÐÊý¾ÝµÄÁ÷¶¯·½ÏòΪ´Ó×óÏòÓÒ¡¢×ÔÉÏÏòÏ¡£
ÄúÓ¦¸ÃÔõô°ì£¿
A. ʹÓð´ÈçÏ·½Ê½¶¨ÒåµÄ ListBox ¿Ø¼þ¡£
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
ʹÓÃÏÂÃæµÄ C# ´úÂ뽫×Ö·û´®Êý×éÓë ListBox ¿Ø¼þ¹ØÁª¡£
myList.ItemsSource = arrayOfString;
B. ʹÓð´ÈçÏ·½Ê½¶¨ÒåµÄ ListBox ¿Ø¼þ¡£
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
ʹÓÃÏÂÃæµÄ C# ´úÂ뽫×Ö·û´®Êý×éÓë ListBox ¿Ø¼þ¹ØÁª¡£
myList.ItemsSource = arrayOfString;
C. ʹÓð´ÈçÏ·½Ê½¶¨ÒåµÄ ListBox ¿Ø¼þ¡£
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
ʹÓÃÏÂÃæµÄ C# ´úÂ뽫×Ö·û´®Êý×éÓë ListBox ¿Ø¼þ¹ØÁª¡£
myListView.ItemsSource = arrayOfString;
D. ʹÓð´ÈçÏ·½Ê½¶¨ÒåµÄ ListBox ¿Ø¼þ¡£
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
ʹÓÃÏÂÃæµÄ C# ´úÂ뽫×Ö·û´®Êý×éÓë ListBox ¿Ø¼þ¹ØÁª¡£
myList.ItemsSource = arrayOfString;
Answer: A
14. ÄúÕýÔÚʹÓà Microsoft .NET Framework 3.5 ´´½¨Ò»¸ö Windows Presentation Foundation Ó¦ÓóÌÐò¡£
´ËÓ¦ÓóÌÐòʹÓà FlowDocumentPageViewer ÀàµÄʵÀýÀ´ÏÔʾÎĵµ¡£¸ÃʵÀýµÄÃû³ÆÎª fdpv¡£Óû§¿ÉÒÔÍ»³öÏÔʾÎĵµÄÚÈݲ¢ÎªÆäÌí¼Ó×¢ÊÍ¡£
ÄúÐèҪȷ±£ÎªÎĵµ×÷µÄ×¢Ê͵ÃÒÔ±£´æ£¬ÇÒÕâЩעÊÍÔÚÎĵµÔÙ´ÎÏÔʾʱ³ÊÏÖ³öÀ´¡£
ÄúÓ¦¸ÃʹÓÃÏÂÃæÄĸö´úÂë¶Î£¿
A. protected void OnTextInput(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
B. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
C. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
D. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Disable();
AnnotationStream.Close();
}
}
Answer: C
Click Online chat to talk with us , get more informations about Microsoft TS 70-502CSharpChinese practice exam study guides questions and answers
Test4pass 70-502CSharpChinese Exam Features
Quality and Value for the 70-502CSharpChinese Exam
Test4pass Practice Exams for Microsoft 70-502CSharpChinese are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 70-502CSharpChinese Exam
If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the TS 70-502CSharpChinese exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
Microsoft 70-502CSharpChinese Downloadable, Printable Exams (in PDF format)
Our Exam 70-502CSharpChinese Preparation Material provides you everything you will need to take your 70-502CSharpChinese Exam. The 70-502CSharpChinese Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
70-502CSharpChinese Downloadable, Interactive Testing engines
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our Microsoft 70-502CSharpChinese Exam will provide you with free 70-502CSharpChinese dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 70-502CSharpChinese Exam:100% Guarantee to Pass Your TS exam and get your TS Certification.
Test4pass 70-502CSharpChinese examTest4pass 70-502CSharpChinese pdf exam
Test4pass 70-502CSharpChinese braindumps
Test4pass 70-502CSharpChinese study guides
Test4pass 70-502CSharpChinese trainning materials
Test4pass 70-502CSharpChinese simulations
Test4pass 70-502CSharpChinese testing engine
Test4pass 70-502CSharpChinese vce
Test4pass 70-502CSharpChinese torrent
Test4pass 70-502CSharpChinese dumps
free download 70-502CSharpChinese
Test4pass 70-502CSharpChinese practice exam
Test4pass 70-502CSharpChinese preparation files
Test4pass 70-502CSharpChinese questions
Test4pass 70-502CSharpChinese answers
http://www.test4pass.com/70-502CSharpChinese-exam.html The safer.easier way to get TS Certification
.




