im using word Inetrop in a WPF C# App Which i find a word and Change its color to red and im facing issues
This is my Code it works but I have a problem at the third part when I try to change the word 'No' color to red it changes any word that includes 'No' for example 'Not Isolated' was Effected by this and its color was changed how can i specify that i…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
Reg: Clear previously logged-in users list from OneDrive login screen
Hi Team, We have developed a WPF application, where multiple users can log in to our application. We are using WPF web browser control to load the one drive login page. Our requirement is to not show the previously logged users' information on the…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
How to increase WPF 3D Performance?
I have a problem looking forward to your suggestions about WPF 3D performance. It runs quite well with a small width and length, but with a width and length of about 949x825 When measured by stopwatch, all of the implementation in c# code only takes…
Why this error when doing an image conversion
I am trying to convert a BitmapImage to a Byte() with the following code: Dim ic As New ImageConverter Dim bts() As Byte = DirectCast(ic.ConvertTo(clsImage, GetType(Byte())), Byte()) The error message I get is: > Unable to cast object of type…
Can't Get My Image to Appear in an Image Container
I have all the parts to display an image in the wpf Image control but I cant' get them all wired together. First I have a Picture class as follows ((ignoring irrelevant code): Public Class Picture .... Private _Image As Byte() Private _Title As String…
XAML > Binding SelectedValue to a concatenation of 2 properties
Hi, I've a Person class public class Person { public string location; public string name; ... } ...and a list of Person List<Person> list1 = new List<Person>() { new Person() { location = "Chicago", name =…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
Toggle Button Color Bound Property Not Concistant
Can't get my color property's bind logic right. I get odd color behavior and occasionally the toggle switch switches back on its own. Can anybody help Thanks Madaxe <UserControl x:Class="WpfApp5.ToggleButtonUserControl" …
DocumentViewer "PART_FindToolBarHost" - change default language
Hi, I would like to use DocumentViewer for print preview of my XPS files. However, the ContentPresenter control known as PART_FindToolBarHost embedded inside DocumentViewer doesn't recognize my Windows language settings, so by default It's everything…
C# WPF user Control Binding Problem
I'm building a simple user control toggle switch, I'm using the margin to move the Ellipse once the user selects with the left mouse button. I want the usage to bind to a boolean to make it simple. The control works when i put it in a datagrid but…
[WPF] XAML how to inherit lists?
Hello everyone! I have a structure class MyContainer { List<MyItem> Items; } class MyItem { string Name; int Value; } I want to get instances of Containers whic have values from the base => mean broadcast values to other containers…
How to use a SharedProject between different solutions?
I've been working on a SharedProject for our various WPF apps that we're writing. There's some common, general (and sometimes generic) code that we've been sharing between different projects, by using the good ol' tried-and-true copy-and-paste. I've…
![](https://techprofile.blob.core.windows.net/images/fefadda8866e4e3f859dcdf8cef56e0e.png)
![](https://techprofile.blob.core.windows.net/images/fefadda8866e4e3f859dcdf8cef56e0e.png)
Does webview support webauthn(FIDO2.0)?
WPF app with webview tested with https://demo.yubico.com. But it shows browser not supported. At the same time, the edge browser works fine. On checking the user agent of WPF app and Edge below difference found. WPF WebView User Agent: …
![](https://techprofile.blob.core.windows.net/images/tjM9HfYxiE6cDNGZoywteQ.png?8DA977)
[WPF] Some paths was disappeared when scale canvas
When I add many Paths on canvas and zoom out canvas, some paths was disappeared. I execute on Window 10, 64 bit and .Net 4.7 Please let me know, why some paths was disappeared and solution for this issue. Thank you so much!
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
How to merge single binding validationrule errors to bindinggroup?
Example: <Grid> <Grid.BindingGroup> <BindingGroup x:Name="Group"/> </Grid.BindingGroup> <TextBox> <TextBox.Text> <Binding Path="Name"…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
CommandBinding not set CanExecute will disable button.
If I create the CommandBinding with no CanExecute: CommandManager.RegisterClassCommandBinding(typeof(MyClass), new CommandBinding(MyCommand, MyCommandExecuted)); And set the command to a button: <Button Content="Click Me!"…
WPF MVVM - Unable to bind Model property directly to the IsEnabled Property of Button
Hello Team, Please find below View, ViewModel and Model class. I have binded collection of models (in ViewModel) to DataGrid control in the view. But based on UI selection, need to update another property in model. I am not able do to it via…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
Dispatcher required for changing WPF bound properties?
Hello, From time to time I read some articles that state that if WPF binds to a property that implements INotifyProperyChanged, such property can be changed from any thread without a dispatcher, because WPF would automatically dispatch the…
c# : Get EventHandler Change Notification without Creating Instance or Making it static
c# : Get EventHandler Change Notification without Creating Instance or Making it static Public class A { public EventHandler KeyboardCloseEventHandlerTest; private void someMethod(object sender, EventArgs e) { …
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
Wpf TextBox Stroke and Stroke Thickness
How can I use Stroke and Stroke Thickness style options for text in TextBox? Or is there other editable control that has it? Cause I have OutlinedTextBlock with this options and I want editing to look the same.
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
How to ignore key and pass it next to the window?
I display WPF UserControl inside HwndSource. I want ignore certain keys from keyboard and ignore that keys, but pass it next to the host window or host application. That means, if spacebar key is pressed, WPF UsuerControl ignore it, but host application…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)