Questions tagged as 'wpf'

1
answer

How to open a new window only if it is not already open?

The correct question would be: How to open only one instance of this window. About the program is a WPF and the language is VB.NET Currently the following code does not serve me, because if the user clicks 10 times the button will open 10...
asked by 21.09.2018 / 20:13
1
answer

How to Bind the Visibility of a Label to the Size of a List

I have a list of objects of type "BasicVariable", a% of them%, and I need the Graphic Interface to show a Label when the number of items in this collection exceeds 1000, I think the binding is correct but I did not get one how the counter and UI...
asked by 31.07.2018 / 18:38
2
answers

How to call method of a parent window when another daughter window is closed with WPF

Hello, I'm starting to work with WPF and my situation is as follows: I have a MainWindow screen, which persists the application. MainWindow calls a new RuleDetailsDialog screen on a given function. As soon as a process that closes the Ru...
asked by 11.07.2018 / 13:58
1
answer

WPF C # Current position of MDIChild?

I have implemented a MDIParent with 3 children. I want to know where the children are but I do not have access to any property, since: child.position is always (0,0). I have: <mdi:MdiContainer Name="mdiParent"/> Co...
asked by 28.08.2018 / 16:09
2
answers

Change DataGrid Color

Galera,    I need some help, I already researched but did not find,    I would like to know how to change the color of the selected item in the DataGrid.    Example: When I have a row in the datagrid and click on it it is selected with the blue...
asked by 27.06.2018 / 16:05
1
answer

Menu Icon change color by hovering the mouse on top WPF C #

Hello, I'm trying to make when changing the mouse to change the color. The Menu Icon should be white as the letter (header) as shown in the image below: Mymenucodeis<MenuStyle="{DynamicResource StandardClienteMenu}" VerticalAlignment="To...
asked by 05.09.2018 / 15:12
1
answer

What is the difference between Table and Matrix and List in Report View?

So far in my reports I have been using tables and binding my datasets to those. But today I had to use a List to create a card (I'm still trying to understand how it works). When to use Table, Matrix and List and their differences?...
asked by 16.02.2018 / 12:27
1
answer

How to change the color of the icon inside a Rectangle - WPF

I need to change the color of the button icon to "White", but I do not know how to do it. I'm using a Mahapss Icon Pack ... I've already seen doing this on the net using the ContentControl from GRID, but being inside a rectangle, I have no idea...
asked by 04.01.2018 / 14:02
1
answer

Data in duplicate datagrid

I'm developing an application in WPF and when I populate the datagrid via code it returns the duplicate value. I'm using Entity Framework. XAMLCode<DataGridx:Name="dataLocal" Margin="10,111,11,10" IsReadOnly="True" SelectionMode="Single"&...
asked by 03.02.2018 / 01:57
1
answer

How to clean textbox from another Window? - WPF [duplicate]

Follow the code below: MainWindow mainwindow = new MainWindow(); mainwindow.listbox1.Items.Clear(); // tentativa //mainwindow.listbox1.ItemsSource = null; I try to clean listbox from another form ... nothing happens. Any soluti...
asked by 14.12.2017 / 03:06