Sunday, September 27, 2009

 

Making Design/Preview mode friendly in VS2008

We're all familiar with how Visual Studio doesn't make perfect use of the Design view for *.XAML pages. We also have fun getting the Design view to show itself: http://weblogs.asp.net/hpreishuber/archive/2009/07/18/silverlight-3-visual-studio-2008-designer-preview.aspx

Even after it's shown it's doesn't like to properly center the image. I found the easyiest way to make Design mode friendly is to add a TranslateTransform to the Layout root. Then manipulate the X and Y values until it shows up properly in the Design view:


   <canvas name="LayoutRoot">
     <canvas.rendertransform>
       <translatetransform x="-500" y="-500">
     </Canvas.RenderTransform>
   <!-- Control content ... -->

Wednesday, September 23, 2009

 

FullTrust a network share

When loading a Visual Studio project off a network share I recieved the following prompt "Running the application may result in security exceptions when it
attempts to perform actions which require full trust."

Located two excellent posts on this issue. Both use almost exactly the same means. Difference is the "-name" and "-q" arguments. "-q" enables quiet mode, which disables prompts.

1. http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=1519

2. http://blogs.msdn.com/shawnfa/archive/2004/12/30/344554.aspx

shawnfa mentions this should no longer be an issue on a local intranet in this post: http://blogs.msdn.com/shawnfa/archive/2008/05/12/fulltrust-on-the-localintranet.aspx

Labels: , , ,


This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]