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 - Examples I have do not seem to work :(

 
 
Old 02-18-2006   #1 (permalink)
Nik Coughlin


 
 

Examples I have do not seem to work :(

I am looking for some straightforward examples of the following. I have
Programming WPF by O'Reilly and Professional WinFX Beta from Wrox but some
things must have changed or I have failed to understand them properly.

Using SystemParameters. For example, I have a grid column that needs to be
the width of a scrollbar. According to Programming WPF by O'Reilly you do
it like this:

<FrameworkElement Grid.Column="15" x:Name="dummyColumn"
Width="{DynamicResource {x:Static SystemParameters.ScrollWidthKey}}" />

However this just results in:

Error 1 MarkupExtension requires a ParserContext before
ProvideValue() can be called. C:\Documents and Settings\Nik\My
Documents\Visual Studio
2005\Projects\WindowsApplication1\WindowsApplication1\Window1.xaml 1
1 WindowsApplication1

I can just do Width="17" as a workaround but it is extremely unsatisfactory
because it breaks the second the user does something that affects the
scrollbar width from the Windows default.

SharedSizeGroups - I got these working without any difficult but they seem
to slow things down A LOT. When I switch from xaml to design view in VS2005
you can sit and watch the columns moving around until they are all lined up
properly, it takes a number of seconds. This is two medium sized grids
which share column widths as they are stacked on top of each other. The
same thing happens with the compiled version.

Tables:

None of the examples in any of the books that I have nor examples that I
have found through Google work, VS2005 spews errors at me. A working
example of a simple table would be wonderful.
I cannot work out how to include external xaml files. For example say I
have:
<Window.>
<Menu.>

My System SpecsSystem Spec
Old 02-18-2006   #2 (permalink)
Jason Dolinger


 
 

Re: Examples I have do not seem to work :(

Nik Coughlin wrote:
> I am looking for some straightforward examples of the following. I have
> Programming WPF by O'Reilly and Professional WinFX Beta from Wrox but some
> things must have changed or I have failed to understand them properly.
>


Definitely check out http://www.sellsbrothers.com/writing/avbook/ before
really digging in here. The Sells O'Reilly book was written for the
beta1 release and is quite out of date in a number of syntactical areas.
However Mr. Sells has been nice enough to post several pages of
changes from beta -> September CTP and September CTP -> November CTP.
Even more valuable, he's updated all of the sample code from the book.
This will probably solve a number of the difficulties you've been having.

Jason
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
netsh examples Vista networking & sharing
.NET 3.0: looking for the most basic examples PowerShell
powershell.exe -? examples are wrong, I think PowerShell
about_if examples muddled I think PowerShell


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