wpf

  1. RuneHautekier

    CS0103: The name 'InitializeComponent' does not exist in the current context

    I'm creating a program using 1 wpf and multiple windows in that wpf project. Each window gets the message that the InitializeComponent() does not exists in current context but my program runs just fine. If it really didn't exist my program would get build errors. anyway i can fix this without...
  2. jamesnet214

    Tip Introducing a very informative tutorial video for learning WPF custom controls.

    Hello. I am James, a WPF developer from Korea and a Microsoft MVP currently active in the field. As a first-generation WPF developer, I share my expertise through various research activities. A notable open-source project of mine is a 'League of Legends' client created using WPF, which is...
  3. skanie

    Question How to set a custom font style for a button

    The bottom line is that everything works fine with the text, but the font is not transferred to the buttons and is default font after compilation app.xaml <Application.Resources> <Style x:Key="Hatten"> <Setter Property="TextElement.FontFamily"...
  4. yonett

    Simple Game with cells/grid?

    Hi all. I'm going to create a game using WPF. Unfortunately, I'm a newbie and I need some support. The game is similar to 1010! from GramGames, so for now I want to make a field that contains a cells, some kind of grid, and the rectangular figures that can be placed on this field. I made some...
  5. Meshka

    How Can I Enable text highlighting for WPF Rich Textbox even if it is in disabled mode?

    Hello! In my Application I wanted to design a WPF Rich Textbox that can allow Highlighting of Texts even when it is disabled but with every possible attempts, I was Unable to make it, Can Somebody help?
  6. A

    UnityContainerExtension in Mirosoft.DependencyInjection?

    Hi I am converting my code from unity to Mirosoft.DependencyInjection and I am facing some errors what is the alternate for UnityContainerExtension in Mirosoft.DependencyInjection as it is used in unity alternate for :- _container.RegisterType<TInterface, TImplementation>(name...
  7. A

    Question converter does not exist?

    Hi I have all these classes in converter still I am getting this error It would be really helpful if you can tell me the cause behind this error as I checked everything and it is correct .
  8. A

    Resolved lots Name not exists errors

    Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'CCspInformations' could not be found (are you missing a using directive or an assembly reference?) Severity Code Description Project File Line...
  9. S

    Resolved Help make this converter work, please.

    I have never used a converter until I tried today and I didn't get it right. public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { StopBits sb = (StopBits)value; string stops = string.Empty...
  10. S

    Responding to context menu.

    I have a context menu in a view that calls the correct handler, but the command parameter is not being passed. <TextBlock DockPanel.Dock="Left" Margin="0,3,1,0" VerticalAlignment="Center"> <TextBlock.ContextMenu> <ContextMenu>...
  11. S

    Question Emergency Services Project

    Hello everyone, I am developing a project for the management of emergency vehicles, as you can see from the structure visible in the image there is a server and five clients, with many accesses to the server, I have now thought to avoid giving the access to the database to dozens of users to use...
  12. W

    Resolved How do I adjust the window size to the monitor resolution?

    Hello, I am currently creating a recipe book - app. I have set the size of the MainWindow to 2560 x 1440. Now I would like to change the size of the MainWindow to a dynamic resolution in order to run my application on any scrrensize without cutting it off. So it automatically fills out the whole...
  13. TB007

    Question Why is my view not updating after Add/Delete operations on database?

    I have a fairly simple WPF app which primarily has 2 datagrid's in two different tabitem's. The datagrid in 1st tabitem has the itemssource PendingBills which is an ICollectionView and it shows some filtered data as per some basic logic The datagrid in 2nd tabitem has the itemssource AllBills...
  14. S

    Question Xaml layout problem

    Hi everyone, I'm making a window, the first image you see is the visual studio editor, the second the program started, but why the heck it destroys the whole layout .. I can't understand if it's a problem with the size of the objects , many are not even displayed 😭 <Window...
  15. D

    Best way to add items from a database to both a combobox and datagrid in WPF...

    Hi, I'm totally new to MVVM pattern in WPF and even after going through a lot of posts and tutorials on the internet still struggling to fully grasp it. Anyways, here is what I'm trying to do, I have a SQLite database table with multiple columns. When I run the WPF app I want to fill a datagrid...
  16. dqurve

    Question Display and Drawing custom shape on pdf file

    I've been researching how I could open and display a PDF in WPF, and once it's open, draw on top of it. I have 2 panels, 1 that simulates the Treeview of the pdfs that I am opening and the other panel is where it is displayed, something like the one in the image, obviously it does not have...
  17. M

    How to draw the user's attention only to some items of a ListBox

    I wonder whether it is possible to highlight or change the color of the text or place a symbol (for example "!") or something else to attract the user's attention only on some items of the rightmost ListBox in the attached GUI. The reason is to reduce the user's time devote to double-checking...
  18. M

    Erratic behavior of TextBox "TextChanged" event

    I have inserted in the GUI a TextBox. It must hold a number between 0 and 1 that represents a lower threshold for accepting a structure name guessed by the Dice coefficient. I have set a default but the user can edit the threshold. Therefore I have to check the number entered is between 0 and...
  19. M

    How to use a ComboBox as a dropdown menu

    I have to show a list of strings (Trial names) that are fetched from a PostgreSQL database. The number of strings is only known at runtime. I have implemented that through a ComboBox as follows: <ComboBox x:Name="TrialDB" Grid.Row="1" Grid.Column="1" MinWidth="100"...
  20. M

    ListBox_Selection_Changed triggered by clearing its content

    When the user changes his/her mind and selects another item (a CT scan) of a ListBox, I need to erase the content of another three ListBoxes. I do that through the following statements: StructSets.ItemsSource = null; StructSets.Items.Clear(); StructSets.Items.Refresh()...
Back
Top Bottom