This is a very useful Attached Property that I created to clip the content of a panel. If you understand the problem and all you want is the Attached Property code, go to the bottom of the post and copy the behavior class. If you want to understand more, keep reading.
So here’s the problem, Let’s say I have a Grid. Inside this Grid I have an element, a rectangle.
<Grid Width="500" Height="500" Background="DarkRed"> <Rectangle Fill="DarkBlue" Width="100" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" /></Grid>
With that xaml code I will get this visual:
Now lets say I want to move the blue rectangle around by … more
In one of my projects at work I needed to use a Color Picker, so as usual, I was hoping to find something good through nuget. Much to my surprise I couldn’t find a decent ColorPicker that would work for Universal Apps, or at least nothing that’s good enough for my task (to be honest this is one of the few times nuget failed me, I get all I need, most of the times).
So I decided to start Visual Studio and create a simple Color Picker, this what I ended up doing:
It’s a very simple control to use, you need to to select the main color from the slider, and select the how dark/light the color should be. Also it will keep showing two colors, the current and previous … more
Before I start talking about behaviors and what they do, lets start by understanding a little bit about the problem we have.
So lets say that you have some logic you want to write for a UI element, for example you want that element to be resizable using mouse/touch, or maybe you want to enable that element to be draggable (This post will explain how to do that).
To do the draggable behavior, the straight forward solution is to write the logic in the code behind and hook up the needed events (pointer pressed, pointer moved and pointer released) for that UI element and apply the translate x and y.
Doing this will work fine for a small project (a very tiny one). But this will lead to a … more
The ask here is to build an application with an infinite loop video background, It might not be very clear what I’m trying to achieve here, so I’ve recorded a video of a simple proof of concept I was working on:
It might look like a straight forward solution by adding a MediaElement with a transparent Grid:
<!—-- the content goes here -->
Which would work just fine; IF the app is just one page app. The issue with this approach, if the user navigates to the next page, the … more
So in the previous post, we’ve talked about parsing HTML in Windows Phone 8 projects. And I got couple of questions about doing the same on Windows 8. Now in Windows 8, it’s going to be a little bit different.
If you want to read more about why we need this “HTML Agility Pack” library, please read the introduction on the previous post. In this post I will get right into the point of parsing the HTML.
In this tutorial I’m going to try to get the content out of IMDB website. The reason I picked this website that they don’t have any APIs, and they have a rich content. (But again, the usage policy doesn’t allow us to use it for production, so we will … more
You might be asked to build an application that consumes some content from the internet. Now if you’re lucky, you would have some server that provides you the feeds ( as a JSON, XML or even plain text). But what if the server is not ready yet, and you want to start to build the app? What if the company won’t invest on a server side coding, and they want you to use the website they have?
So the first thing you can think about is to download the html page, and start “extracting” the content out of it using Regular Expressions. The problem with this solution, its not easy, not clean. And it might take days to make it work for one website.
HTML Agility Pack to the … more
Image and Video processing applications have been always interesting and impressive. You can easily “wow” your audience with the magical stuff you can do with your machine.
The issue we always have with this kind of applications; we need a specific set of skills in math and good understanding of the image processing science. It is easy to receive the image stream from the camera to the computer, but its really hard to make the machine understands these images. Other issue is the hardware. You need a good PC with high specs to handle all this kind of heavy processes.
Kinect is a motion sensing device, created by Microsoft to be used in Xbox (and recently on Windows PCs). It& … more
If you want to write an app that supports live streaming on Windows Phone, the streaming server should support one of the Microsoft encodings. Nothing wrong with the Microsoft smooth streaming. The issue that most of the TV stations support only Apple HLS.
Looking around for an HLS adapter (3rd party library) for Windows Phone wasn’t . My first option was 3ivx library, which is actually brilliant! and it supports Windows 8 store apps too. But the pricing is a little bit expensive. The price I got was 7500 Australian dollars per app. That means if a TV station wants to build two different apps (say news tv app, and sport tv app) they have to pay $15000!
So 3ivx wasn’t a good … more
Windows Phone has been always a great choice for consumers with its great set of features, and its level of customization, to simply make your Windows Phone unmistakably yours.
But Microsoft didn’t just focus on delighting the consumers. Microsoft also focused on meeting the needs of business. Features like Office, BitLocker, Native support for IRM, supporting Exchange server; ActiveSync; Sharepoint; Lync server & Company Hub, makes Windows Phone “The right choice for Business”.
In this post, we’ll talk about “Company Hub”, and how it enables enterprises to increase the productivity of their employees, by providing the right business apps and … more
“Virtual Machines deliver on-demand, scalable compute infrastructure when you need to quickly provision resources to meet your growing business needs. With Virtual Machines, you get choice of Windows Server and Linux operating systems in multiple configurations on top of the trustworthy Windows Azure foundation. “Microsoft Cloud Solution, Windows Azure, is open to many languages, frameworks and tools which enables you to build applications using literally whatever you want!
In this post we will use Windows Azure Virtual Machines to move your web application from your current Linux VPS to the Microsoft Cloud, Windows Azure!
Hmm, sounds great, but why would I want to do … more
Building a website has never been easier with the new CMS available today, but configuring it to be up and running was always a time consuming job; configuring the database, providing the connection string, configuring the domain, setting up ftp account to upload your website…etc.
"Web Sites" is a new feature provided by Windows Azure. Using an easy wizard you can get your website up and running in minutes. Sounds great, but how much would it cost? It's free! With Windows Azure you can build up to 10 websites for free.
In this step by step tutorial, we are going to create an Azure account and then build a website using Umbraco CMS (but you can pick your own CMS, e- … more
Got bored of the default skin of Windows Phone 8 Emulator? Now you can change the look of your Windows Phone 8 emulator by using the WP8 Emulator Skin Switcher to make it look like a Nokia Lumia 920, HTC 8X or Samsung Ativ S.
Windows Server 2012, codenamed "Windows Server 8", is the sixth release of Windows Server. It is the server version of Windows 8 and succeeds Windows Server 2008 R2. Two pre-release versions, a developer preview and a beta version, were released during development. The software was generally available to customers starting on September 4, 2012.
In this easy step by step guide, we will learn how to install and activate Windows Server 2012.
Before you start make sure you have the minimum requirements to install Windows Server (Windows Server Requirements):
Processor: Minimum: 1.4 GHz 64-bit processorRam: Minimum: 512 MBDisk Space: Minimum: 32 GBOther requirements:
DVD … more
Three of Microsoft's most seasoned ASP.NET speakers, Scott Hanselman, Jon Galloway, and Damian Edwards provide an accelerated introduction to building modern web applications with ASP.NET 4.5 and ASP.NET MVC 4. In this course, they target key scenarios like building mobile-ready websites, social web applications as well as modern HTML5 browser features.
Full course outline:
Mod 01: What's New in ASP.NET 4.5
Mod 02: Building and Deploying Websites with ASP.NET MVC 4
Mod 03: Creating HTML5 Applications with jQuery
Mod 04: Building a Service Layer with ASP.NET Web API
Mod 05: Leveraging Your ASP.NET Development Skills to Build Office Apps
Mod 06: Building … more
Microsoft has announced a new milestone reached by the Windows Phone developer community. There are currently over 130,000 apps available in the Windows Phone Store, with 15,000 of them designed specifically for Windows Phone 8 devices.
How are we doing?
By now, you are familiar with our strategy of fostering an ecosystem around Windows Phone: an ecosystem characterized by quality, scale and developer opportunity. This strategy is taking root at an accelerated pace with partners and developers reporting real and sustained growth following the launch of Windows Phone 8.
Every day there are more signs of people’s belief that Windows Phone has evolved from being a solid … more
Beyond the new UI, are there any real improvements for IT? How will Windows 8 make IT and the rest of the organization better? Why is the industry reacting differently to this version of Windows? If these are the types of questions you’re asking, this Microsoft Jump Start is for you.
COURSE OUTLINE Module 1: Windows 8 Tips & Tricks for IT Pros What’s new in Windows 8, UI and keyboard shortcuts for IT pros, the Windows App Store, key features and IE 10 Module 2: Windows 8 Deployment Windows Assessment and Deployment Kit, Microsoft Deployment Toolkit 2012, System Center 2012 Configuration Manager, Internet Explorer Assessment Kit Module 3: Windows 8 … more
We are excited to announce the availability of the CTP of Visual Studio 2012 Update 2, as it bring forwards a number of improvements for the XAML developer. The following are some of the key improvements you will find in this release:
WPF, SILVERLIGHT AND SKETCHFLOW SUPPORT IN BLENDBlend for Visual Studio now support WPF, Silverlight and SketchFlow projects in the same version of Blend (support for these was previously available only as a standalone Preview release of Blend). With this CTP release, Blend now supports developing Windows Store, Windows Phone, WPF and Silverlight apps without needing to have multiple versions of Blend on the same machine.
ILLUSTRATOR … more
This is a frequently asked question in MSDN forums:
I have an iOS or Android app. How do I port it to Windows Store app?
Here is the answer:
Thanks to the partnership with Support Escalation Engineers in CSS, ECO Solution Asset Video Team, DPE and Channel 9 for making this great content.
This infographic has been used by the Microsoft recruitment team to show the wide and varied careers available at the company. Whether it's search, cloud, social, NUI, gaming, developer tools, phones, Windows, Kinect - there is something for everyone at Microsoft. Check out careers.microsoft.com for more.
(A higher res PDF version is also available)
Microsoft Technologies - An infographic by the team from Next at Microsoft more
- « Older