781 questions with XAML-related tags

Sort by: Updated
2 answers

how specify bitmapimage path in directory

Hi All. In my WPF VB project I have Resources folder where I'm keeping Dictionary.XAML file and some images. How to specify BitmapImage in the Dictionary file to have ability call it in some places in the project? I tried like this: <BitmapImage…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-03T20:08:44.397+00:00
zleug 61 Reputation points
commented 2021-04-27T03:49:46.523+00:00
DaisyTian-1203 11,621 Reputation points
2 answers One of the answers was accepted by the question author.

Load only few items in ListView, but make all the items available to search in the CollectionView filter

I have a ListView that needs to display a ton of rows (think about 40,000+) and have a Filter implemented through a Textbox, where the user can search and find the item in the ListView. But I would like to display only a few rows (around 1000) in the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-22T16:50:08.28+00:00
Abhijith Harapanahalli 21 Reputation points
accepted 2021-04-23T17:32:15.167+00:00
Abhijith Harapanahalli 21 Reputation points
0 answers

[WPF] UI Virtualization

I decided to use UI virtualization, because there are a lot of items in the treeview. so I did like this, <TreeView x:Name="mainTree" VirtualizingStackPanel.IsVirtualizing="True" …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-21T04:57:30.78+00:00
나래 정 1 Reputation point
commented 2021-04-23T10:03:25.413+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

с# wpf calculator button C

Hey, I have been doing a calculator. Everything is operated. When I push buttons on the keyboard - it is working. But for button C which clear all I do not have a button from the keyboard. So when I want to clear all, I click on the screen this button C.…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,561 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-20T09:54:13.3+00:00
A A 61 Reputation points
commented 2021-04-22T01:59:52.007+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

WPF Browser application in .NET 5/6

Hi, We have a WPF Browser application(XBAP) created in .NET framework 4.x. We would like to migrate to .NET core/5/6. We would like to understand if Microsoft supports WPF Browser application in latest .NET core/5/6 versions. and also if not, what are…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-09T07:15:22.113+00:00
NeelAK 1 Reputation point
commented 2021-04-12T03:12:12.723+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

c# keyboard input (multiply and division) in WPF DataGrid

Hey, I am doing a simple calculator as an exercise and I am quite new in c#. How to input the multiply key and division but those which are not from NumPad? I consider this variant but I am bot sure how to use it properly: bool shift =…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,561 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-31T15:40:29.59+00:00
A A 61 Reputation points
commented 2021-04-08T19:44:18.227+00:00
A A 61 Reputation points
3 answers One of the answers was accepted by the question author.

How to combine three tables as a data source for Binding in a DataGrid?

I am creating an WPF app with MVVM. I have three tables as sources of my data which I need to display in the DataGrid through the ItemsSource="{Binding}". How and where do I combine this three tables so I could use the combined data set for my…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,561 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-04-08T02:55:54.677+00:00
Dmitriy 96 Reputation points
accepted 2021-04-08T14:16:31.507+00:00
Dmitriy 96 Reputation points
2 answers One of the answers was accepted by the question author.

How to plot a line graph in WPF MVVM atrchitecture

Hi , I wanted to plot one 2D graph,X axis time,Y axis some number. I tried using Polyline.But in mvvm architecture i am not able to bind the data.Can anyone help/suggest me a way to fix the problem.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-31T08:08:05.877+00:00
One07k-4914 101 Reputation points
commented 2021-04-01T12:48:44.41+00:00
One07k-4914 101 Reputation points
1 answer One of the answers was accepted by the question author.

Replace dot with comma while input in WPF DataGrid

I am doing a calculator. How to do a comma here? My CultureInfo is se-SE XAML: <Window x:Class="Calculator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,561 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-28T21:41:34.803+00:00
A A 61 Reputation points
commented 2021-03-31T13:26:16.75+00:00
A A 61 Reputation points
2 answers One of the answers was accepted by the question author.

XAML Design View Unhandled Exception

I came back to a project over the weekend that uses this open source library: https://github.com/judero01col/GMap.NET/ For some reason the GMapControl now causes the designviewer to crash with an unhandled exception: The .NET Core 3.0 runtime for…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,561 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-29T17:22:52+00:00
Dave Harmon Jr 96 Reputation points
accepted 2021-03-29T20:46:15.793+00:00
Dave Harmon Jr 96 Reputation points
0 answers

WPF - All UI's Disappear from stack when you RDP

If you have a WPF app, that has ShowInTaskbar set to false and you execute on RDP, when you X out of your RDP session and remote back in and try and activate the app to view the UI, all of the UI elements are gone from the UI stack. I have seen mention…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-29T14:19:13.347+00:00
Anonymous
0 answers

invoke all viewmodel propertychanged in MVVM

Hi I have Wpf App implemented MVVM, and all viewmodels exists in One viewmodel called MainViewModel, so how to invoke PropertyChanged for all Properties in ALL viewmodels in the MainViewModel? I know OnPropertyChanged(""); invokes all…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-26T09:33:02.953+00:00
essamce 621 Reputation points
commented 2021-03-29T02:44:30.507+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

generic type in xaml

Hi <DataTemplate DataType="{x:Type vm:MyViewModel1}"> <StackPanel DataContext="{Binding}"> <!--template--> </StackPanel> …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-27T15:30:20.897+00:00
essamce 621 Reputation points
commented 2021-03-28T18:15:16.733+00:00
essamce 621 Reputation points
2 answers One of the answers was accepted by the question author.

enum in xaml in MVVVM

hi <MenuItem Header="StepOne" Command="{Binding CurrentStepCmd}" CommandParameter="{x:Static data:Steps.StepOne}"/> <MenuItem Header="StepTwo" Command="{Binding CurrentStepCmd}" …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-24T20:41:01.053+00:00
essamce 621 Reputation points
accepted 2021-03-25T15:30:23.797+00:00
essamce 621 Reputation points
0 answers

WPF behavior when Windows OS is locked

What happens to WPF window when Windows OS is locked? How WPF behaves? What happens to rendering is it suspended or something else? How does the OS understand what needs to be resumed when we unlock windows user session?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-24T07:56:39.247+00:00
Andrey Nasonov 21 Reputation points
commented 2021-03-24T09:42:12.64+00:00
Andrey Nasonov 21 Reputation points
1 answer

In WPF which is better MVVM way of loading an userControl/customcontrol from a different library project into mainWindow XAML

there is seperate library for usercontrol which has to be loaded in another exe console project which is better approach for the same 1. using contentcontrol and set the content to the user control 2. refer the library in the mainwindow.xaxml and add the…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-23T06:33:12.753+00:00
Arathi Jinde 6 Reputation points
commented 2021-03-24T09:14:42.693+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

change ContentControl Content based on datacaontext

hi i'm trying to change ContentControl.Content at run time based on ContentControl.DataContext, so at run time i change ContentControl.DataContext Source property and i want the ContentControl.Content to be changed based on the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-22T09:46:12.273+00:00
essamce 621 Reputation points
accepted 2021-03-23T13:43:39.173+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

Binding Failures in WPF

I get endless binding failures: (: 'System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''.…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-21T17:15:06.477+00:00
SagMeinenNamen 96 Reputation points
accepted 2021-03-22T09:20:36.783+00:00
SagMeinenNamen 96 Reputation points
6 answers

Data insertions without my request EF6

My project was created on VS17, it is on the 4.6.1 framework. I use Entity Framework 6 in database first. We switched to VS19 and this is the first time I debugged the project on it. My pc crashed and showed me a blue screen while I was debugging. …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,705 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-16T08:58:45.467+00:00
Skernel 1 Reputation point
answered 2021-03-22T07:38:31.813+00:00
Skernel 1 Reputation point
0 answers

ClickOnce publish .net5 with .netstandard library fails

I have a WPF .net5 application which has 2 reference class library projects which are .netstandard and .netcore3.1. The application compiles and runs; however, Clickonce fails to publish it with the following unhelpful info: Publish has encountered an…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
781 questions
asked 2021-03-18T18:58:00.683+00:00
Avi Stokar 6 Reputation points
commented 2021-03-19T05:56:17.87+00:00
Jerry Cai-MSFT 986 Reputation points