正规365体育投注

Questions tagged [wpf]

正规365体育投注 Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How to have DataGrid in WPF within UserControl resize when outer window is resized?

In WPF, having sizing issues when hosting a Usercontrol containing a DataGrid on another form using a ContentControl. The intent is to have each of these columns fill up half of the grid at all ...
-2
votes
0answers
16 views

We can update UI using BackGroundWorker but not using another thread in WPF, why? [closed]

When we try to update UI from another thread then It gives the error "The calling thread cannot access this object because a different thread owns it" which is completely fine as WPF UI is own by UI ...
0
votes
0answers
9 views

Playing sounds in WPF app using MediaPlayer

I wanted to play sounds in WPF app using MediaPlayer. The problem is that I can't use the file directly from resources file like in SoundPlayer SoundPlayer player = new SoundPlayer(R.testSound); So ...
0
votes
0answers
8 views

CellEditingTemplate is not activated when new line is added to DataGrid in WPF

I tried to solve this problem several times. In a DataGrid I display data about financial transactions. One column is the Account class which is a navigation property (EF). I have a simple validation. ...
1
vote
1answer
24 views

If a mail arrives in Outlook, start another method (Outlook freezes) Interlop.Outlook C# WPF

I have the following method part of a WPF app: // This method check Emails public void CheckForEmails() { Outlook.Application application = null; Outlook.NameSpace nameSpace = null; if (...
0
votes
0answers
24 views

Rotating image in WPF not respecting screen size

I am currently having trouble when rotating an image in WPF, using RotateTransform and LayoutTransform. When an image, that has a pixel height size greater than the monitors height and is rotated at ...
0
votes
1answer
12 views

How can I clear the hover and selection style of ListView in Xamarin.WPF

Here is the XAML: <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" ...
-1
votes
1answer
30 views

WPF Entity Framework sum time grouped by a date

I have the following code and I get an error Cannot implicitly convert type 'string' to 'long' The error is coming by (i => i.TotalHours) What am I doing wrong? Or what do I have to change? ...
0
votes
3answers
41 views

WPF how to clear the texbox content in list view using MVVM

I am using below code and MVVM observable, but "Clear" button not clears the content of text boxes. What I need to do here? MainWindow.xaml <Grid> <Grid.RowDefinitions> <...
-2
votes
0answers
10 views

Making 2 pages access a function and making that function access the 2 pages [closed]

I want to make a messaging application to send messages using sockets, and I have Visual Studio(WPF) structure like this MainWindow(window) -MainWindowFrame (Frame) -MainMenu (page) ...
-1
votes
0answers
14 views

WPF Topmost Window on top of Vulkan

I'm not able to have a visible window on top of the Vulkan api. I'm trying to find any information regarding this issue but the only thing I found was that the discord overlay is not working with ...
-1
votes
0answers
16 views

How do I use ACE editor with my WPF C# application? [closed]

I want to use the ACE code editor in my project. How do I use it in a WPF C# application?
0
votes
1answer
21 views

WPF - How do I sort a DataGridTemplateColumn with a list of strings as content

I have the following code: <DataGrid ItemsSource="{Binding FilteredLectureViewModels}"> <DataGrid.Columns> <DataGridTextColumn Header="Name" Binding="{Binding ...
1
vote
1answer
20 views

WPF window properties only visible at runtime

I'm a XAML-beginner and also learning it by myself. So in the App.xaml I have the following Styles: <Application.Resources> <Style x:Key="Colors" TargetType="{x:Type Control}"> ...
-1
votes
1answer
43 views

How to properly use a binding in C#

I want to bind the background of a WPF Rectangle to the Brush property of another element. The initialization looks like this: MazeElement nextElement = new MazeElement(); nextElement.Position = new ...

15 30 50 per page
1
2 3 4 5
10433