Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

custom panel with xaml+codebehind in designer

Closed Thread
 
Thread Tools Display Modes
Old 03-16-2007   #1 (permalink)
Robert Ludig
Guest


 

custom panel with xaml+codebehind in designer

I am writing a custom panel should be used in xaml like this:

<custom:TackPanel Orientation="Horizontal">
<custom:TackPanel.Trackdefinitions>
<custom:TrackDefinition Size="10" x:Name="Track1" />
<custom:TrackDefinition Size="*" x:Name="Track2"/>
<custom:TrackDefinition Size="2*" x:Name="Track3"/>
</custom:TackPanel.Trackdefinitions>
<Button TrackPanel.Track="0" />something<Button>
<Button TrackPanel.Track="1" />somethingelse<Button>
</custom:TrackPanel>

My problem now ist that the custom panel is internally composed out of
several other panels and controls (grid, stackpanel, scrollviewer).
This composition should ideally be done in a xaml file (like the vs
extension does for a UserControl). The codebeind.cs then works with
these internal controls depending on what TrackDefinitions and
childelements get added.

How can I (preferably using the vs extension) create a custom panel
that has a xaml file attached to a codebehind .cs file ?

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
xaml visual designer joe Avalon 4 11-17-2006 05:29 AM
RE: XAML Visual Designer Janet Fisher Avalon 6 11-16-2006 09:09 AM
A new build of the Aurora XAML Designer has been posted Ron DeSerranno [Mobiform] Avalon 0 04-08-2006 11:27 AM
How to disable XAML Visual Designer Tim Avalon 2 04-04-2006 02:56 AM
ANN: Aurora XAML Designer Beta 7.5 for WinFX is now available. Alexandra Avalon 0 01-10-2006 03:53 PM








Vistax64.com 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 2005-2008

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 47 48 49 50