menu

Recent questions tagged wpf

1 vote
1 answer
Put text instead of images in the MenuItem? A normal MenuItem in wpf looks like this: {image } | {text} How do I insert text instead of a picture? I want it to be like this: 101Petrov How do you do that? ...
by crescent
asked Sep 21, 2021
1 vote
1 answer
image
Why does the Source definition in MediaElement crash the XAML constructor? The window uses the mp4 movie as the background. When the Source property is defined, the constructor crashes and an exception like this pops up: Please help me figure ...
by zhuravlevkk
asked Sep 20, 2021
2 votes
3 answers
image
What is the best way to develop an application for an information kiosk? Hello. There is a need to develop an application for an information kiosk like this Please help in choosing a framework/technology. I tried UWP, WPF, but given that th ...
by zhuravlevkk
asked Sep 19, 2021
1 vote
1 answer
How do I apply multiple styles to a DataGrid? How do I apply multiple styles to a DataGrid? I have this style <DataGrid.Columns> <DataGridTextColumn Header="ФИО" Binding="{Binding Name}" Wid ...
by youngpr
asked Sep 18, 2021
1 vote
2 answers
How do I set the design of a specific field in DataGrid? I have created a directory, there are such fields as name, position, number, etc. I would like to set the design in the form of color to a certain field of this column f ...
by youngpr
asked Apr 4, 2021
1 vote
2 answers
image
What's wrong with the code? click events should give you information about the machine. The parking class contains properties about the parking and the car And in the methodИдёт поиск и возвращает ...
by Vladlen234
asked Apr 4, 2021
3 votes
1 answer
How do I navigate between pages in Windows Presentation Foundation? In trying to find an answer to my question, the only thing I have achieved is the ability to go to a page in the way below: Main.Content = new Page(); However, I don't k ...
by MiiZZo
asked Apr 3, 2021
1 vote
1 answer
How to implement TreeView list with the ability to add elements to it independently? Here's the thing: I could have originally written a logical data model for TreeView and already inserted it here as an example, but it's not possible now, so let's just ...
by Naratzull
asked Apr 3, 2021
1 vote
1 answer
How to insert a vector image into a WPF window? I think I need to convert svg to xaml, I did it in inskape, but I don't know what to do next. Can you suggest the easiest and most understandable way to insert a vector ...
by TomYol
asked Apr 3, 2021
1 vote
1 answer
How do I make an import and export function in DataGrid? Wrote a directory, the idea is that if some unexpected situation happens, that I could restore the data from the table as a backup, specifying the path to the file which ...
by youngpr
asked Mar 30, 2021
1 vote
1 answer
image
How do I add a number to a TextBlock by pressing a button? How do I add a number to a TextBlock by pressing a button? and vice versa by pressing -1 to decrease the number in the TextBlock named "Points" ...
by Vladlen234
asked Mar 29, 2021
1 vote
1 answer
How do I move the word if it does not fit in the DataGrid? When I enter text in the DataGrid it goes endlessly across without text transposition, in a word does not know boundaries, how to fix it? <Grid> <Grid.Ro ...
by youngpr
asked Mar 29, 2021
1 vote
1 answer
How do I set the header on this table in the DataGrid? <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="50" /> </Grid.RowDefinitions> ...
by youngpr
asked Mar 29, 2021
1 vote
1 answer
image
Why does webbrowser not open a file with a Russian name? C project When I try to open a pdf file with a Russian name webBrowser.Navigate(fileFullName); error message pops up: "Cannot find " file:///C:/Users/Reader/AppData/Loca ...
by sur-pavel
asked Mar 26, 2021
1 vote
1 answer
How do I bind the visibility property of a listview element? I have a listview, in one column is a picture, how to make the picture visible or invisible depending on the condition? Please advise or give me an idea how to do this ...
by ilykir
asked Mar 25, 2021
1 vote
1 answer
Is it possible to set a header for this table in wpf? To have such headings as Name, Position and so on. Here's the code from Visual Studio 2019 <Grid> <Grid.RowDefinitions> <RowDefinition ...
by youngpr
asked Mar 25, 2021
2 votes
1 answer
How to fill ListView with SQLite? I want a table with a horizontal display ...
by youngpr
asked Mar 25, 2021
1 vote
2 answers
Why does the wpf application not start? I decided to make a directory using the example from metanite on wpf. No errors, but the application does not start, passed the debugger it gives an error: System.Windo ...
by youngpr
asked Mar 23, 2021
2 votes
2 answers
Why doesn't the data from ObservableCollection show up in ListView? Please help me, what am I doing wrong? I have the following xml file <phones> <phone> <id>1</id> <title>5685</title> ...
by ilykir
asked Mar 23, 2021
1 vote
2 answers
image
Blank Oracle response c Good hour! See this question, I make a connection to the database like Oracle. I send a query, I get an answer, but the answer somehow does not contain lines, but conta ...
by 6ETuK
asked Mar 22, 2021