WPF - C# Desktop App - Is there a way to call a Windows form from C# WPF?
Hello, Is there a way to call a Windows form from C#WPF? The idea is to create a separate message box. Or a WPF message box. With best regards Markus
WPF getting started
I am new to WPF, i have a requirement at client to do some WPF. Can someone please advise how do I get started in WPF ? I have knowledge on c#. Please provide some links or videos that may help. Thank you in advance
WPF - C# Desktop App - good way for layout, xaml
Hello, sometimes everything is moved, sometimes inexplicably. Is there a short instruction somewhere, when to take what and how. TextBlock, Stackpanel. I created this dialog, all at once there were rows and columns in it, then the layout was…
WPF - C# Desktop App - Condition, if textbox integer value is 0 than background red and content should be empty.
Hello, the goal is. If the value == 0 then backgroundcolor red and empty not zero. Can I use a converter to handle two conditions? My idea was via Trigger, but it is not work. Why?
How can I access a vm object declared in main window in Wpf Page
Hai I have declared an object of my view model in my main window. I want to know how to access this in my xaml my code is Main window private void Button_Click(object sender, RoutedEventArgs e) { ViewModel VM =…
WPF - C# Desktop App - set focus, how?
Hello, How can I get the focus to move to the text field xy after an event? How can I achieve that after an event the focus is automatically set on button A or button B? In case of success, move on or in case of error MessageBox and stay in the…
Printing in C# WPF
I am writing a program in C# WPF so I am hoping this is the correct forum. I am having difficulty with xps creation. Please refer to the following link: …
WPF - C# Desktop App bigger message box for touch screen
Hello, Is there a way, maybe a class, library where the message box can be displayed larger. Background is a touch screen operation?
I use hwndhost to embed a WPF - window. When the allowstransparency of the embedded window is "true", it will not be displayed under windows7
I use hwndhost to embed a window. When the allowstransparency of the window is "true", it will not be displayed under windows7. If the theme of windows7 is set to windows basic, the embedded window can be realized, but the display position will…
DataGrid bindings to a list of complex dataTypes WPF(xaml)
Hello, I have class contains List as Property that contains another class object as its property. Please find the class structure below which i have to bind to a datagrid/any control in wpf. public class EmployeeDetails { /// <summary> ///…
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),…
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…
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…
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…
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?