https://jkarger.de/punker76Another private blog with dev stuff and some other thoughts. 2023-10-17T14:47:00+02:00 Jan Karger https://jkarger.de/ Jekyll © 2023 Jan Karger /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png How to create a new IconPack with custom SVG Paths2019-04-02T14:34:49+02:00 2023-10-17T09:38:43+02:00 https://jkarger.de/2019/04/02/how-to-create-a-new-iconpack-with-custom-svg-paths Jan Karger The IconPacks project contains already thousand of high quality icons which can be used with the PackIcon controls. But it’s also possible to create a custom PackIcon class with your own awesome icons. So, to create a new icon pack follow these steps. Define a key (typically an enum) PackIconCustomIconsKind.cs namespace WpfAppMahAppsIconPacks.CustomIcons { using System.ComponentMo... Disabled Button Foreground2017-12-10T19:20:08+01:00 2023-10-17T09:38:43+02:00 https://jkarger.de/2017/12/10/disabled-button-foreground Jan Karger The Problem If you use a Button with a different Foreground brush then the original and a custom content, the Foreground wont be change on disabled state. In the following sample I will use directly the IsEnabled property, but it happens also if you use a Command which handles the state too. <Button Width="60" Height="60" Margin="2" IsEnabled="False" Foreground="Blue"> <iconPacks:P... Collapse Row- or ColumnDefinition with GridUnitType.Star2017-11-02T22:20:08+01:00 2023-10-17T09:38:43+02:00 https://jkarger.de/2017/11/02/collapse-row-or-column-definition-with-gridunittype-star Jan Karger Another short blog post about an issue which I found at the Chocolatey GUI repository. When I saw this issue, my first thought was, it’s an easy one to solve, but only at first sight. The GridLength for ColumnDefinition or RowDefinition can be GridUnitType.Star, which means it expands to the available space on the parent container or GridUnitType.Auto, which calculates the desired space of the... Tile banner for Chocolatey GUI2017-10-29T15:01:46+01:00 2023-10-17T09:38:43+02:00 https://jkarger.de/2017/10/29/tile-banner-for-chocolateygui Jan Karger Since one week I’m contributing some thoughts to the Chocolatey GUI which is a nice tool for the chocolatey package manager for Windows. We are currently implementing a tile UI for the package view. Read and look at the changes in this PR. We decided to show a installed and out-of-date status as an overlay banner for every tile. My first thought was to create a SVG with inkscape and use the d... MahApps.Metro MetroHeader2017-10-12T11:04:46+02:00 2017-10-12T11:04:46+02:00 https://jkarger.de/2017/10/12/mahapps-metro-metroheader Jan Karger The MetroHeader control is a new control in MahApps.Metro v1.6.0 which can contains any other content and shows a header on top of this content. It’s derived from the GroupBox control, so it should work like this. <Controls:MetroHeader Margin="2" Header="TextBox Header"> <Controls:MetroHeader.HeaderTemplate> <DataTemplate> <StackPanel VerticalAlignm...