Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Windows 10 maps part 3 - querying the map & attaching business objects to map shapes

AddThis Social Bookmark Button
In my previous post in this series I showed how to draw lines, polygons and icons on the map. What I did not show was how you could query the map for the shapes present at a location when you tap on it, and more importantly - how you find the business objects back that were used to create this shapes in the first place. In previous times, specifically the Visual Basic 6.0 era, people used to do something like putting something like an id in a Tag property of a UI element and use that go back
into the database. I recently even encountered an approach using a Tag in a Window Store app *shudder* ;) Fortunately in these day and age things can be done quite differently. To be honest - this article does not describe brand new knowledge, nor it is really specific to Windows 10 (I used this trick in Windows Phone 8.0 already), and if you dig through my blog and/or samples of the past year you might already distill it. Yet, I get the question about relating map shapes to business objects quite often, as map shapes (thankfully) do...(Read whole news on source site)

Fixing SharePoint Promoted Link's New Tab Launch Behaviour

AddThis Social Bookmark Button
There's a bug with Promoted Links web part in SharePoint 2013 and Office 365, and I have no idea how long it's been there.  This post is about a simple Javascript hack that will fix it.StoryRobert Crane [O365 MVP] found this one.  Out of the blue, he asks me, hey why does the new tabs always open in the same tab.  I thought, no way, it's always been working.  So naturally, I tried it out and check the anchor tag.  Expecting target="_blank"TLDRPromoted Links spits out target="="_blank"" for who knows how long.Here's a fix.SharePoint's Promoted Links Web Part A quick
introduction - this is the Promoted Links web part.  If you have seen SharePoint 2013 or Office 365's SharePoint Online, then you have seen this web part.  It is used everywhere for navigation. Promoted Link is backed by a regular SharePoint list.  Of interest, is the Launch Behavior column, which lets you decide what to do when a tile is clicked.  You can navigate there Replacing Current Page, open in SharePoint's ModalDialog, or open in a New tab.Open in New TabTo prevent spammers running Javascript and creating lots of tabs when you visit a page, a browser gives no way for...(Read whole news on source site)

Promises, Modal Dialogs and Resolve vs Reject

AddThis Social Bookmark Button
Someone on twitter asked me a question about promises a while back. It was a good question about the general use of reject and resolve to manage a yes/no dialog box. The short answer is always resolve with a status indicator - but I think they wanted more of the "why" than just this one specific answer. To understand why, there is some background to dig in to, first: modal dialog results and reject vs resolve.

Repeatable random tests

AddThis Social Bookmark Button
Testing our software is something that we take very serious. And in some cases, we want to go beyond testing stuff that we know. We want to test random stuff. For example, if we add 10,000 documents, then remove every 17th, what happens? Is there any differences in behavior, performance, etc? It is easy to do random stuff, of course. But that leads to an interesting case. As long as the tests are passing, you can pat yourself on the back: “We have done good, and everything works as it should”. But when something fails… well, the only thing that
you know is that something did fail. You don’t have a way to reproduce this. Because the test is… random. In order to handle that, we wrote the following code: [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] public class InlineDataWithRandomSeed : DataAttribute { public InlineDataWithRandomSeed(params object[] dataValues) { this.DataValues = dataValues ?? new object[] {null}; } public object[] DataValues { get; set; } public override IEnumerable GetData(MethodInfo methodUnderTest, Type[] parameterTypes) ...(Read whole news on source site)

The Morning Brew #1929

AddThis Social Bookmark Button
Software Announcing Windows Server 2016 Containers Preview – Scott Guthrie introduced Windows Server 2016’s support for Docker Containers in the latest technical preview release, along with support on Azure for these Windows Server Containers. Scott also introduces how this all fits in with Visual Studio’s Visual Studio Tools for Docker New Windows Server Preview Fuels […]

C++/CLI Shell Exercise Code

AddThis Social Bookmark Button
Originally posted on: number of years ago, I was helping someone on DaniWeb with some code that was (probably) more than they expected.
I never got closure on the code because it seemed the requester didn’t understand to use Visual Studio.
I recently revisited that code and realized how differently I would have done things if I created it today.
It’s like that old cartoon from on 4/20/2010 where one character can’t stand to
see his old code:
  Well, I had the same reaction to mine (as I frequently do) and so I rewrote portions of it.
Luckily, it was short and I knew SPECIFICALLY what I wanted done (for now). I figured I’d go ahead and post it for future reference (when I once again can’t stand it). This code puts into practice multiple techniques for using Linq and IEnumerable in C++/CLI.
The program itself is a simple shell-program where the user has a...(Read whole news on source site)