| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
12 Articles match "Silverlight"
See all articles with
"Silverlight"
| The Latest from Mark's Blog of Random Thoughts | MORE | | MVVM: Rename TreeView nodes This happens to be the default setting for WPF – but not for Silverlight, so I tend to be deliberate when I want to ensure a specific behavior. I know I said I was going to cover some services next, but I got a request last night to show how to rename TreeView nodes (ala Explorer) using the MVVM pattern in WPF. The solution is quite easy and elegant and I thought I’d share it here. First, the idea is we want to be able to double-click on the text portion of the TreeViewItem and have it allow us to type in a new name, replacing the current text. that drives the data. par ?? par ?? par ?? Mark's Blog of Random Thoughts - Thursday, January 28, 2010 MVVM: Views and ViewModels Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Here's the two links in case you didn't get them before: MVVM Helpers Distribution. Project Template. Ok, so once you have these installed, what can you do with them? Let's look a little closer at the project structure. Dependencies. ViewModels. Views. Views. par ??cf1 Mark's Blog of Random Thoughts - Friday, January 22, 2010 | | The Best from Mark's Blog of Random Thoughts | MORE | | WPF MVVM Helper Library (WPF + MVVM = testability) There's been a lot of talk about the Model-View-ViewModel pattern recently and it's usage around the WPF and Silverlight technology stack. When teaching WPF, I always introduce students to MVVM as part of the Essential WPF class, it's an incredibly useful pattern that really separates the UI from the code behind behavior. One of the things I give the students is a library to do MVVM - I also use it in my consulting work. With all the focus on it lately, I figured maybe it's time to release it to the public. that I tend to use a lot. So, what all is here? Well, quite a bit. file -. Mark's Blog of Random Thoughts - Friday, April 17, 2009 MVVM: Views and ViewModels Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Here's the two links in case you didn't get them before: MVVM Helpers Distribution. Project Template. Ok, so once you have these installed, what can you do with them? Let's look a little closer at the project structure. Dependencies. ViewModels. Views. Views. par ??cf1 Mark's Blog of Random Thoughts - Friday, January 22, 2010 | - MVVM: Rename TreeView nodes
This happens to be the default setting for WPF – but not for Silverlight, so I tend to be deliberate when I want to ensure a specific behavior. I know I said I was going to cover some services next, but I got a request last night to show how to rename TreeView nodes (ala Explorer) using the MVVM pattern in WPF. The solution is quite easy and elegant and I thought I’d share it here. First, the idea is we want to be able to double-click on the text portion of the TreeViewItem and have it allow us to type in a new name, replacing the current text. that drives the data. par ?? par ?? par ?? - Implementing Drag/Drop with TabControl
It's been a long time since I blogged anything specific on WPF -- I've been doing a lot of it lately, along with some Silverlight. My end goal is really to implement it with Silverlight 2, but I've found it's much easier to prototype things in WPF and then port them over because the debugging experience is easier with WPF. Recently I was experimenting with dragging tabs around on a TabControl at runtime. didn't want to create derived implementations of any classes - I wanted something that was non-intrusive to my code so I decided to use an attached property. - MVVM Helpers 1: Views and ViewModels
Views are the UI presentation of data - in the case of a WPF/Silverlight application this is most commonly the XAML and XAML code behind files (they are considered a single element together). In the previous post, I provided a link to the project template you can use to start a new MVVM project using the JulMar MVVM library. Here's the two links in case you didn't get them before: MVVM Helpers Distribution. Project Template. Ok, so once you have these installed, what can you do with them? Let's look a little closer at the project structure. Dependencies. ViewModels. Views. Views. par ??cf1 - Correcting the WPF Themes
I'm a big fan of themes in WPF -- and I think it's great that Microsoft has released a whole set of themes for Silverlight and WPF at www.codeplex.com/wpf. However, in using some of those themes, I've run into an annoying bug in the RadioButton template - specifically, the checked state doesn't always show up initially. Looking at the template, it turns out to be an easy fix. The "CheckIcon" is set to an opacity of zero initially (so it's not shown) and then a trigger is used to apply an animation to change the value. - Using Rx (Linq to Events) with WPF
A recent series of blog entries at [link] introduced the Rx framework (System.Reactive.dll) which is an assembly used in the Silverlight toolkit for UI testing purposes. Silverlight isn't my favorite technology however, I much prefer working in WPF and so I spent some time rebuilding Rx for the desktop CLR! realized while I was doing this that there was a much easier way to convert a Silverlight assembly to a WPF assembly. Here's the header of a Silverlight assembly examined through ILDASM: // Metadata version: v2.0.50727.assembly extern mscorlib. {.publickeytoken - Playing with WPF Behaviors - a WatermarkText behavior
This new feature formalizes the "attached behavior" model that has become so prevelant in WPF (and Silverlight) development. One of the coolest new features of Blend 3 is the inclusion of behaviors. won't go into details on the architecture - instead I'll refer you to a nice reference: [link]. To play with this new support, I built a WatermarkTextBehavior which places a watermark into a TextBox when it has no entered data. This can be UIElement for anything WPF, or more restrictive if necessary based on the events you intend to hook up. public. class WatermarkTextBehavior : Behavior >. - Demos from Silverlight 2 class this week
Here are the demos for the guys who attended the 2-day binding + network Silverlight2 training in Boston. Thanks guys %>
142 Articles match "Silverlight"
See all articles with
"Silverlight"
| The Latest from DevelopMentor | MORE | | Installing RavenDB 2 This Management Studio is a Silverlight application that will let us manage different aspects of the server. Before we get started with RavenDB we need to install the required parts. There are several ways we can do this and one of the easiest is using the NuGet Package manager from within Visual Studio 2012 with the available RavenDB NuGet packages. Which package to install? As should be obvious from the screenshot above there are quite a few NuGet packages to choose from. It turns out we need to use two packages to get started, the client and server part. The RavenDB Management Studio. The Problem Solver - Friday, January 4, 2013 Maurice de Beijer: Installing RavenDB 2 This Management Studio is a Silverlight application that will let us manage different aspects of the server. Before we get started with RavenDB we need to install the required parts. There are several ways we can do this and one of the easiest is using the NuGet Package manager from within Visual Studio 2012 with the available RavenDB NuGet packages. Which package to install? As should be obvious from the screenshot above there are quite a few NuGet packages to choose from. It turns out we need to use two packages to get started, the client and server part. The RavenDB Management Studio. The Problem Solver - Friday, January 4, 2013 Getting started with RavenDB in an ASP.NET MVC application Part of the RavenDB.Server package is a Silverlight client that lets you manage the server and inspect, or even change, the data. RavenDB is one of the newer document type databases that is conceptually comparable to MongoDB or CouchDB. One of the nice thing about RavenDB, at least for a.NET developer, is that is has been developed with.NET in mind from the start. And this makes it really easy to get started with. In fact it is so easy to get started with that it surprises me that not everyone is using it. Instead I just create my C# classes and store them as documents in the database. The Problem Solver - Sunday, November 25, 2012 | -
| The Best from DevelopMentor | MORE | - Using Model – View – ViewModel with Silverlight
have found it extremely easy to use when developing very different applications and have used the design pattern recently in both ASP.NET, WPF and Silverlight applications. Even thought the UI technology used doesn't change the basic MVVM pattern there are some subtle differences, like not easily being able to use ICommand in Silverlight, so I decided to create a small Silverlight sample. The basic structure goes like this: The user interacts with a View, implemented as a Silverlight user control. Tags: NET DevCenter WPF Silverlight 11: {. 13: set. 14: {. The Problem Solver - Tuesday, April 7, 2009 - Easier Async for Silverlight Apps using MVVM
WPF and Silverlight have Dispatcher.CheckAccess / Dispatcher.BeginInvoke. Technical MVVM SilverlightIt makes sense to execute long-running tasks on a background thread, in order to keep the UI responsive by not tying up the main thread. However, as is the case with other UI frameworks such as Windows Forms or WPF, you should not touch UI elements from worker threads. This has to do with how Windows apps process messages, which are always handled on the thread that created the visual element. Windows Forms has the Control.InvokeRequired / Control.BeginInvoke API. Tony and Zuzana's World - Saturday, January 29, 2011 - Paging with the Silverlight RIA services DomainDataSource
Using the declarative DomainDataSource that is part of the upcoming Silverlight 3 RIA services makes it quite easy to work with data. Tags: NET VB DevCenter Silverlight Data Access ASP.NET.All you need to do is add a DomainDataSource control to the the XAML, point it to the generated DomainContext class (in this case NorthwindContext) and tell it which method to use to load the data from the web service(in this case LoadCustomers). Next add a DataGrid to display the data and you are good to go. Adding paging. assume this is just a small bug in the current preview. Enjoy! The Problem Solver - Monday, April 27, 2009 - Madam Silverlight
Just wanted to call out attention to a new Silverlight site created by Maine’s own Carolyn Smith: www.silverlightmadam.com. Silverlight Madam is the creation of Carolyn Smith. Then she discovered computer graphics and now she specializes in creating art in Silverlight.”. SilverlightFor many years Carolyn's preferred medium was watercolors. Note: Carolyn also runs the site www.pixycolors.com. DevelopMentor Courses - Thursday, June 9, 2011 - Using dynamic objects in Silverlight 4
Note: This blog post is written using Silverlight 4.0 RC 1 One of the cool new features in Silverlight 4 is the ability to data bind to indexed properties. Tags: NET Silverlight ASP.NET VS2010 This means that even if you don’t know at design time what properties you data object has you can still data bind to them. The syntax is very similar to a normal data binding, only in this case you need to use the [key] syntax instead. For example in example below the FirstName is a regular property while the LastName below is an indexed property. get; set; }. public Person(). {. The Problem Solver - Monday, April 12, 2010 %>
| | |