How to Pass enum as command parameter in Xaml ?

Published on April 28, 2015 by admin

Filed under XAML

Last modified April 28, 2015

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 2.8 (4 votes)

This article have been viewed 20745 times

Below is a sample code snippet demonstrating how to pass enum as command parameter in Xaml.

How to Pass enum as command parameter in Xaml ?

<Button CommandParameter="{x:Static local:EmployeeType.ContractEmployee}" />

Leave a Comment


You might be Interested in these Posts

Can you run a Windows 10 Universal Apps on Windows 8.1 ?

This is one of the frequently asked question by most of the developers who are new to Windows 10 App...

How to get the Computer Name in C# ?

When working on a Winforms or Console application using C# , sometimes you might need to get the com...

How to Turnoff Frame rate counter in UWP App ?

You can turn off the frame rate counter in your Universal Windows Platform (UAP) apps by following t...