WPF Tutorial - Getting the DoubleClick Event
Posted in WPF, XAML, C#, All Tutorials | No Comments »
Posted in WPF, XAML, C#, All Tutorials | No Comments »
Working and living as a programmer means I am pretty much on my computer or playing around on it all the time - sometimes maybe too much. I am sure many of you out there can relate. This also means I am always looking for tools to make my life easier. As of late I have found AutoHotkey to be a really cool time saving application. Well today I am going to show you how to create an AutoHotkey script that will help reduce redundant work.
Posted in AutoHotkey, All Tutorials | No Comments »
I have known about dynamic classes in Flex and Actionscript for a while but I just recently started playing around with them. Basically they are declared classes that can have additional properties tacked on to them at runtime. To add this ability to a class you simply need to add the keyword dynamic to the class definition. So below we have very simple dynamic class.
Posted in Flex, All Tutorials | 1 Comment »
Posted in C++, All Tutorials | No Comments »
Posted in WPF, XAML, All Tutorials | No Comments »
Posted in Flex, All Tutorials | 2 Comments »
Posted in C#, All Tutorials | No Comments »
Posted in Zune, XNA, All Tutorials | 5 Comments »
ItemsControl by setting the ItemsPanel.Posted in WPF, XAML, C#, All Tutorials | No Comments »
So in my previous tutorial I had an example on how to change a selected row's styling. At the end of that article I said there is a better way to do this, well today I am going to show that better method. This tutorial is going to to show a good method for changing just about anything on a selected row in any list based component.
Posted in Flex, All Tutorials | No Comments »
Posted in Google Chrome, All Tutorials | 32 Comments »
Posted in C#, All Tutorials | 2 Comments »
Posted in Google Chrome, Tech News | 11 Comments »
Posted in WPF, All Tutorials | 1 Comment »
In order to do a lot of crazy things with the Flex DataGrid you may need to access the item renderers. Today I am going to show a quick and easy way to get to the array of item renderers for the entire DataGrid or any list based component. Now recently I got a comment asking about how to change a certain font style of the selected row. There are a couple ways to achieve this. I am going to show how to do this using the item renderer array. This tutorial is about how to get to that entire item renderer list.
Posted in Flex, All Tutorials | No Comments »
Posted in C#, All Tutorials | 2 Comments »
Posted in C#, All Tutorials | 1 Comment »
Posted in WPF, All Tutorials | 1 Comment »
Posted in XAML, All Tutorials | No Comments »
Posted in Drupal, Javascript, All Tutorials | No Comments »
Posted in C#, All Tutorials | 2 Comments »
One of the more mysterious features of the Flex DataGrid is how to use item editors. Well I am going to start a few tutorials on this subject. This first tutorial is going to jump in and show how to create an easy to use item editor. Item editors can be simple or very complex - anything from a text input to a full input form. This tutorial is going to use a basic ComboBox to change a single value.
Posted in Flex, All Tutorials | 1 Comment »
switch statement. More specifically, we are going to take a look at some of the lesser known behaviors of the switch statement in C#, hopefully giving you some new syntactic sugar to use in the process.Posted in C#, All Tutorials | 4 Comments »
Posted in Javascript, All Tutorials | 6 Comments »
In Flex one of the most used and useful components is the DataGrid, and it happens to be the component we get the most questions on. This tutorial's sole purpose is to show off some of the cool things that can be done with the Flex Datagrid and to answer a few of the questions that we have outstanding. Some of the topics covered in this tutorial include changing the row color, header colors, header renderers, using dynamic xml data and others.
Posted in Flex, All Tutorials | 24 Comments »
#region directive, and that doesn't even have any impact on the code. Now the preprocessor for C# is nowhere near as powerful as the ones for C and C++ (for instance, no macros), but it does let you do a couple of handy things.Posted in C#, All Tutorials | 4 Comments »
Posted in Snippet Tutorials, C#, All Tutorials | No Comments »
Posted in Snippet Tutorials, C#, All Tutorials | No Comments »
Posted in WPF, XAML, C#, All Tutorials | 3 Comments »
Posted in WPF, XAML, C#, All Tutorials | No Comments »
Today I am going to run through a smallish tutorial on creating and using drag and drop in Flex using the DragManager class, which is a utility provided to make drag and drop easy. I should also mention, right off the bat, that some things like lists already have various drag and drop features built in. I however will be showing a example that is useful for any custom drag jobs you might need to do.
Posted in Flex, All Tutorials | 1 Comment »
Posted in WPF, XAML, C#, All Tutorials | 1 Comment »
Posted in WPF, C#, All Tutorials | 1 Comment »
Posted in Neat Websites, All Tutorials | 4 Comments »
Posted in Visual Studio, All Tutorials | No Comments »
split method, and only worked on really simple CSV files - no quoted fields, etc. Well, we got a comment asking about that, so today I sat down thinking I would write up a more robust parser. But as I read through the RFC that describes CSV files, I thought to myself, am I suffering from NIH (not invented here) syndrome? Do I really need to write a full CSV parser?Posted in C#, All Tutorials | 13 Comments »
Posted in PHP, Flex, All Tutorials | 2 Comments »
Posted in C#, All Tutorials | 3 Comments »
Posted in WPF, C#, All Tutorials | 3 Comments »
A little while back, we did a tutorial on how to embed WinFoms controls inside of WPF application (you can read all about it here). Today, we are going to flip that on its head - we are going to take a look at how to embed WPF controls inside of a WinForms application.
Posted in WPF, C#, All Tutorials | 5 Comments »
Posted in C#, All Tutorials | 15 Comments »
Posted in PHP, All Tutorials | 3 Comments »
Sometimes, user interfaces can be really constraining. A whole lot of stuff to do, and not nearly enough pixels to do it in. In regular desktop applications, in is extremely common to put useful and repetitive items in a context menu, to keep them from cluttering up the screen. However, it is generally frowned upon to put context menus on a web page - because then they will interfere with the browser's normal context menu. But, as always, there are special cases - for instance, Google Maps has its own context menu, and it seems to work pretty well.
Posted in Javascript, All Tutorials | 2 Comments »
Posted in Javascript, All Tutorials | 5 Comments »
Adobe added the ability to use local databases when they created AIR. This is one of the many features that help make Adobe AIR a great solution for cross platform desktop applications. In this quick tutorial I am going to show how to create a database file and open a connection to it. The code is very simple so let's jump right into it.
Posted in Adobe AIR, Flex, All Tutorials | 3 Comments »
So, about those standard browser form buttons - kind of boring, aren't they? All grey and flat (although if your lucky, your browser might even give you some gradients). You know the ones I'm talking about - the buttons that you get by writing html like . And while that produces a perfectly functional button, wheres the spice? Wheres the pizazz!?
Posted in CSS, All Tutorials | No Comments »
It might be a surprise to see me (The Fattest) writing about Silverlight, but I have had some fun playing around with it recently. So I decided I would write up a quick tutorial on how to build a Silverlight widget that shows the last five tweets (messages) from twitter. Now be forewarned I am not a C# expert, two other people at SOTC are, nor am I a Silverlight expert. I do however really enjoy playing around on twitter (The Fattest's Twitter Account) and with RIAs so I think I am qualified enough.
Posted in Silverlight, C#, All Tutorials | 1 Comment »
Posted in PHP, Javascript, All Tutorials | 12 Comments »
There are all sorts of fun things that you can do in javascript and html once you have a basic drag infrastructure working - and in fact we have covered a whole bunch of these possibilities here at Switch on the Code. Today we are going to take a look at another one - using a container as a sort of 'window' on a larger object. Almost every mapping website makes use of this technique, and Google Maps probably does it best - you only have so much space on the screen to look at the map, but you can grab and drag around the map inside of its container to view different areas.
Posted in Javascript, All Tutorials | 2 Comments »
So, how many times have you and I read something on the web that says you shouldn't use Flash/Flex because it breaks the back button? Well I for one say fooey to this. Today I am going to show you how to fix the back button in Flex 3 and add states to the browser history. Inside the Flex 3 framework there is a nice gem that can be used, it is a singleton (for more info check out our Singleton Tutorial) class called BrowserManager. This class allows us to change the url and receive notices when the user or browser changes the url.
Posted in Flex, All Tutorials | 6 Comments »
So a long while ago (last November), we posted some tutorials on how to create a resizeable textbox (Part 1, Part 2, and Part 3). We even did a post on how you could integrate the new textbox into Wordpress. Well, I got a request recently to expand the resizeable textbox code so that it could be a resizeable container for anything on a web page. So the result of that request is what we are going to be taking a look at today.
Posted in Javascript, All Tutorials | 2 Comments »
Posted in Javascript, All Tutorials | 8 Comments »
Posted in WPF, C#, All Tutorials | 1 Comment »
Posted in Javascript, All Tutorials | 6 Comments »
Ok, so can you even begin to tell me how many files you have on your computer? I can't either. There are so many reasons you could need to get file listings in C#, and thanks to the System.IO namespace, doing so is just about as easy as including the namespace itself. Really all you need to do is create a variable, then a loop.
Posted in C#, All Tutorials | 2 Comments »
Posted in C#, All Tutorials | 1 Comment »
Posted in Snippet Tutorials, C#, All Tutorials | 2 Comments »
Posted in Visual Studio, C#, All Tutorials | 1 Comment »
Posted in C#, All Tutorials | 6 Comments »
Posted in C#, All Tutorials | 2 Comments »
Posted in Flex, All Tutorials | 1 Comment »
Posted in C#, All Tutorials | 11 Comments »
Posted in C#, All Tutorials | 1 Comment »
DoubleBuffered to true. However, by making it so easy, .NET took away a lot of control over the double buffering process - and so in a select few instances, it is better to manage the double buffering of your control yourself. Today, I am going to walk through how to do that.Posted in C#, All Tutorials | 6 Comments »
Posted in Flex, All Tutorials | 7 Comments »
ToString function call. In fact, strings are so easy to work with in C#, one might almost say that they are too easy to work with.Posted in C#, All Tutorials | 5 Comments »
Posted in C#, All Tutorials | 11 Comments »
@import rule into CSS2.Posted in CSS, All Tutorials | No Comments »
CubeEffect. Hopefully someone out there will find a good use for the component or at least some use of the source provided here.Posted in Flex, All Tutorials | 10 Comments »
Posted in C#, All Tutorials | 1 Comment »
Posted in C#, All Tutorials | No Comments »
Posted in Silverlight, All Tutorials | 10 Comments »