Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Questions abouts WPF developpment

 
 
Old 09-17-2006   #1 (permalink)
Cyber Sinh


 
 

Questions abouts WPF developpment

Hi,

I actually test WPF RC1 and I have 4 questions that I don't find answer:

1. I use a FlowDocumentReader. This control have not "FirstPage()"
method that I need (DocumentViewerBase has it). How can I go to first
page with a FlowDocumentReader control?

2. I try to save the position and the size of Window. In order to that,
I bind Top, Left, Width and Height property to my settings class like:

Binding binding = new Binding("WindowWidth");
binding.Source = Settings.Default;
mainWindow.SetBinding(Window.WidthProperty, binding);

But when I move / resize my window, settings are not updated. Why?

3. What's equivalent in WPF for "Application.Restart()" in WindowsForms?

4. I have a MenuItem defined like :

<MenuItem Name="menuCheckUpdate" Header="Check for updates"
InputGestureText="F5" Click="CheckUpdates" />

What do I write between "<Window.InputBindings>" to simply bind F5 key
press to CheckUpdates event?

Thanks very much.
Cyber Sinh

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
questions on wlm Vista mail
32/64 bit questions & DirectX 9/10 questions :) Gaming
Two questions Vista mail
Questions, questions, questions... on how to improve PowerShell
I've got two questions... Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46