Adding encrypted file into a database and retrieving them
Hi, I'm trying to write an encrypted XML file into a database table and also read from it. I use Microsoft SQL server management studio 18 and have a very basic database with a table containing XML digital signature file in one of its columns as…
WPF - C# Desktop App - DateGrid - IValueConverter
Hello, The converter is pretty powerful and I can do a lot with it. Perhaps this mechanism is an advantage over WinForms. When and why do I need this line? That would be the question of this thread. [ValueConversion(typeof(string),…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
WPF - C# Desktop App - DateGrid - TextAlignment Center for the cells
Hello, <DataGrid Grid.Column="1" ItemsSource="{Binding View2}" IsReadOnly="True" AutoGenerateColumns="False" Margin="54,669,429,22"…
How to set DataGrid styles when using DataTable as data resources
Hi, guys. When I use ObservableCollection<T> as the data resource for DataGrid, I need to bind each column with a field and can set styles for the column as well. However, when use DataTable as the data resource for DataGrid, I just need to bind…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
wpf RadioButton control
hello, I have a ****.png picture. I want to turn the content into pictures. Who can help me.... thanks c# code : <RadioButton GroupName="Group_1" Name="Option_1" Content="Test" Visibility="Visible"…
WPF - C# Desktop App - Ellipse - background depend from state
Hello, <Ellipse Grid.Column="1" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Margin="926,664,0,0" Stroke="Black" VerticalAlignment="Top" Width="100"/> I…
Log Assembly for C#
Hello, I need a tool that creates log files for me without blocking the application should be done in parallel. Furthermore I need to be able to store the log file in this format. <NameOfApplication><YYYY-MM-dd>.log If the size…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
WPF binding with List of object but index as row and columns
Hallo Ok we are new to WPF and realised the old DataTable with link as datasource to a datagridView is not possible. So populated our data in a List of Objects but the objects can be variable based on data we recieve from SQL, the dataGrid needs…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
AxMSComctlib and MSComctlLib Evolution
Hello, thanks for reading! I am upgrading a old app from Vb6 to VB.net (WPF application), and I would like to know what became the AxMSComctllib and MScomctlLib, did they had an upgrade and changed name? did they got integrated in another wider…
How to make WPF TabControl‘s first TabItem on the left and others on the right?
How to make WPF TabControl‘s first TabItem on the left and others on the right?
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Ensuring Windows Server 2016/2019 Is Properly Configured to Accept Requests from an FTP Client
I have a C# program that makes it easy to transfer files using the ftp protocol. It works fine on Server A. But on Server B it throws an exception after the data channel is "connected," at the point where it tries to "connect" the…
![](https://techprofile.blob.core.windows.net/images/Wh4QVCU4pkW01CCLaPpFPw.png?8D828C)
Binding MVVM backcolor textbox
Hello, I need this feature. Is the textbox empty the backcolor should be 'light red' Is the textbox string length > 0 empty the backcolor should be 'light green' Please help me, how I can solve it. Thanks a lot.
C# WPF Access from ViewModel to MainWindow
Hello, I have this. public class ViewModel : INotifyPropertyChanged { The goal is to get access from ViewModel to MainWindow. So I can change the color and so one. public partial class MainWindow : Window { public MainWindow() …
How I can call a Init() function from my ViewModel?
Hello, How I can call a Init() function from my ViewModel? <Grid DataContext="{StaticResource vm}"> What is different with StaticResource and without? I need without static, then the list works not. public partial…
How I can insert the Window Close Event in my ViewModel?
Hello, How I can insert the Close Event in my ViewModel? How I can access for all classes for my own Logger? public partial class MainWindow : Window { //public Logger Log; public MainWindow() { …
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
Convert Wpf form to Pdf report
Dear Sirs: We have a WPF application which display a complex form for a medical data record. User can also click a button to convert the form into the Pdf format for further reading. The current implementation is a two steps conversion which is to to…
C# WPF ViewModel change background color for textbox
<TextBox Name="txtSlot" Text="{Binding Path=GebindeSlot, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="33" Margin="22,376,183,232" Grid.Column="3" /> Hello, How can I…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
How to customize the appearance of TextBox to underline?
How to customize the appearance of TextBox to underline?
Own ViewModel - Threads - Dispatcher
Hello, I use my own ViewModel with properties that display the data via binding. If the properties are set by a thread (Socket Client). Can this lead to problems? Would I have to use Dispatchers, if so, how do I do it correctly? Thanks for response. …
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Adorner in textbox
I have created an adornerlayer over wpf textbox. This code block will return the bounds of the text in textbox, i have written this block in onrender method of a adorner class. Rect startPosition =…