This can be done by setting the Icon property of the RadMenuItem. This is probably the third time I've needed to do this and each time looking at pages and pages of all that style code leaves me queasy. A big feature in WPF is the ability to scale the application to almost any size This means the icons will be scaled also and will look rubbisch/blurry. The arrows are available in the different formats (right click and choose "Save Target As"):. Add an image, I used an image from my favorite TV show Stargate. WPF stands for Windows Presentation Foundation and it provides a way to render user interfaces for windows based applications. Download free 1,062 Wpf Application vector icons! +500,000 vectors and icon kits. Customizing the WPF MenuItem in XAML Note: This topic has been updated with a complete solution in Part 2. 1 / Universal Apps. 1 and Windows Phone 8. Usage [obsolete] The resources are simply Canvas’s wrapping one or more Paths. Who really want's to use and edit that syntax in XAML directly? While I'm not an WPF expert, I still think it's superior compared to WinForms and all Immediate Rendering Frameworks. New for release 1. Search more than 600,000 icons for Web & Desktop here. The seventy-ninth part of the Windows Presentation Foundation Fundamentals tutorial describes another of the WPF menu controls. WPF Window With Close Button. I wanted to use the same flow in. New here? Start with our free trials. Each and every icon is carefully crafted in Expression Design with vector in mind. This XAML icon is part of an icon pack of 123,972 web icons. Software XAML Icons Collection contains over 413 high quality vector xaml icons, user icons, window icons, devices icons, folder icons, document icons, symbols and lots more! These XAML icons are compatible with both wpf and silverlight applications. Usage Sample. Note: Your derived class is not instantiated in the designer when you are designing it, which means that any calls made to your base class from the constructor are not called. I had never worked with WPF before this venture. Then choose XAML for WPF or Silverlight. The same has been demonstrated in the following code, Resource file: (MetroIcon. I've memorized that syntax over 6 years. Thankfully, Expression Design will export any graphical image as a set of paths and geometries when you export the image as a *. Join now and share your views and answers on Syncfusion Developer Community for the thread: WPF - Vector Icon (XAML) as icon of a button (LargeIcon). Find answers to Add icon in xaml WPF System. Symbol property. WPF TextBox Validation with IDataErrorInfo There are so many ways for data validation in WPF that sometimes it confuses people. For more info and examples, see the documentation for AppBarButton and SymbolIcon. WPF is an XML-based language that PowerShell can read using. I recently began working with WPF for the first time. I wanted to get rid of this because I wanted access out of the menu to be controlled by the menu items in the centre of the screen. WPF is built into Windows Vista and also runs on Windows XP and Windows Server 2003. 1 and Windows Phone 8. Find answers to WPF/XAML - Add a XAML geometric image to a menu item as an icon from the expert community at Experts Exchange. This is an simple style for Textbox for using search. A loose XAML file can be loaded into Internet Explorer, where the user interface will be rendered. Windows Forms and WPF had a similar interop scenario. WPF introduces an entirely new (and long over due) Menu (and ContextMenu) controls. These both provide information on the structure of your XAML composition-see Trees in WPF Upon opening the command interpreter in XamlPadX, click the help icon at the lower right to get some hints on what to do. Add controls in XAML page. You no longer have to worry about having to search for multiple folders for icon files at different sizes! Add high quality XAML vector icons to your WPF and Silverlight application and you will have the…. For things to work, change the name of the namespace in the resx cs to DTPicker. WPF (7) XAML (5). Icon changes depending on Boolean property (e. the "x" icon defined WPF TabItems With Close Button. WPF - XAML Overview - One of the first things you will encounter while working with WPF is XAML. The second is for the text of the MenuItem. In this example, I add two ToolBars to the ToolBarTray. XAML Icon Studio offers the suitable graphics in the format XAML WPF. Essential Tools for the WPF Novice When Michael sets out to do something, there are no half-measures; So when he set out to learn WPF, we all stand to benefit from the thorough research that he put into the task. ) For an overview of all available icons go to the material design icons website or download the compiled. Many people have asked for simple examples for changing the look+feel, and most responses point to ripping the style template from Expression Blend and then customizing it. This is what we will see in this article. I've put them all on one page here so you can see them, and the name of the style 🙂 The styles are found in the common folder, in the Standardstyles XAML file. The arrows are available in the different formats (right click and choose "Save Target As"):. Icon fonts are easy to embed and they are vector elements. Each and every icon is carefully crafted in Expression Design with vector in mind. I wanted to create a working-in-the-background spinner for a WPF application I was working on, and I thought that it would be a breeze with such powerful capability. I am sharing my knowledge, experience and learning via this blog. Because ToggleButton is a ContentControl, it can contain a single child element that can be any. ViewerSvg - svg to XAML converter. 前回作成したTreeViewとDataGridにアイコン(イメージ)を表示する。2つの方法を載せる。 静的なイメージを表示 プロジェクトにJpgなどの画像ファイルを置いて、それを表示させる方法. Some rules about loose XAML files: The top-level element cannot be a Window, but could be a Page or other GUI element (e. Font Awesome is a series of 369 scalable icons that are distributed in font form and mainly used in web development. TaskbarItemInfo element: the overlay icon is displayed. In case you would like to enhance your WPF applications now – go ahead and use Windows Runtime APIs with the help of the desktop bridge. Wpf button Icons - Download 381 Free Wpf button icons @ IconArchive. WPF XAML Obfuscator is a powerful tool used for an application code protection from reverse engineering, analysis and modifications, based on a distinctive code transformation technology, that allows significantly intensify software protection. Drag and drop below controls in design surface. I prefer SharpVectors 1. There is no direct way to minimize a WPF application to system tray. If the assembly icon is not specified, use the default Microsoft Windows icon. DrawingBrush (): You can use the arrow icon as a brush to "paint" an element, typically a Rectangle. This is similar to ASP. Home Search. XAML Icons provides free icons and professional stock sets in XAML vector format. Icons are available in PNG, SVG, CSS, PDF, and EPS formats, as a font, and in other vector formats. 1 / Universal Apps. Bitmap and a Rectangle object as item icon. Menus in WPF Menu. Benchmark 1 - Everything in App. This blog is just a continuation of our previous blog PART 1: C# WPF TreeView File Explorer with System Icons. Wanna copy-paste XAML into your PowerShell scripts for an easy-peasy GUI? This is the code for you. I will use the corporate logo of our new company as the sample for this article because it's XAML implementation uses quite a lot of the graphic functions of XAML. About Mark Heath. In this tutorial, we look at how easy it is to get started and add some beautiful material design to your application. ViewerSvg is the best svg to XAML converter for WPF, Windows Store, Windows Phone, Universal Aps and Silverlight. resx-file in the Properties-folder of your project. Material Design In XAML (MDIX) is a beautiful theme library that brings Google’s Material Design to your Windows Presentation Framework (WPF) applications. Events and commands linked to custom icons should be handled at the application level. From XAML, you. I converted these arrows in XAML. WPF Window With Close Button. We can use the default icons of Windows but we can also add other icon fonts to customize further the design of an application. We want to be able to display the application even in Debug Step 4: Rebuild and. I don't use C# just Powershell and XAML. In this tutorial, we look at how easy it is to get started and add some beautiful material design to your application. ico file) that is displayed in the top left corner of a Window. WPF ToolBar Example: Uses ToolBarTray. It stacks it items horizontally and draws the typical gray background. In this article I'll describe the rules and practices I'm following for XAML and MVVM application development. To start, please create a new C# WPF project. Sponsored by Webalys - Nova Icons. The Image control provides rich features to display images of various formats like JPEG, PNG, ICO, BMP, GIF etc. Cursor, but for WPF, we will be creating a System. A 12x12 pixel image is best. Having a window icon helps the user determine where they click to get the system menu (the window icon) and where they double click to maximize/restore their window (the area not taken up by the window icon and the minimize, restore, maximize,. 8 This is an implementation of a NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. As an ISE Snippet If you're running PowerShell 3. I am working on a WPF application and wanted to use Font Awesome for the icons within the application. The final way to work with graphical data in WPF is to drop down to the "visual layer". Since the menus are full fledged controls in WPF world, you have the freedom to do all kinds of techniques that you probably shouldn't (such as playing video. You no longer have to worry about having to search for multiple folders for icon files at different sizes! Add high quality XAML vector icons to your WPF and Silverlight application and you will have the…. 49 thoughts on "WPF XAML MenuItem Styles" XAML Tempaltes says: July 12, 2008 at 12:33 AM. While a full explanation of XAML is beyond the scope of this post (see here for an introduction), we’ll focus on some uncommon features of XAML, 1. Modernize desktop applications and gain a 30% performance increase with. 4 of Material Design In XAML Toolkit is a full icon pack. The code uses the Celebrity objects. In WPF, in order for the changes…. Thousands of icons and derivatives ready for use in your applications. 1 and Windows Phone 8. Why would anyone consider managing seperate assets for all xamarin forms projects?. 1) Use Nuget and Install-Package FontAwesome 2) Mark. Extensible Application Markup Language (XAML) is an XML language used for defining user interfaces in WPF and Silverlight. It also provides the ability to creat. This article shows how to make a WPF circular progress indicator that resembles Silverlight's loading animation. WPF XAML Obfuscator is a protection tool for. Home Search. Icons are available in PNG, SVG, CSS, PDF, and EPS formats, as a font, and in other vector formats. XAML Islands is a new technology that allows loading UWP controls in non-UWP desktop applications, such as WPF, Windows Forms, MFC. I never used that syntax directly, but rather used Blend to let it handle all the basic stuff for me. I'm using the described techniques since multiple years and they have proven themselves for me. 1) Use Nuget and Install-Package FontAwesome. The following sample demonstrated both using an EO. Thankfully, Expression Design will export any graphical image as a set of paths and geometries when you export the image as a *. Best way to represent a trashcan icon in XAML? Im a newbie to WPF. The seventy-ninth part of the Windows Presentation Foundation Fundamentals tutorial describes another of the WPF menu controls. Adding Icons to XamMenuItems You can display icons next to each menu item in xamMenu or xamContextMenu, giving your end users a visual indication of what the menu item will do. We will be using StaticResource style property and declare our WPF Button style in App. In the designer view of your window, add a Button control. Here I'll show you how you can create your own image or Icon Resource in you WPF Project and use it around your Apllication THX FOR SUBSCRIBING MY CHANNEL! XAML WPF - Styles Part 3, Resource. To display an icon for a TreeViewItem, simply set the TreeViewItem's Icon property. The best way to do this today is with Windows Presentation Framework (WPF). NavigationCacheMode property value, a NavigationFrame can cache Views to which it navigates in multiple modes: cache always, cache until the cache size exceeds the defined value, or do not cache at all. You can import individual SVG graphics using the graphics editor Inkscape and save it in Microsoft XML format. xaml file of our WPF Project. Please contact its. The next article in this series describes how UWP controls can be directly used from within WPF applications – using XAML Islands. This post builds on some previous post titled Use base64 for Images in WPF-based PowerShell Forms. If you have an existing WPF project, you can skip to step two. This is probably the third time I've needed to do this and each time looking at pages and pages of all that style code leaves me queasy. WPF What is the correct way of using SVG files as icons in WPF (3) Can someone describe a recommended Step by Step procedure for doing this? EDIT: Step1. So the code above will effect all CustomControl elements throughout the entire application (or within the scope). I create courses for Pluralsight and am the author of several open source libraries. 1 and Windows Phone 8. A loose XAML file is a file containing XAML that has no associated code-behind and is not compiled into an application. WPF - Image - A control that displays an image, you can use either the Image object or the ImageBrush object. The same has been demonstrated in the following code, Resource file: (MetroIcon. Flexibly use vector icons in WPF without other class Vector Icons in WPF - CodeProject WPF + bitmap = WTF! Microsoft, why no fix after 2 years?! XAML Icons by daenuprobst on DeviantArt Need XAML Icons designed quickly and cheaply? WPF: How to add an icon for entire application Icon Pack - Material Design In XAML 1. Unlike other icon packs, our web icons are designed by a single designer, guaranteeing the consistent style and quality. FontAwesome is a font with just over 500 icons. XAML Icon Studio offers the suitable graphics in the format XAML WPF. Subscribe to: Post Comments (Atom) How to Fix a Humax HDR FOX T2 PVR that will not stay powered on. The default WPF expander is functional but is ugly. The last is for the arrow, if the MenuItem contains a sub-menu. Cursor, but for WPF, we will be creating a System. The next article in this series describes how UWP controls can be directly used from within WPF applications – using XAML Islands. WPF Windows Font icons with Segoe MDL2 Asset. Here in this article I’m going to use the Font Awesome open-source icon font as an embedded resource in a XAML / C# universal app. In WPF we define a UI resource system (mostly in XAML resource dictionaries) which includes colors, templates, icons, styles and so on. Using the Shape class and its derived types. Locate the Button control in the Toolbox panel. Thankfully, Expression Design will export any graphical image as a set of paths and geometries when you export the image as a *. And lastly, I wanted the icons to be able to hook into our existing resources for colors so they could be easily themed if desired. Font Awesome is a series of 369 scalable icons that are distributed in font form and mainly used in web development. Wpf application Icons - Download 2774 Free Wpf application icons @ IconArchive. Extensible Application Markup Language and pronounced “zammel” is a markup language used to instantiate. Some rules about loose XAML files: The top-level element cannot be a Window, but could be a Page or other GUI element (e. The script in this post is based on the project available here (written in C#). To start, please create a new C# WPF project. The Ribbon is a command bar that organizes the features of an application into a series of tabs at the top of the application window, is designed to help you quickly find the commands that you need to complete a task. ; Images that are part of the UI, nested within the control hierarchy of a ribbon. Available in PNG, ICO or ICNS icons for Mac. And here, we are expecting that you already read the previous blog. The Symbol enumeration is typically used to set the value of the AppBarButton. The only downside to working with geometries is the large amount of markup required to generate the data. This is probably the third time I've needed to do this and each time looking at pages and pages of all that style code leaves me queasy. It starts off looking. XAML Icon Studio contains the design variations Pure F lat, Shape, Stroke, Glossy, Silver and Classic. A Template for WPF Windows with View Model Support One of the really nice templates for Windows 8/8. Icon changes depending on Boolean property (e. In this video article we will learn how to change height, width, title and icon of the window in wpf application. Not sure if you have noticed, but there are quite a few out of the box icons for buttons that come with Metro. The first thing that I noticed was the menus. Currently, this consists of Entypo and Temparian’s Modern UI Icons. For more info and examples, see the documentation for AppBarButton and SymbolIcon. This article discusses how to create and use Icons in WPF applications. I create courses for Pluralsight and am the author of several open source libraries. View this topic on docs. NET where web page and the code behind files are separate. zip (21 KB) I’ve begun using Xaml-based icons in my WPF applications, but I’ve found that I didn’t have any tools to preview them with. Using Windows 7 taskbar features in WPF [pure XAML] in your WPF application, in the XAML markup for the window, insert the Window. Current applications are being written with WPF, such as VS 2012. In WPF we define a UI resource system (mostly in XAML resource dictionaries) which includes colors, templates, icons, styles and so on. Hopefully the keywords in this post will be good enough to help someone else down the line when trying to create a decent WPF StatusBar. Glyph property. " The article shows how to lazy-load the TreeView control with the directory structure on your machine. FontAwesome is a font with just over 500 icons. 1 and Windows Phone 8. This course, part one in our XAML series, provides an overview of the what, when, and how of XAML for the Microsoft developer who wants to build better user interfaces for their applications. This article discusses how to create and use Icons in WPF applications. I never used that syntax directly, but rather used Blend to let it handle all the basic stuff for me. You will see that the XAML markup changes and a Button element is inserted. In WPF we can easily modify or create an any custom control which looks great with the help of the style and template which are available in a WPF. When Toggle button clicked first time it will set IsChecked property to true and on click again it will set IsChecked property to false. while Inherit style in WPF it affect parent style. Segoe in XAML. Some rules about loose XAML files: The top-level element cannot be a Window, but could be a Page or other GUI element (e. If you have an existing WPF project, you can skip to step two. The system requirements for icons are very varied today. It explains things like how to inspect anonymous. With a trick WPF and C # can be installed in Windows applications under Windows. In my second installment of working with PowerShell and WPF, I will touch on the subject of Buttons. It has been reported that when using an icon file as RibbonWindow. Most of the described rules apply for all types of XAML projects - Windows Store, Windows Phone, Silverlight and WPF projects. WPF ToolBar Example: Uses ToolBarTray. You can find me on: Search this site. When Toggle button clicked first time it will set IsChecked property to true and on click again it will set IsChecked property to false. NET where web page and the code behind files are separate. This is because it is a different Cursor object we are creating, and Microsoft did not give us a constructor that takes an IntPtr. Since then, we've gotten a number of requests to support WPF applications. Custom Icons in WPF TextInputLayout (SfTextInputLayout) Any custom icons can be added to the leading edge or the trailing edge of the input view in the text input layout control. To start, please create a new C# WPF project. For things to work, change the name of the namespace in the resx cs to DTPicker. In the designer view of your window, add a Button control. For the icon to be displayed as expected, you have to either provide an element of type Image for it or also set the IconTemplate property of the item. The Symbol enumeration is typically used to set the value of the AppBarButton. The third is for the input gesture text (e. It is a permanent part of the. Usage Sample. In particular we will look at being able to have complete control over all the visual states, including disabled, mouse over, mouse down and even the appearance of the focus rectangle. Add an image, I used an image from my favorite TV show Stargate. XAML Icons provides free icons and professional stock sets in XAML vector format. Overlaying Icons on the Windows 7 Taskbar with WPF 4 Pete Brown - 09 December 2009 The Windows 7 taskbar is more than just a place to hold icons for running and pinned applications. WPF - Image - A control that displays an image, you can use either the Image object or the ImageBrush object. However, they are not designed to be embedded within a container; they are used as standalone items. High-resolution monitors, smartphones and WPF applications require new icon sizes and different DPI resolutions. So, I was spending some time trying to figure out how to make a menu in WPF scrollable before it maxed out on my screen height. Source property to the appropriate image file path. Software XAML Icons 1. I have seen a lot of explanation and looked many articles on net about the slider, but i got the the better idea about it only when I implemented it in my own way. I have started working in. So wondering what is the best-practice approach to display a simple trashcan icon? A graphic file, wingding type font or. With Material Design In XAML Toolkit you can easily bring beautiful desktop applications to life, using a modern and popular design language. Extending WPF Control Templates with Attached Properties; Styling a Vertical ProgressBar in WPF; 2013 (1) Knockout - What MVVM should have been like in XAML; 2012 (3) A XAML Loop Icon; Using a WrapPanel with ItemsControl and ListView; Creating Resizable Shape Controls in WPF; 2011 (1) Silverlight Star Rating Control; 2009 (4) Styling a WPF Volume Meter. xaml: Created two simple resources in App. paket add FontAwesome. WPF Window With Close Button. In my second installment of working with PowerShell and WPF, I will touch on the subject of Buttons. Ready to Use. The best way to do this today is with Windows Presentation Framework (WPF). Depending on the NavigationFrame. I've memorized that syntax over 6 years. Keyword for wpf: winning form wpf wcf mvvm wps office download visual studio 2010 visual studio express xaml visual studio 2012 wpf tutorial visual studio 2008 visual studio c# wpf c# wpf datagrid ms visual studio wpf mvvm wpf combobox wpf listview wpf grid windows presentation foundation wpf listbox wpf binding visual studio 2005 wpf application wpf treeview visual studio msdn windows visual. Here are a few sample screenshots of some icons converted into XAML format from their original Professional Vista Software Icons collection. XAML Islands is a technology that enables Windows developers to use new pieces of UI from the Universal Windows Platform (UWP) on their existing Win32 Applications, including Windows Forms and WPF technologies. In Visual Studio 2013, we added a new XAML UI Responsiveness tool in the performance and diagnostics hub to enable you to analyze application interaction-related performance issues in your XAML Windows Store applications. Sacha Barber recently posted an article to CodeProject titled "A Simple WPF Explorer Tree. And here, we are expecting that you already read the previous blog. The Extensible Application Markup Language (aka XAML) is a declarative programming language that was specifically built for WPF to encourage separation of front-end appearance and back-end logic. No comments: Post a Comment. Net Technology since its beta release and lucky to got chance to work on. 362 commits. c#,xaml,styles,wpf-controls. WPF stands for Windows Presentation Foundation and it provides a way to render user interfaces for windows based applications. It does not just rely on the Windows FormsNotifyIcon component, but is a purely independent control which leverages several features of the WPF framework in order to display rich ToolTips, Popups, context menus, and balloon messages. Each and every icon is carefully crafted in Expression Design with vector in mind. Bitmap and a Rectangle object as item icon. Be sure to check out the XAML file attached and provide any suggestions you might have, or ask any questions, etc. This is an open source implementation of a NotifyIcon (aka system tray icon or taskbar icon) for the WPF platform. High-resolution monitors, smartphones and WPF applications require new icon sizes and different DPI resolutions. Bind the resource value to the WPF window’s property. Learn why markup is so important in UI definition, which frameworks use XAML, and how to identify parts of a XAML file. Bitmap and a Rectangle object as item icon. That’s what I got after playing a bit the the idea : a gradient background (just for fun) 5000 items built and displayed in a second (“Virtualization” feature) dead-simple data binding. You will see that the XAML markup changes and a Button element is inserted. Future updates live here on GitHub One Time Use Format For one time, copy-paste use of the XAML loader, use this. To achieve this, we can customize the header of each TabItemExt by its Header Template to bind the Icon in header of TabItemExt. To help in this regard I am pleased to announce that the entire Material Design Icons collection is now…. It stacks it items horizontally and draws the typical gray background. When I added the code and Xaml to define the window, I noticed that the window still had a close icon on it. Look and Feel. To accomplish this, I starting by adding a new resource dictionary called Icons. WPF is built into Windows Vista and also runs on Windows XP and Windows Server 2003. Wanna copy-paste XAML into your PowerShell scripts for an easy-peasy GUI? This is the code for you. ico) to your project resources. WPF button style (icon + text with diff font size) - WPF button style (XAML) WPF button style (icon + text with diff font size) - WPF button style (XAML) Skip to content. Windows Presentation Foundation (WPF) is a graphical subsystem (similar to WinForms) originally developed by Microsoft for rendering user interfaces in Windows-based applications. But while there is no constructor for it, there is still a way to get a Cursor out of an IntPtr. Code, Example for Grid Layout in XAML in WPF. Add an image, I used an image from my favorite TV show Stargate. Extending WPF Control Templates with Attached Properties; Styling a Vertical ProgressBar in WPF; 2013 (1) Knockout - What MVVM should have been like in XAML; 2012 (3) A XAML Loop Icon; Using a WrapPanel with ItemsControl and ListView; Creating Resizable Shape Controls in WPF; 2011 (1) Silverlight Star Rating Control; 2009 (4) Styling a WPF Volume Meter. WPF - Image - A control that displays an image, you can use either the Image object or the ImageBrush object. High-resolution monitors, smartphones and WPF applications require new icon sizes and different DPI resolutions. A big feature in WPF is the ability to scale the application to almost any size This means the icons will be scaled also and will look rubbisch/blurry. WPF What is the correct way of using SVG files as icons in WPF (3) Can someone describe a recommended Step by Step procedure for doing this? EDIT: Step1. This post explains how to change the colours of a ComboBox in a WPF application by overriding the control's default template in XAML using Visual Studio 2012 or 2013. Then, I added a new WPF Window, named “About. Itâ s a simple and declar. Use base64 for Images in WPF-based PowerShell Forms. WinForms has System Tray icon support built right in, but WPF never has. In WPF you can do this easily with the help of Windows Forms' NotifyIcon-class. WPF XAML Obfuscator is a protection tool for. From XAML, you. xaml”, to the WPF project. How to Fix a Humax HDR FOX T2 PVR that will not stay powered on. Drag and drop below controls in design surface. It is a permanent part of the. I can add bitmap icons/images without any problem, but I can't quite figure out how to use a XAML vector graphic icon as the icon for a menu item. I was doing this outside of my job on my own time (which is sometimes quite limited). 6m developers to have your questions answered on XAML Icon as DynamicResource of UI for WPF Buttons. If you declare a Style without an x:Key, it will override the default style for that control. Caution: When trying to nest a ToolBar within a ToolBarTray, you may need to simply edit the XAML. To do this just open the Resources. io/) in your WPF application? With a few simple steps you can do it. With the large set of themes available in the suite this can drastically change the look and feel of your application. The same has been demonstrated in the following code, Resource file: (MetroIcon. The designer Sander Baumann created 56 different arrows in vector format (Adobe Illustrator). It stacks it items horizontally and draws the typical gray background. With Material Design In XAML Toolkit you can easily bring beautiful desktop applications to life, using a modern and popular design language. Forms and System. Under XAML one gives the code as here one with Kaufmanns-And-Hashtag & # and. Just create a PackIcon and set its Kind property to whatever icon you want to use. Published December 18, 2008 WPF, XAML 3 Comments With minimal effort any of the supplied Windows Presentation Foundation (WPF) controls can be visually restyled to suit an application’s needs. Applying custom font to WPF application is certainly more complex and strange than it should be. Switching Icons at Runtime. Adding items to it is very simple - you simply add MenuItem elements to it, and each MenuItem can have a range of sub-items, allowing you to create hierarchical menus as you know them from a lot of Windows applications.