Questions tagged [mainwindow]

157 questions
-1
votes
1 answer

The pointless question. It can be deleted

Here is the link to the original post: Animating a WPF window width and height. Thanks for the given example. The code works great. But only on the main window. If i create a child window. ChildWnd cw = new ChildWnd(); cw.Owner = this; cw.Show(); I…
-1
votes
1 answer

null reference when declaring a class as a window resource

I have problems with accessibility to a class, from the MainWindow code behind. I have written this class: namespace WpfApp1.Management { public class BookManagement : INotifyPropertyChanged { ... which is referenced in MainWindow:
lolveley
  • 1,659
  • 2
  • 18
  • 34
-1
votes
1 answer

Call mainwindows from UserControl

I have a Window(mainwindows.xaml) where there's a label.Now,i've created a UserControl(Just a basic button)..On Window_load,i'm adding the UserControl in a canvas(in mainwindow) using this : Dim con as new…
Software Dev
  • 5,368
  • 5
  • 22
  • 45
-1
votes
3 answers

WPF MainWindow freezes even in Asynchronous state

What I'm trying to do is perform a heavy task triggered by a button event on the MainWindow, but still be able to drag the window freely. I've tried both the async/await pattern and creating new threads. However, threads will be nonblocking,…
Damian Radinoiu
  • 97
  • 2
  • 10
-1
votes
1 answer

using one form to show all form C#

So a few weeks ago I asked how to show all the forms in one screen and I got a great answer. The code that I use is in the link. And then I discovered that it doesn't show the datebase and the buttons won't work and it's because I'm using a…
hen shalom
  • 127
  • 1
  • 1
  • 9
-2
votes
1 answer

Should these names coincide in WPF application project?

I would like to know if this names (StartupUri="MainWindow.xaml" and MainWindow.xaml) should coincide. For example, if I'm going to rename MainWindow.xaml to e.g. MsgBox.xaml. Please look at pic and code sample. Solution explorer tree view App.xaml…
-4
votes
1 answer

Accessing a MinWindow function from another function outside MainWindow Qt

I have a Qt gui project and in the "mainwindow.cpp" file I have to define a function that I cannot declare under "mainwindow.h". But I want to call that function (func_sqrt) under MainWindow and show the result value of my func_sqrt in a label. For…
Soroor
  • 13
  • 5
1 2 3
10
11