DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

wisemx Subscribe to this feed
wisemx
Profile Kicked Submitted Comments Tags Friends Kicked By Friends Submitted By Friends

Member Since: Saturday, January 12, 2008 (10 months, 20 days ago)
Last Seen: 19 days, 7 hours ago Who else is online?
Location: Johnson City, TN. U.S.A.
Website: http://msftwise.com

Friends With:

Friends By:

Kick Spy:

wisemx wisemx shouted something: (21 days, 17 hours ago):
wisemx wisemx shouted something: (23 days, 8 hours ago):
wisemx wisemx tagged How to script all my database objects? with : (23 days, 17 hours ago):
wisemx wisemx kicked How to script all my database objects?: (23 days, 17 hours ago):
wisemx wisemx submitted How to script all my database objects?: (23 days, 17 hours ago):
wisemx wisemx submitted Microsoft ADO.NET team: The future of LINQ To SQL: (26 days, 14 hours ago):
wisemx wisemx shouted something: (27 days, 18 hours ago):
wisemx wisemx shouted something: (27 days, 20 hours ago):
wisemx wisemx tagged The simplicity that is the Asp.Net MVC with : (27 days, 20 hours ago):
wisemx wisemx kicked The simplicity that is the Asp.Net MVC: (27 days, 20 hours ago):
wisemx wisemx submitted The simplicity that is the Asp.Net MVC: (27 days, 20 hours ago):
wisemx wisemx shouted something: (1 month, 1 day ago):
wisemx wisemx commented on Microsoft kills Linq to SQL: (1 month, 1 day ago):
wisemx wisemx tagged IIS7 URL Rewrite Module - Video Walkthrough with : (1 month, 5 days ago):
wisemx wisemx tagged IIS7 URL Rewrite Module - Video Walkthrough with : (1 month, 5 days ago):
wisemx wisemx submitted IIS7 URL Rewrite Module - Video Walkthrough: (1 month, 5 days ago):
wisemx wisemx commented on URLRewriting for the masses: (1 month, 5 days ago):
wisemx wisemx shouted something: (1 month, 5 days ago):
wisemx wisemx tagged LifeHacker: 5 best URL Shrinkers with : (1 month, 6 days ago):
wisemx wisemx kicked LifeHacker: 5 best URL Shrinkers: (1 month, 6 days ago):
wisemx wisemx submitted LifeHacker: 5 best URL Shrinkers: (1 month, 6 days ago):
wisemx wisemx shouted something: (1 month, 6 days ago):
wisemx wisemx kicked A Guide to Learning ASP.NET MVC Beta 1 : (1 month, 7 days ago):
wisemx wisemx commented on Quote for October: (1 month, 10 days ago):
wisemx wisemx kicked Even more assorted Visual Studio tips: (1 month, 10 days ago):
wisemx wisemx kicked ASP.NET MVC Pro’s and Con’s: (1 month, 11 days ago):
wisemx wisemx kicked Whats up with Stored Procedures these days?: (1 month, 12 days ago):
wisemx wisemx commented on Whats up with Stored Procedures these days?: (1 month, 12 days ago):

Shoutbox

Jemm Jemm said (4 months, 9 days ago):
something
Jemm Jemm said (5 months, 19 days ago):
Great:) DNK has been in need of your quality posts :)
wisemx wisemx said (5 months, 19 days ago):
I did run away from all the spam but was drawn back by the sense of Community.
Rotten 1%ers spoil it for the nice guys. ;-)
Jemm Jemm said (5 months, 20 days ago):
W00t! You are back:)
wisemx wisemx said (9 months, 6 days ago):
Give this question a break until we get the updates during or just after Mix 08 ;-)
yesthatmcgurk yesthatmcgurk said (9 months, 6 days ago):
One more question...

Have you ever heard of embedding binary resources as string within XAML? I'd love to be able to have an image on a XAML document and have it serialized to a string resource inside the .xaml text. Managing resources in a separate file will be an issue for me in the future...
yesthatmcgurk yesthatmcgurk said (9 months, 6 days ago):
Thanks. I read over the article; it did give me some hints. I managed to get my xaml template -> XPS document code working. Get this...
For each DataRow
FixedPage xaml with layout and controls is loaded into a MemoryStream and fed to the XamlReader.
Data is bound to this template.
Template is configured for the page's resolution and size and its layout is updated.
A PageContent is created and the FixedPage template is set as its child
The PageContent is added to a FixedDocument.
When all data rows have been merged, an XpsDocumentWriter is created and the fixed document's DocumentPaginator is Write()'d.

Result: Xaml template + data -> XPS document.

Sweet.
wisemx wisemx said (9 months, 10 days ago):
I think just reading the default overview in the link below will be what you are looking for, especially the content/object properties for XAML:
http://msdn2.microsoft.com/en-us/library/ms752059.aspx
yesthatmcgurk yesthatmcgurk said (9 months, 10 days ago):
K, I'm busy too.
First question:

Coming from the windows forms/aspnet world, patterns for newing up forms and accessing controls aren't the same with XAML and WPF.
(everything I'm doing is currently in 2005) Lets say I have a DLL project. I add a new FlowDocument (WPF) to the project. This creates FlowDocument1.XAML. I open this up and see markup similar to an aspnet page. Great. I add a Paragraph and a TextBlock with Name="Lol" to the FlowDocument node in the XAML editor. I add the attribute Name="MyFlowDocument" to the root FlowDocument node. The XAML document does not have a codebehind file, nor does it have inline code.

Now, what I want to do is "new" up the object described by this XAML document: FlowDocument fd = new MyFlowDocument() and I want to access the TextBlock: fd.Lol.Text = "Hai from WPF!"

This, of course, does not work. How do I manipulate XAML documents like this in code? Bonus question: how could I do this generically--for any WPF document (FrameworkElement?), if it has a TextBlock with a name of "Lol", set the text to equal the above?
TIA.
wisemx wisemx said (9 months, 10 days ago):
I like the idea of hashing it here, makes it public and I'm all for community.
Sorry it took me a day to get back, was away.
yesthatmcgurk yesthatmcgurk said (9 months, 10 days ago):
Hai, thanks for the offer to help.
So, this xaml thing... I have a number of questions that I'm having a hard time wrapping my head around, but the shoutbox here is kinda small. What do you think?
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge