Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: WPF
Showing posts with label WPF. Show all posts
Showing posts with label WPF. Show all posts

How to set a specific row color of a WPF ListView/GridView control?

Continuing the series of blog posts on WPF ListView/GridView control, today we will learn how to set the background color (more precisely, ‘the Style’) of a WPF ListView/GridView control’s row based on some specific parameter passed as the data.

 

You may want to give your user a proper visual by providing a different style to that specific row. Let’s discuss with a simple example.



How to align the column header in a WPF ListView/GridView control?

In general case, the header/title of a WPF ListView/GridView columns are aligned in the center and hence in many cases you will need to align the column header/title to left or right (based as per your business requirement).

 

Today we will learn how to do this in the XAML itself by creating a proper style for the column header. Continue reading to know the trick.


How to sort records in a WPF ListView/GridView control?

As we learnt, the 'ListView' control provides you the base to display a set of data items or records in a WPF application. In last blog post, we learnt how to group the records in WPF ListView/GridView controls and design the UI to group using the Expander control.

 

Today in this small blog post, we will learn how to sort the records easily. You can either choose to sort from XAML or code, but here we will discuss how to do it from code.


How to group records in a WPF ListView control?

Many time we need to show a set of records grouped by a specific field. If you are building Windows app using WPF control, it is very simple to implement using the List View control that we already discussed in the last blog post.

 

Today we are going to discuss how easy it is to add support for grouping in the list. Continue to know about it and implement the same with a simple example.


How to get started with WPF ListView control?

The 'ListView' control provides you the base to display a set of data items in a WPF (Windows Presentation Foundation) application in different layouts or views. In case you are working to show a dataset in your WPF app, this post will help you to get started with it.

 

In this blog post, we will learn about the ListView control with a basic layout followed by advance layout with a GridView. Continue reading further.


How to create an Excel file using Silverlight and C#?

Sometime we need to export data as Excel report. This can be a plain Console application or a high end desktop and/or web application. You can of course do this using plugins/add-ons but what if you don’t have permission to use any 3rd party assemblies in your application?

 

Okay, in this post we are going to discuss this with help of a simple Silverlight & C# application but logic will be same in other platforms/technologies too. Keep reading.



Inheritance in XAML Styles

Style inheritance in XAML? Sounds funny? No. If we have inheritance in classes, CSS styles; then why not in XAML styles? There are many such occasions when we need to copy the same style in multiple templates/styles of a control.

 

In this post, we will learn how to use a single piece of style and use it in other place to inherit the common styling. If you are using XAMLs excessively, this might be a very good topic for you.


How to set no. of columns in Telerik’s RadDiagramToolbox?

If you are working on Silverlight and/or WPF project and using Telerik RadControls library, you might be aware of RadDiagram and RadDiagramToolbox. When you add gallery items in RadDiagramToolbox, by default it comes in three columns.

 

In some business scenario, you might want to increase or decrease the no. of columns in the RadDiagramToolbox. This small blog post will help you in this.


Now grab the Free version of XAML Spy (Express)

XAML Spy is the visual runtime inspector for Silverlight, WPF, Windows Phone and Windows 8 Store applications which provides direct access to UI visual tree, runtime UI modifications to check/set different properties temporarily, monitor events, extract package contents and much more.

 

With the release of XAML Spy version 2, the company introduced a light weight Free version for the XAML designers/developers to play with their XAML files. Read more to grab your copy.


Guest post @Telerik.com - How to export RadRichTextBox content?

Recently I got a chance to write a guest blog post on Telerik’s official site and the topic was “How to Export content from RadRichTextBox to a variety of formats in WPF or Silverlight”. Thanks to the Telerik XAML Team who gave me this opportunity.

 

The article covers the simple steps to export the rich text content of the Telerik RadRichTextBox control. This could be an additional benefit to the end users who are using Silverlight or WPF app.


How to set focus to TextBox once Telerik RadBusyIndicator stops?

Most of you have already used BusyIndicator control in your Silverlight or WPF application while communicating with server or processing a huge data. Sometime developers want to focus to a particular control like TextBox once the busyIndicator stops.

 

I noticed in various forums that developers really suffer a lot focusing to a TextBox at the end of the processing and when the busy indication stops. Let’s read the trick to resolve this.



How to create custom XMLNS namespaces to keep your XAML clean?

XAML namespace is an extension of XML namespace and conventionally written as “xmlns” in XAML pages. We use it on all XAML pages in Silverlight, Windows Phone, Windows 8, WPF related technologies to better reference assemblies and namespaces.

 

In this post we will learn more about this XMLNS namespace and the way to customize it for a cleaner XAML page. Interested to know it? Continue reading and share your feedback about the post.


Events Handling as Culprit to Memory Leakage - A Developer Must Care about it

Memory Leakage in applications are most common and a developer maximum time does not care about it. There are various possibilities for Memory leakage and one of them is Events registered in applications which a developer unknowingly forgets to handle.

 

So, what are the cases where that could make problem and are there any proper solutions to tackle down this issue? Let us discuss on this topic today.


What is the use of Dispatcher object in XAML Technology?

What is Dispatcher object and why to use it in application?” - It’s a common question asked by beginners working in various XAML technologies like Silverlight, Windows Phone etc. I came to such instances many time when the developer has no clue about “Cross Thread Exception”.

 

That is the reason I wanted to publish this post mentioning the use of this Dispatcher object, mainly when you are getting an “Invalid cross-thread access” exception.


How to create Image Stream of XAML Page using Telerik’s ExportExtension method?

Earlier days while working with Silverlight 2, it was very difficult to take a snapshot of the XAML page programmatically in Silverlight. Later WritableBitmap class helped us to take snapshot of any portion and save it as image.

 

Today I learnt something new to do this operation very easily using Telerik library methods and hence thought to share with you in this post.


Celebrating First Anniversary of Silverlight-Zone.com

I am very happy to announce that, www.silverlight-zone.com has completed it’s first anniversary today. We officially launched this portal on 1st January 2011 and continuing our efforts to submit article news daily.

 

I appreciate the efforts made by the contributors of this community portal and the followers of Silverlight-Zone. Without their support this journey could be very difficult.

 

This post is not just the celebration of 1 year completion, we are also announcing our first “Contributor of the Month” award. We are happy to see such contributors on-board.



How to Crop an object using Expression Blend?

Few days ago, I published a XAML Tips "How to Convert a Rectangle to a Path Control using Expression Blend?". Today in this post, we will discuss on another tips similar to that post. In this post, we will discuss on the steps to crop an element to give a desired output.

 

This post will help a beginner who just started designing XAML using Expression Blend. Hope, this small tip will help you to understand it in better way. Read to know more on this topic.


How to get rid of the XAML Design view inside Visual Studio IDE?

If you work in XAML pages, sometime you might noticed that the XAML page freezes for sometime while opening the page in design view. This is very annoying and many time it is responsible to crash the Visual Studio IDE. So what to do?

 

If you use Expression Blend to design the XAML page or don't want to open the XAML in design view, this small tip will help you to improve the performance of the IDE. Read more to know.


Use Expression Blend to change the Layout Type Efficiently

Many time we need to change the layout type of any panel present inside the page. This is mainly a designers job but sometime developers need to change them on their requirement. In that case, people need to find out the start and end tag of the panel and change them accordingly. This is little bit a tricky process.

 

In this post, I am going to share you the easy process to switch between different layout types. If you are a designer or using Expression Blend, you are already familiar with it. But for a newbie, I think it will be a great help.


How to Create a Different Circular Loader using XAML?

Custom Loader

Last Wednesday (July 6th 2011) we explored a way to create a Circular loader using XAML without writing any line in the code behind file. Lot of you gave a good feedback and discussed various findings on the same.

 

I did some more investigation to create a different type of circular loader which you can include in your Silverlight, WPF and Windows Phone 7 applications where you are using XAML code. In this article, I will be guiding to create similar kind of Circular loader as shown above. This will be more simple than the previous one. Let's start our discussion and create one loader like this.

 
© 2008-2017 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top