wpf

  1. 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"...
  2. 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...
  3. 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?
  4. 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...
  5. 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 .
  6. 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...
  7. 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...
  8. 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>...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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"...
  18. 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()...
  19. M

    Resolved ListBox whose items can be edited / discarded /accepted

    I would appreciate some help in implementing the following with WPF. I need to have a ListBox displaying a list of strings but some may be empty strings. Each ListBox item can be edited, discarded, or accepted. Therefore, besides the editable ListBox I need some other type of WPF control that...
  20. M

    Resolved how to best use "public"read-write properties of event-driven applications

    I am trying to convert a working Console UI application into a WPF one. I use an s/w library from Varian Medical Systems, called Velocity API, whose documentation is scarce and somewhat misleading. Velocity API hardcoded logic is built on context. My Console UI application calls several...
Back
Top Bottom