Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: XAML
Showing posts with label XAML. Show all posts
Showing posts with label XAML. 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 change the default XAML document view in Visual Studio 2015?

Not many of us wants to work in the designer view of Visual Studio while working with the XAML files. This could be due to no requirements of changing the UI layout rather than few data bindings. By default, Visual Studio loads the XAML designer view.

 

In this post we are going to learn how to disable the designer view and/or change the way it loads the default document view.



My slides on building #UWP apps using C# and XAML

Last Sunday (29th May 2016), we have organized an event in Kolkata, clubbed with topics on different technologies. This includes topics like C# 7.0 Concepts, Azure PowerShell, UWP (Universal Windows Platform), HoloLens with Unity 3D and IoT (Internet of Things).

 

I have given a session on building UWP apps using C# and XAML. Here I am sharing my slides for you to refer. Those who missed to join the event, check it out.


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.


How to restrict Telerik RadDiagram within a specific viewport?

If you are a Silverlight application developer and using Telerik RadDiagram control, you might have seen that you can zoom and pan the diagram control and move it to any boundary. In some scenarios, we need to restrict it to a positive quadrant.

 

In such case, based on your business logic, you have to restrict the diagram to some quadrant value. In this small post, we will learn how to set it’s viewport to a specific bounds.



#VisualStudio 2013 Improvements - better commenting in XAML

Microsoft Visual Studio 2013 RC (Release Candidate) is already there and I hope, many of you already downloaded it and started exploring the new features and enhancements part of the release candidate. Visual Studio 2013 provides us a better way to handle XAML pages.

 

In this blog post, we will learn the new feature introduced to better commenting XAML codes inside Visual Studio 2013 IDE. You will definitely like it.


Solution to Visual Studio crash while working in XAML

logo1

If you are working in Visual Studio to design XAML pages for your Silverlight, WPF, Windows Phone or Windows 8 Store application, you might have noticed that, sometime the Visual Studio IDE freezes for a long time and sometime it crashes.

 

I faced this issue many time and later found some way to recover from that freeze to continue working. In this post, going to share you the trick. I hope this will help you.


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 a modal InsertSymbolDialog for Telerik RadRichTextBox?

If you are a Silverlight application developer and working with Telerik’s RadRichTextBox control, you might have already used the InsertSymbolDialog that comes in-built with the control. This dialog provides you a direct API to insert symbols in your rich text box.

 

By default the said dialog opens in non-modal dialog and there are no easy way to make it modal. In this blog post, we will learn how to customize it to make a modal window for that.



How to Hide the UILayer of #Telerik RadRichTextBox?

The big boss again hit you “Hey buddy, I don’t want to see those movement layers in the inserted table those you are using in the Silverlight application”. Now as a developer what to do? You are using the Telerik RadRichTextBox in the application that you are building. Does it provide the functionality?

 

Today’s blog post is on that topic and here we will discuss, how to hide the movement layer from the table and then show it back again on need basis.


How to remove the GroupSeparator in Telerik’s RadNumericUpDown?

If you are a Silverlight developer and working with Telerik’s Rad control library, you might have seen that the RadNumericUpDown control always displays the value with a comma separator as per your system’s locale settings.

 

But have you ever came to a situation where your client wants to remove the comma separator from the control? You will not find any properties in-built in it. Let’s start today’s discussion with it.


How to work with Telerik RadAutoCompleteBox (Silverlight & WP)

Developers always try to provide the user a easiest way to represent the data irrespective of the technology that has been used. Hence, for a huge collection of data, generally we provide “AutoComplete TextBox” to the user instead of ComboBox or ListBox.

 

The reason behind this is to provide searchable and filterable UI to the user for easy access. Today in this post, we will learn how to use the Telerik’s RadAutoCompleteBox in both Silverlight and Windows Phone.


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.

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