Questions tagged [wpf]

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
7 views

Managed Debugging Assistant 'FatalExecutionEngineError' when moving tabcontrol

I'm writing a C# WPF app with a tab control within a tab control. On the main tab control (tcMain) there are four tab items: tiOne, tiTwo, tiThree and tiFour. On tiOne there is another tab control (...
0
votes
0answers
17 views

How to render an H.264 encoded video while constantly receiving video in bytes?

I am trying to understand how the following would work from a technical point of view... Im constantly receiving bytes (essentially streaming video) for a video that is H.264 encoded. The problem im ...
0
votes
0answers
7 views

WPF TextBox SpellCheck: get possible correct spell candidates even if the word is not underlined?

For example, with <TextBox Language="fr-FR" SpellCheck.IsEnabled="True"/> , it shows no red underlines for "Je suis la." But "la" is an error in this case; it should be "l". If I type, "Je ...
0
votes
0answers
5 views

WPF: Setting DataGrid FallBackValue to today's date

WPF DataGrid having ItemSource as ObservableCollection with [Date] cell bound to the DateTime Date property in each object of the collection. The Date property already defaults to DateTime.Now so the ...
0
votes
0answers
12 views

Particles JS like library [closed]

I saw this library Particles Js that's used to create particles effects on web pages, and I really like it, I want to use a similar one on my current WPF project . Is there any libraries like this or ...
0
votes
1answer
11 views

`ContextMenu` Command binding inside `ListView.ItemContainerStyle` does not work

I have a list view, where I wanted to Hide ContextMenuItems based on some value in the ListView Column. I could achieve this by moving ContextMenu to ListView.ItemContainerStyle. Now my problem is ...
0
votes
0answers
7 views

How do i bind an object's property from TemplateB in TemplateA

I have a window thats laid out similar to below. In ToolBarTemplate, I have a Button with a command and I need to pass the GridView.Items property as the command parameter. The red and green boxes ...
0
votes
0answers
9 views

WPF DataGrid not firing ColumnReordering, ColumnReordered and ColumnDisplayIndexChanged events

The title sums it up. I have a fully XAML-defined DataGrid, that never fires these events when any column is reordered. I'd like to know why. And what can i do to fix that behavior? Am i the only ...
1
vote
1answer
6 views

SignalR Core works on localhost but not on Azure App Service

I have a client program (WPF app on .Net 4.8) and a Web API (.Net Core 3.1). I'm trying to get the two to communicate over SignalR Core. It works perfectly when both are running locally on my PC (i.e. ...
0
votes
1answer
24 views

C#/WPF/Avalonia - On button click change text

I am using Avalonia 0.9.2. I am very new to it and I am unable to change text when button is pressed. Here is my MainWindow.xaml: <Window xmlns="https://github.com/avaloniaui" xmlns:x="...
0
votes
1answer
46 views

Waiting for a Task conditionally [duplicate]

For an async method that returns a Task<bool>, I need to take some actions when the method completes. The async method looks like this: async Task<bool> EntryExists(string entry) { ...
0
votes
0answers
13 views

How to change style for a single LayoutDocument?

Suppose I have this xaml: <avalonDock:DockingManager> <avalonDock:LayoutRoot> <avalonDock:LayoutPanel Orientation="Horizontal"> <avalonDock:...
0
votes
0answers
17 views

Using SelectedItem Value from Combobox to Populate Additional TextBoxes

I'm working on wpf application that contains a model for monetary currencies. Each currency consists of: String Name SortedDictionary Purchase Instruments SortedDictionary Sale Instruments Example of ...
0
votes
0answers
4 views

Grow-Only GridSplitter

I have a pretty simple requirement that I can't seem to find a solution for. Take a look at my sample XAML code: <Grid ShowGridLines="True" VerticalAlignment="Top" Margin="5"> <Grid....
-1
votes
0answers
14 views

Different FontSize with ViewBox WPF

I have faced a problem and tried the internet and threads here to find a solution but haven't found yet. Any help will be appreciated. I have a window that will appear on the secondary screen showing ...
-1
votes
1answer
23 views

What is the recommended way to raise property change for a desktop application using .Net Core in an MT environment

For the last 10 years, I was using WPF with the "Dispatcher" in order to ensure UI thread will receive notifications. I was using code like this in a base "Model" class: [...
0
votes
0answers
15 views

Draw a line, always front of all others Canvas.Children [duplicate]

I am making a 2D drawing on a Canvas. I draw a quantity of Shapes on it, but sometimes the shapes cross, or one is over another. I would like to be able to draw a line, saying that line is always ...
-1
votes
0answers
14 views

How to add a custom behaviour to wrap panel?

I have a problem with elements alignment in WPF. On the left you can see a Wrap Panel behaviour and on the right you can see how elements should be displayed. I am wondering if I am able to add an ...
0
votes
0answers
12 views

WPF WindowChrome.WindowChrome CornerRadius

I need a Splahscreen with round corners. So I used the atttached property WindowChrome.WindowChrome <WindowChrome CaptionHeight="600" CornerRadius="80" ...
-2
votes
0answers
17 views

i have create setup project install .exe cefsharp c# wpf don't run on my pc [duplicate]

Application: HotKeyword2.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException project work run on ...
1
vote
2answers
37 views

How to adjust DataGrid column with order numbers WPF?

I have such DataGrid In order to get order number automatically I added in DataGrid method LoadingRow such way .xalm ... <DataGrid ItemsSource="{Binding Path=GridItems}" ...
-1
votes
1answer
32 views

How to export Data into .csv file in linq c# via button click

i'm traying in a simple way to export the data of table (scores) from the database into .csv file. I want to do that via a button click. I use WPF and save data tabel in SQLite Note: The table is not ...
-2
votes
1answer
34 views

SignalR Self Hosted application in 2020

I started using SignalR in console/desktop application from its first release years ago and then switched to other duties. Now it seems that many things changed, and it is not possible anymore to ...
0
votes
0answers
33 views

WPF - Why window suddenly loses focus?

Scenario Consider the scenario: You start an application in WPF. Main window opens (non-modally) Window1 (owned by MainWindow) You change focus to some other window (say, Visual Studio) With other ...
0
votes
0answers
36 views

Why are the dynamic images not being displayed?

I create images dynamically, and insert column and row position values, but it doesn't show the pictures in the xaml. My code is: XAML: <UserControl x:Class="DesignPanelSimulator....
0
votes
0answers
27 views

Issue with create table with data from mysql to raport/pdf/word C#

How i can create table with data from mysql to raport or pdf or word document in C# with WPF? I try use iTextSharp but i cant crete table with my data from mysql. All tutorial and solutions witch i ...
0
votes
2answers
48 views

Get status of ICommand execute in WPF in order to update text on xaml

I have a view model which looks like: public sealed class MyViewModel: INotifyPropertyChanged { public bool ShowSuccess { get { return _success; } set { ...
0
votes
0answers
11 views

WPF Image source is being overriden [duplicate]

I have a simple UserControl which only contains one image, which source is always Resource/imagename.jpg Image properties are set to: Build Action Content, and Copy to output directory Copy always. ...
0
votes
0answers
38 views

Date range selector for WPF

Is there a control which allow select date range for WPF. It should look like this picture. Or what should I do to make that control?
-2
votes
1answer
37 views

Why XAML button can't invoke argumentless function

I have function in create.cs private void FillGrid() { ClearingEntities CE = new ClearingEntities(); var Accountss = CE.Accounts; DataGrid1.ItemsSource = Accountss....
-1
votes
1answer
19 views

WPF rebind datepicker control [closed]

In my page I have 2 datepicker's controls (from date - to date) when changing the from date I want to change the to date This is my code private void dpick_SelectedDateChanged(object sender, ...
-1
votes
1answer
29 views

wpf data trigger working only once during launch [closed]

My data trigger is not triggering when i change the value during run time. the value is setting only for the first time. i searched the other articles here. but no help. XAML code: <Style x:Key=...
0
votes
1answer
24 views

I have a crash when I want to show a “StackPanel” in “Storyboard” of a “DocPanel” in WPF

I am trying to show a menu page after clicking in the HomePage button but I have problem, I have a crash when I click on the "HomePage", and crash say that it can not find "HomePage" name. I have ...
-1
votes
1answer
21 views

How to access a user control in a given cell of XAML grid?

I have a XAML grid for my WPF project which is located inside a page called MonthPage.xaml with content as below <Page x:Class="Calander.Views.pages.MonthPage" xmlns="http://schemas....
0
votes
1answer
30 views

WPF Listbox control template not showing Listboxitem control template and ItemTemplate data template

When I use a ItemsControl inside my ListBox control template, my ListBoxItem control template is not applied. I have a custom ListBox control template along with a ListBoxItem control template ...
0
votes
1answer
27 views

How to play an embedded YouTube (using the Gecko browser) for the first time in c# through javascript?

I'm currently creating a WPF app and have a Gecko Browser navigated to an embedded youtube video (www.youtube.com/embed/YId_6G-YLpQ). So far I've managed to do the following through javascript ...
0
votes
1answer
37 views

WPF TabControl: a dictionary for tab headers

I've got a TabControl that is bound to its viewmodel Items property: <TabControl ItemsSource="{Binding Items}"/> This is the viewmodel class: public class ViewModel { public ...
0
votes
1answer
42 views

How to pass data between MainWindow and Usercontrols [closed]

Edit: I have recentered the question so that it focuses more on the problem of how to evaluate a method's output. I am a beginner in programming and I am building an application where I have a login ...
-1
votes
0answers
12 views

How to join points in a surface in Eyeshot?

I am creating a Points plot in Eyeshot like mentioned in the SelectPoints code sample. But I cannot join the points and create a bound surface with that. It will work even if I can join only the ...
-1
votes
0answers
22 views

Mahapps WPF how to show messagebox with icon

I have looked for a way to add an icon to the mahapps metro dialogs without getting any indication that this is possible, has anyone succeeded? And how can this be done?
0
votes
1answer
16 views

Customising a button without adding a border or other content

I have a WPF button <Button Style="{StaticResource BrandedButton}">Continue</Button> It's currently styled as follows: <Style x:Key="BrandedButton" TargetType="{x:Type Button}"> ...
-1
votes
0answers
27 views

Richtextbox - binding, misconceptions and solutions

So, this is just thinking "aloud", but hearing your opinions on this may help me a great deal. Currently I am trying to wrap my head around RichTextBoxes in the context of MVVM. As you know, they are ...
0
votes
0answers
27 views

How to write a relay command on Checkox changed event in DataGridCheckboxColumn in WPF MVVM pattern?

I have a data grid where It has a DataGridTemplateColumns, So my intention is to write a command to checkbox changed event in MVVM way, for that DataGridTemplateColumn doesn't give a suggestion like ...
0
votes
1answer
39 views

WPF - MVVM - XAML Binding problems

I'm doing a simple WPF application which has a first ObservableList of ViewModels: public OuterViewModel CurrentItem { get; set; } public ObservableCollection<OuterViewModel> ...
1
vote
1answer
31 views

Why I can't see the value of binding in my datagrid

I try to use with bindinig in Datagrid but it is not show me the values that is my code : in the xaml: <Grid DataContext="ListFromFolderToFileTransferViewModel"> <DataGrid Name="...
1
vote
1answer
67 views

Cannot implicitly convert type List<Class> to List<OtherClass> error

I have an IEnumerable of OrgChartManager objects and want to convert it to a List in my working Class as a property as below. But I get this error: Cannot implicitly convert type 'System....
0
votes
0answers
25 views

WPF Devexpress XPO Binding joined multiple XPCollections or XPObjects to XtraReport datasource at runtime

I have a trouble with binding xtrareport to my multiple tables in db with help of XPO. But I have code below which works fine: public BindingSource GenerateDataSource(int inv_id) { ...
0
votes
0answers
24 views

Binding Combobox items to an Access database with DataSet xsd

I'm trying to populate a combobox with items taken from an MS Access database in a Dataset.xsd: Here's my code behind: private void GetData() { using (DB_TestDataSet dc = new ...
0
votes
1answer
17 views

Problem Binding Data from Database to a WPF DatagridTemplateColumn (Template Column has a Combobox)

I am trying to bind data from a database to a datagrid in WPF using Caliburn.Micro. Caliburn works great with standard text columns but when I try binding the data to a Template Column the data doesnt ...
0
votes
0answers
18 views

How can I relocate a control inside another control by dragging it somewhere?

I have a ListView with Images that I can drag into a Canvas. They spawn inside the Canvas and I need to change coordinates of Images inside the Canvas by Dragging, but as I understand, DragDrop class ...