I have a situation where I want UIElement to have a top margin of
((this.height / 2) - 70)
Currently, the XAML property is
Margin="0, 40, 0, 0"
How can I combine the equation above into my XAML? I know this is probably simple, but I can't figure out what terms to search for.
...
I have just started with WPF so am probably missing something simple here. I have a window that I am editing in VS 2010. When I change the XAML by hand and then run the application (F5) the window remains as before my edit, however if I do a rebuild and then run the application my changes show up.
Is there any way to get VS to recognise...
I've noticed that a VS2010 C# website project I'm working on seems to always need an iisreset to be able to see changes I make to the code behind files in the project. I notice that it doesn't have the right version of the assembly because when I try to debug Visual Studio won't let me put break points in the code files I've changed.
I ...
Hi everybody,
All my colegas and I are facing a hangup problem with visual studio 2010 while debugging.
Every time i try to watch in a list, by clicking the '+' symbol into the watch windows, VS2010 hangs up.
Any ideas to solve the problem ?
THx
...
First the problem I am trying to solve: I'm debugging a C# application that has huge object graphs (think Building Information Models, a kind of object oriented CAD). When I hit a breakpoint, I generally have long lists of objects I'd first need to transform to be useful for debugging.
In code, I use LINQ and lambdas to do this. But you...
I've got CS1703, which is a duplicate reference error. But, I've definitely only imported it once, and I tried removing my only actual reference, and it's still throwing. The compiler (VS2010) refuses to tell me where it thinks the other references are, so how on earth am I supposed to fix the error?
Edit: I looked into my .csproj, and ...
I'am developing a web application with VS2010 Entity Framework and SQL Server Express.
This application will be deploiyed in a server with SQL Server 2008 (not express)
It is possible?
What changes (if needed) i need to do?
...
Someone could tell me where I can find the list (or all) patch already available for Visual Studio 2010.I am finding a lot of problems, and his navigation is very slow. Especially with ASP.NET MVC.
If no such list ready, we can use this post to enumerate the problems and their fixes.
Thanks
...
What is the proper method for launching a workflow from within a running workflow?
We are currently using Visual Studio 2010 and the workflow is running is Sharepoint 2010. Previously this workflow functioned in Sharepoint 2007 without issue. After migrating the package to 2010, the state workflow runs normally but does not properly lau...
Here is what happens:
I Click "View in browser" which starts up a new asp.net development server.
Go to Debug > Attach to Process, and select that dev server instance (it's the only one running)
Watch as a new development server starts up on a new port.
The debugger still attaches to the correct instance of the dev server, the new on...
Whenever I publish my MVC web application in VS 2010 via the One-click publish feature (I'm not doing any web.config transforms or anything fancy - yet!). The next time I come to build the app I get the following error:
It is an error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This e...
I am using Visual Studio 2010. I have a solution that has 2 SqlServer Database projects and Web application projects. When I build each of these projects they generate SQL scripts and zip files for websites that can then be imported in IIS with MSDeploy.
I want to create a setup project of some sort that will package these sql and zip f...
Is it possible to have winsock's send function block until the packet being sent is received at the other end?
My end goal is to be able to send 5-20mb files while still being able to send small 1kb packets on the same connection. So I was thinking I would have it block until the receiver receives the packet. That way if another small p...
I have used this code manually to simulate a mouse click by system through code.
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
public class Form1 : Form
{
[DllImport("user32.dll",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]
public static extern void mouse_event(long dwFlags...
My application uses one context instance which exists for the life of the application. I am using Entity Framework to read and write all data to the database. After I add objects, I want them to be cleaned by the garbage collector so they don't persist in memory. I've tried:
While context.BatchProgresses.Count > 0
context...
Hi
Every time I try to create a new SQL Server 2005 server project I get this error. Then after I hit ok Visual Studio 2010 crashes.
Could not load file or assembly
'System.Data.SqlServerCe, Version
3.5.1.0, Culture=neutrail, PublicKeyToke=89845dcd908080cc91' or
one of it dependencies. The system
cannot find the file specifi...
Hi
Can't you have a .net 4.0 web service application? When I choose .net 3.5 the "asp.net web service application" shows up in the list but once I change it back to 4.0 it goes away. Did something replace it or they just don't have a webservice at 4.0 yet?
...
We have a team member in a different country, and are trying to figure out the most viable option to provide them with access to our Team Foundation Server for Visual Studio 2010.
...
Microsoft's Windows Phone 7 developer site that contains the following:
* Visual Studio 2010 Express for Windows Phone CTP
* Windows Phone Emulator CTP
* Silverlight for Windows Phone CTP
* XNA Game Studio 4.0 CTP
I already have Visual Studio 2010 installed. Will the installer use my existing installation of VS2010 and add to it or wi...
I have installed blend which installs Microsoft.Expression.Interactions.dll which I reference in my project.
If I copy this dll to a folder local to my solution and reference that copy, when I look at the properties of the reference in visual studio it always shows the path to the version that blend installed.
It only changes to the lo...