Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 112629

Windows Presentation Foundation (WPF) is part of the Microsoft .NET framework used to create rich client user experiences for Windows application.

4 votes
0 answers
5k views

WPF CustomControl Image Button that changes with state and does not use ControlTemplate

Note: See Verticle WPF icon button that used Segoe MDL2 font for icon for an example using Segoe MDL2 for the icons. I need a button that changes appearance based on the state of a Boolean. … A previous attempt is here: WPF button with xaml-defined icon that changes with state In this implementation, I do this creating a custom control based off Button that does NOT use a ControlTemplate. …
geometrikal's user avatar
0 votes
1 answer
11k views

WPF button with xaml-defined icon that changes with state

I needed a button with text and icon that did two things: Text and icon went grey if the button was disabled. Icon changes depending on Boolean property (e.g. connected / disconnected). For the ic …
geometrikal's user avatar
3 votes

WPF button with xaml-defined icon that changes with state

Based on Adriano's comment: First, a generic converter class (copied from codeproject) public class BoolToObjectConverter : IValueConverter { public object TrueObject { get; set; } public ob …
geometrikal's user avatar
2 votes
1 answer
1k views

Vertical WPF icon button that uses Segoe MDL2 font for icon

This is a button that changes text and icon according to a Boolean state. for example, a play / pause button or a connect / disconnect button. The icon uses Segoe MDL2 Assets as the default font, but …
geometrikal's user avatar
4 votes
1 answer
9k views

Updating WPF image from camera frame grabber thread

I have created a WPF application in .NET 4.6.1. to display video from the frame grabbing event for a machine vision camera. … cameraImagePtr converter.Convert(cameraImagePtr, 2448 * 2048 * 3, grabResult); } // Make WriteableBitmap dirty (on UI thread) so that the WPF
geometrikal's user avatar
4 votes
2 answers
906 views

WPF Bitmap / BitmapFrame to multi-page / multi-frame TIFF with JPEG encoding

I was searching for a long time how to write multi-page TIFFs with the JPEG encoding. TIFFs support JPEG encoded frames but the built-in encoder in .NET Framework does not have JPEG as a compression o …
geometrikal's user avatar