Click here to Skip to main content
15,890,506 members
Everything / Desktop Programming / XAML

XAML

XAML

Great Reads

by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Nick Polyak
This article explains the most important and basic concepts of Avalonia WPF-like multiplatform UI package.
by Alan Beasley
Explanation and examples of Additional Templates and Generated Content of a ListBox. Covering Layout, Transitions, and Animation.
by Dr. WPF
This article describes a new approach by which an element can remove its visual and logical relationships to its children while maintaining a conceptual parental relationship with those children.

Latest Articles

by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
by Chandru BK
This article will assume you have basic knowledge of C# and Xamarin Forms and shows how to implement the Xamarin Form Validations using simple Data Annotations applied on the models.
by Michael Chourdakis
A set of tools to create a new VCXPROJ file automatically
by vickyqu115
Control featuring design and animations specialized for mobile, but can be elegantly and structurally implemented using ListBox and Animation technologies available in WPF.

All Articles

Sort by Title

XAML 

7 Sep 2014 by Member 10973822
Hello everyone, can someone help me with wpf buttonI want to remove the border and button glow effect.my button has an image background, it changes when the mouse hover but the button glows.here is the button code, I'm using visual studio 2010
7 Sep 2014 by Jawad Shairf
you can simply override the default border brush to your own border brush
11 Sep 2013 by Naila Akbar
I've a textbox for input (numeric value) of 12 digits and on the basis of that number I add some data into datagrid. For the first time when I enter any number it works correctly, but after adding data to datagrid when I enter any new number to textbox, it only gets 11 digits. when I check it in...
13 Sep 2013 by Naila Akbar
Solution that I got to solve out my problem is..I catch textInputStart event and there I check that if textbox.text contains "\r" then make it empty and after that I assign it new input. Still I don't get the reason that why there remains "\r" when am assigning it string.empty but my problem...
9 Oct 2013 by Glen Childs
Hello, I am trying to read in a text file (Words.txt) and then select a word out from the "Words.txt" file. However I am now receiving a 'minValue' cannot be greater than maxValue error.Can anyone help me with what I may have done wrong? My WordListHelper class:public class...
9 Oct 2013 by lukeer
Looks like _wordList.Count equals zero.Are you sure that _wordlist is filled with all the data needed when you call GetWord()?
9 Oct 2013 by phil.o
It seems _wordList is empty, so _wordList.Count - 1 = -1First of all since _wordList is declared at your class level you should not prefix its use with type in the ProjectFile() method: private async void ProjectFile() { var _Folder =...
18 Mar 2021 by Muthu vj
hi in xamarin form i am facing this Error while clicking the button for navigating another page. can you help me on this how to fix the Error public partial class HomePage : ContentPage { public HomePage() { ...
9 Feb 2012 by vivekx2
the error occurs like 'Silverlight.Canvas' does not contain a defenition for SetZIndexmy code is given below:private void rectFirst_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Canvas.SetZIndex(rectFirst, 2); Canvas.SetZIndex(rectSecond,...
9 Feb 2012 by Christian Graus
Here[^]. It looks like you set a ZIndex property, not call a method called 'SetZIndex'
17 Jun 2009 by Sacha Barber
This is a rant about .NET 3.5 SP1 StringFormat Binding Property
27 Dec 2006 by Anil Kr. Sharma
19 Apr 2012 by Jani Giannoudis
Concepts and patterns for the handling of strings in multilingual applications.
13 Jul 2010 by Alan Beasley
The WC Door button, covering all the missing skills needed to create the buttons shown in my first tutorial. As well as all 10 buttons for download!
5 Jan 2012 by Abbath1349
I posted two DataGrid on a form, but in the 2nd DataGrid binding does not work. The properties ItemsSource they show the same values. If one change in the second changes automatically. How do I make it work properly?
5 Jan 2012 by Shmuel Zang
Did you validate that the properties that you want to bind to, realy exist in the DataContext. It's the first time I see properties which their names are in language other than English...
6 Jan 2012 by Abbath1349
relevant code: private void themeSelector2_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { if (myDataSet.Tables["Asks"]!=null) myDataSet.Tables["Asks"].Clear(); ...
11 Mar 2014 by Prasanna Venkatesh . K
Writing a Windows store background app from the scratch
19 Nov 2009 by kanni vasu
If any one has any demo project of 3-tier Silverlightarchitecture , Please give me. I am new to these Silverlight architecture. alredy created sliverlight enable wcf service like this i have one class rrf1 in that public class RRF1 { [DataMember] public List LocationList { get; se
27 Nov 2009 by AspDotNetDev
You need to format your question better, or nobody is going to look at it and you will not get an answer.
6 Apr 2015 by QutaibaMustafa
Hi ^_^ I want to make a 3d painter using c#.First of all I want to display 3 panels - XY, XY and YZ Views. The user will paint what he wants in each panel. After that he will click on a button to combine the 3 views and get a 3d model from these panel. He also can render this model...
14 Apr 2015 by Gokulprasad05
Triangle FarPlaneDistance="100" LookDirection="-12,-11,-10" UpDirection="0,1,0" NearPlaneDistance="1" Position="11,10,9" FieldOfView="75" /> ...
2 Feb 2014 by AnobikDey
A description of how images and other controls can be rotated and used to give 3d Effect in Windows Store Apps
19 Mar 2022 by Yang Kok Wah
A tool to generate face images and animated gif files for different angles and lighting using only a single face image. Also includes Face Matcher using Microsoft Face API.
20 Oct 2004 by Livid
A guide to using 3D tags in Mobiform and Longhorn XAML.
11 Jul 2008 by Seshi
State space search algorithms - implemented with C# .NET 3.0 WPF
26 Jun 2018 by Member 13725613
Hi all, since a while im using the TreeViews with Checkboxes in WPF. I found a good solution here on this page: tps://www.codeproject.com/Articles/28306/Working-with-Checkboxes-in-the-WPF-TreeView However, I have problems to bring in a TemplateSelector correct into this code. I just want...
28 Aug 2015 by Abhishek Kumar (here to help!!)
Hi,I've a data template for a datagrid cell
12 Apr 2017 by Dave “DWC” Curry
How to wire up drag+drop events through multiple objects.
1 Mar 2016 by Luiey Ichigo
Hi all,I have a problem on client kiosk. On my laptop, when the program is run, a greeting's video will appear and play (if file is exist on App_Startup).Currently on client's kiosk, the video is exist but media is not play instead on MediaOpened, it goes to MediaFailed with exception...
22 Sep 2010 by jmix90
A fast and easy tip about shadows and performance
5 Jan 2011 by Khaniya
EditI found solution It was issue of WPFToolkit version I just update version and problem solvedoneThanks for reading my questionif I set Grid's SelectioMode Property to Single and set Width property of all columns then header is not look proper. Height of each header...
25 Dec 2010 by Abhinav S
Maybe you could try setting a margin on each of the column headers.
17 Nov 2020 by Richard Deeming
Passing Parameters - C# Programming Guide | Microsoft Docs[^] For example: class OutputFile { public void ShowComboBoxValue(string selectedValue) { Console.WriteLine("Selected value is: {0}", selectedValue); } } private...
20 Nov 2020 by Member 14995619
Thank you, but got it today. The issue was mainly two things. (1) The CoboBox was not tied into an event. Ended up doubleclicking the ComoBox on the XAML design page, which created an event tied to the box, at the very bottom of...
21 Nov 2020 by Member 14995619
GOAL: I have a GUI and a combo box with four values. I am attempting to get the selected amount and have it print to a file with an associated colour. For example: if "ABC" is selected, then in a file, "Value and Assigned Color ABC red" is...
6 Mar 2011 by TweakBird
Hi All,'IEditableCollectionView' is A good concept to deals with data adding and removing new items, as well as editing items in a transactional way to bind WPF Data Grid.Can you help me..How to implement it for WPF Data Grid ?My Requirement : I have multiple WPF Data Grid's with...
22 Feb 2011 by cp.soni
Plese see following link, http://blogs.msdn.com/b/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx[^]This may help in giving some hint. Not sure if you have already gone thru with that.Edit : Provided the correct link.
7 Apr 2016 by Luiey Ichigo
Hi,I'm having problem to appearing the account user name. Can someone specify what's problem that I'm facing right now? Just first day of UWP and C#.XAML:
23 Jun 2020 by Duong Dieu Phap
Hi, I'm using ScrollViewer UWP control to zoom an image, I manage to set ZoomMode="Enabled" to enable the zooming function. But the problem is, it only works by holding Ctrl key and mouse wheel! Is there any way to just using mouse wheel? Or...
27 Sep 2018 by Georgeutc
A very simple Resizable SplitView
14 Jul 2016 by Mohan Rajesh Komatlapalli
my list view inside the split view is not scrolling.
14 Jul 2016 by Mohan Rajesh Komatlapalli
I had modified the Code Snip as below, Placed a ScrollViewer inside the SplitView.Pane and Modified the Margin values.Code for Windows 10 PC App ...
8 Sep 2015 by LLLLGGGG
Hi everybody,I have Visual Studio 2015 and I've just followed this[^] tutorial in order to learn how to localize a WPF application correctly. Everything works fantastically, but in Visual Studio I get a strange error. Here's a screenshot.Despite that, everything compiles well and...
21 Aug 2015 by Dr Miroslav Stimac
Hello,I am developing an universal Windows 8.1 App, primary for Windows Phone 8.1. There are different screen sizes and resolutions of Windows Phone 8.1 smartphones, so I am scaling the controls (TextBoxes, Images, Buttons etc.) automatically by using Grids. This works great!I am using...
21 Aug 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question. So, maybe all you need is to use Padding with Thickness in device-independent units. Please see: https://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.padding%28v=vs.110%29.aspx[^].For some background on device-independent pixels,...
27 Dec 2015 by Mohan Rajesh Komatlapalli
Iam getting this error "The text associated with this error code could not be found.Failed to create a '%1' from the text '%0'. [Line: 45 Position: 44]"StackTrace of Exception is at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator,...
27 Dec 2015 by Kornfeld Eliyahu Peter
I think the problem is the way LART defined...it should bexmlns:LART="clr-namespace:OnlineVideos.UserControls"insteade ofxmlns:LART="using:OnlineVideos.UserControls"How to: Import a Namespace into XAML[^]
24 Apr 2015 by Luiey Ichigo
Hi all,How to put a variable on XAML? A variable which retrieve from the module(modGlobalVar.vb) and place it on XAML?Because I want to put it on rectangle imagesource path. Sample:-
25 Apr 2015 by Sergey Alexandrovich Kryukov
All wrong. You don't understand how XAML is used. You don't modify XAML used to define you UI, it is not a runtime object.Here is what happens. During build, XAML (not all XAML, perhaps; I mean just the XAML you used to define your dictionaries, user controls, windows, and so on) is compiled...
18 Jun 2014 by LLLLGGGG
Hi everybody,I have made this in a resource dictionary istantiated in app.xaml:and in a page loaded in a frame inside a window (I put this code inside a...
16 Jun 2014 by ashok rathod
I think problem is with 1.You can use DynamicResource instead of StaticResource.2.Double Quotes is missing so u can put double quotes at the end of Statement and can make TargetType="Button" 3.After doing all above you can clean your solution.Rebuild your solution and can then...
16 Jun 2014 by ashok rathod
I think problem is withshould havebecause it might be the case that MainButton style is not available at runtimeYou can also try...
29 Jan 2011 by 69Icaro
Analyzing the Snake game, we'll study an application for the new Windows Phone 7 platform, focusing on localization, Inversion of Control, navigation, transition effects, triggers, Isolated Storage, audio and we'll also use Blend to create a rounded glowing button, and other things...
23 Mar 2017 by Member 13075342
Okay, so I have been learning Xaml and C# for a little now. I designed a application using some basic navigation however I've stumbled into a problem. So for instance I created different dashboards for different types of users. Those only have access to certain pages. Here is an example:I...
23 Mar 2017 by Graeme_Grant
There is no way in WPF Navigation to look at the Back Stack of pages. You have a number of different choices. Here are two off the top of my head:1. Clear history when "User B" logs in: public void ClearHistory() { if (!this.Frame.CanGoBack && !this.Frame.CanGoForward) { ...
11 Dec 2011 by Raj Lal
Chapter 11 of "Fun with Silverlight 4" More information at http://silverlightfun.com
18 Jan 2009 by adam.cataldo
An article on a useful extension to the WrapPanel control.
13 Nov 2014 by Daniel Vaughan
Learn how to combine T4 and a custom markup extension to share and consume image files between projects.
16 Aug 2013 by Robert Köpferl
This article provides a better browser control than the one included in WPF
12 Oct 2012 by ntg123
Different approaches for implementing MVVM over byte/bit based data.
19 Feb 2021 by Leif Simon Goodwin
A 3D surface plot control in C#
8 Mar 2011 by Sacha Barber
Set of utility classes to observe a chain of INotifyPropertyChanged objects.
21 Nov 2019 by Leif Simon Goodwin
This article presents a simple WPF Carousel Control
7 Dec 2018 by Dirk Bahle
Making better use of the available UI space.
31 May 2011 by Arik Poznanski
A Customizable WPF MessageBox
19 Sep 2009 by jebarson
New features of Visual Studio 2010 discussed
3 Mar 2017 by wim4you
Launch additionally a limited number of hand picked Programs, Documents or Folders from the taskbar
29 Jul 2012 by Winfried Ripken
This article presents a framework allowing you to integrate the workflow designer more easily in your own applications
8 Jan 2017 by Nuwan Karunarathna
This a foldable content control for UWP platform.
19 Jul 2014 by B. Clay Shannon
A list of useful programming books, some general, some platform- or language-specific
31 Mar 2009 by Timmy Kokke
A detailed walkthrough on how to style a basic Silverlight button into a "Glass Orb" button.
19 Apr 2007 by Josh Smith
A guided tour of the Windows Presentation Foundation, one feature at a time.
4 Apr 2007 by Josh Smith
A guided tour of the Windows Presentation Foundation, one feature at a time.
4 Apr 2007 by Josh Smith
A guided tour of the Windows Presentation Foundation, one feature at a time.
7 Apr 2007 by Josh Smith
A guided tour of the Windows Presentation Foundation, one feature at a time.
13 Apr 2007 by Josh Smith
A guided tour of the Windows Presentation Foundation, one feature at a time.
1 Sep 2015 by David Maw
A way to embed help pages within a Windows RT or Phone program
22 Jan 2018 by Dirk Bahle
Implementing text highlighting in a WPF TextBlock control with MVVM
21 Jun 2008 by mariocatch
Basic concepts ranging from XAML layout, to C#->XAML communication and databinding.
22 Jul 2016 by Mohamed Kalmoua
In this article, I will create a master-detail view using the Entity Framework.
18 Feb 2020 by webmaster442
A Media player control for WPF, based on MPV player that can play almost any media file.
31 Jul 2012 by Shuqian Ying
The source code and a simple demo program for a plug-in in Microsoft Managed Extensibility Framework (MEF) that provides visual display of email messages.
17 Jun 2009 by Sacha Barber
ImageBrush in WPF
3 Feb 2010 by Dr. Song Li
This article introduces a more flexible and secure method to configure Silverlight applications using the Web.config file from the ASP.NET host application.
24 May 2008 by wpfdevelopment.com
An easy way of sorting the WPF ListView with a generic method.
18 Jan 2021 by John Whitmire
A customizable way to set enum flags
10 Jul 2009 by Andrius Mudinas
A multilingual Silverlight virtual keyboard.
15 May 2015 by Lộc Nguyễn
Example of data binding for nested tree structure, and MVVM pattern.
22 Feb 2009 by Raul Mainardi Neto
An implementation of the MVVM Patterns + CommandModel within a WPF LOB application.
4 Nov 2010 by logicchild
An article that illustrates how to simulate a pendulum.
6 Jul 2011 by Weidong Shen
This article describes building a sample Silverlight application with the MVVM Light toolkit, WCF RIA Services, and a pluggable application architecture using MEF.
4 Apr 2013 by Michael Mann (mann.DEV)
Plugin migration with new features of .NET 3.5.
22 Feb 2011 by İlkay İlknur
Silverlight Focusing Issue
4 Nov 2010 by logicchild
An article that describes WPF for the beginner and provides some tips for the intermediate.
20 Jul 2012 by hzawary
Hi everybodyHow can set Margin property to a number, for example 10 with global Style to controls has created in window under xaml code?I tried this, but get error... ...