WPF : Cursor not visible in text box first position in RightToLeft flow direction
Hi, I have tried to remove all margin value in TextBox by accessing inner element and set Margin as 0. With this value cursor not visible in RightToLeft direction first place. But working fine in LeftToRight direction. LeftToRight: RightToLeft: You…
Issues using ResourceDictionary in a C# class library
I'm having trouble with reusing styles for WPF/XAML in my project. Just to give you some context. I am making a plugin for Revit, architectural/3D/CAD software used by many architects/contractors worldwide. To make a plugin for Revit, the Revit API…
ObjectAnimationUsingKeyFrames. Is it possible Canvases usage instead of Images?
Hello everyone, I'm currently using Storyboard type based on Image replacement. The code is below. It works fine, however there's a question arisen. Is there a way to replace images with canvases? Simple I failed to find such a variant in the Web. …
Is there any UWP API/way available to detect/prevent hooking?
There are many tools available to do hooking eg: frida 29.html. But i didn't find any API or way to detect hooking . Is there any API or way to detect hooking in Universal Windows Platform(UWP)? If yes, can it detect all kinds of…
[C#7.0 - WPF] - RichTextBox in a DataGridTemplateColumn with binding
Hi, I'm getting crazy about a RichTextBox to insert and bind to a DataGridTemplateColumn. I have As you can see, in a cell of the DataGridTemplateColumn I have four lines and what I would like is to have these lines colored in different…
Flowdocument Table - custom border style
Is there any option to create a custom border style for Wpf Table (type of Content Element for FlowDocuments), like create a rounded corners? I'm thinking that It might be possible with drawing PathGeometry or using Adorner, but I don't know how to do…
Interaction DataTrigger doesn't work. Could anyone test this example. Perhaps I'm doing something wrong.
Hello everyone, here's a simplest code the purpose of which is animation launching from ViewModel. Some people claim that it is working code. There are not any mistakes. exceptions and it doesn't work. Could anyone test this example. perhaps I'm…
Listbox add item makes logic not work
I have a listbox that has 3 items at design time, my logic works, but if I add a button that adds 100 items at run time it does NOT. I am trying to switch the color of the selection to a different colors with a case statement. public int caseSwitch {…
WPF IValueconverter is Not Firing When Click the radio button
Here is my xaml below. The DisplayUnitConverter is not firing when I click the radio buttons. Can someone assist me to see what I am doing wrong? I have initialize the Element name in the SpinEdit control to the Radio Control name. <Window…
how to customize charts in WPF? (using System.Windows.Controls.DataVisualization.Charting)
i am working on LineSeries Chart . i want to have following customizations 1) the Box in which legends are shown i wan to remove it , as i have single series i dont want legends and box. in my case an empty box is there. please refer the image 2) how…
Wondering if sharing a Shared Project between different solutions, is the wrong approach?
Some days ago I asked in this forum How to use a SharedProject between different solutions? And @Anonymous answered it (thanks again, Alex!) But now I'm wondering if that's the wrong approach. Unless I'm misunderstanding the answer, it seems to me that…
How to maintain two slightly different XAML for two projects?
I have two projects in my hands that are used in different scenarios. There are many XAML pages in these two projects, and some of page in one project is copied from another project(old version) and modified namespace, added some new things. Now I am…
How to set the Highlight brush to random color
I have this code below that sets the color to random, how to set the selected Listbox item to random?? private void button_Click(object sender, RoutedEventArgs e) { Brush brush = new SolidColorBrush(Color.FromRgb((byte)r.Next(1, 255), …
WPF - Auto width for FlowDocument's content
Hello, I'm having a hard time trying to make a RichTextBox's content in my app auto-sized. Specifically, I want the content inside my RichTextBox to be of automatic width (with a MaxWidth boundary), and Wrap when the width exceeds the available space. …
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…
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…
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 =…