780 questions with XAML-related tags

Sort by: Updated
3 answers

WPF: rotate a Model3D about the Viewport3D center

I have a WPF app where different Model3Ds are arranged in a Model3DGroup and displayed in a Viewport3D. I may pan, zoom in / out the displayed models. Everything is handled programmatically in the .Net app. The only Xaml code is to define a UserControl…

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,704 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.
780 questions
asked 2021-01-05T14:29:58.757+00:00
Claude Gosselin 1 Reputation point
commented 2021-01-11T05:19:18.257+00:00
DaisyTian-1203 11,621 Reputation points
1 answer

How can I access resources from external assembly?

I don't seem to be able to access remote resources from an external assembly. The following line in MainWindow.xaml isn't working, no background color is getting displayed: <StackPanel Grid.Row="0" Background="{DynamicResource…

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,704 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.
780 questions
asked 2021-01-10T15:57:42.65+00:00
AxD 661 Reputation points
answered 2021-01-11T04:48:00.853+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

Question about performance in Wpf

Hi, I have a general question about the right way to bind a class to a listview or list box or any other control in wpf. Lets say that I have a textbox which the width is binded with the property of my class "my width" <Textbox…

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.
780 questions
asked 2020-12-31T21:09:15.843+00:00
Zacharias Karasavvas 21 Reputation points
commented 2021-01-02T15:06:28.437+00:00
Zacharias Karasavvas 21 Reputation points
0 answers

WPF Listview

Hi, I have a WPF ListView, the objects of which are bound to a view model and I use a CollectionViewSource to group them based on their properties - the CollectionViewSource dynamically creates expanders and groups the items in the ListView - this…

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,704 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.
780 questions
asked 2020-12-29T12:54:13.513+00:00
Kevin Bell 21 Reputation points
commented 2020-12-30T10:32:12.65+00:00
Kevin Bell 21 Reputation points
2 answers One of the answers was accepted by the question author.

WPF ListView change arrow icon

Hi, I've created an app in Visual Studio in C# using a WPF page - all works fine. The app displays a list view which has several sub lists (looks very similar to an Expander), I don't like the large arrow in circle icon and would like to change it to…

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,704 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.
780 questions
asked 2020-12-25T21:24:00.58+00:00
Kevin Bell 21 Reputation points
accepted 2020-12-29T12:29:30.81+00:00
Kevin Bell 21 Reputation points
1 answer

How to store and retrieve image using MVVM pattern in WPF C#

Please I am looking for a solid means to save and retrieve image to/fro SQL server database. I am using MVVM pattern in WPF. I have gone through everything I saw on Google concerning this issue, all I'm seeing is Image control being tied directly to code…

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,704 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,167 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,550 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.
780 questions
asked 2020-12-21T00:11:48.31+00:00
DPlug 41 Reputation points
commented 2020-12-24T03:10:12.177+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

INotifyDataErrorInfo implementation for several values, check that there are no errors in Dictionary (WPF MVVM)

I have been trying to implement INotifyDataErrorInfo and everything seems to be working except SaveSettings() and especially bool HasErrors. Can somebody please tell me why and how to fix it? I mean that SaveSettings is always triggered, even if there…

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,704 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,550 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.
780 questions
asked 2020-12-22T22:08:25.157+00:00
mrw 201 Reputation points
accepted 2020-12-23T12:45:37.257+00:00
mrw 201 Reputation points
3 answers One of the answers was accepted by the question author.

How can I bind text and have it format itself on the UI?

Hi. How can I bind text and have it format itself on the UI? For example, suppose the string in the ViewModel is this: myDependencyProperty = @"<b>Title: </b>My title\n<b>Description: </b>This is my…

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,704 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.
780 questions
asked 2020-12-18T19:54:13.457+00:00
Stout 286 Reputation points
answered 2020-12-21T16:49:21.5+00:00
Stout 286 Reputation points
0 answers

Azure work well with the new ghostly app?

Does the new ghostly app work well with Azure? And if so what's the best platform to integration with?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,896 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.
780 questions
asked 2020-12-18T14:41:32.763+00:00
BERT ANTHONY ROCHESTER 1 Reputation point
commented 2020-12-21T04:48:13.223+00:00
Pramod Valavala 20,606 Reputation points Microsoft Employee
0 answers

Accessing property from multiple Classes (MVVM WPF application)

I have been trying to learn C# by creating a small app. Recently I have been trying to implement SessionEvent for screen lock/unlock to pause the timer. I am having a problem understanding how to access timer from App.xaml.cs. Currently while locking 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,704 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,550 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.
780 questions
asked 2020-12-16T14:23:49.5+00:00
mrw 201 Reputation points
commented 2020-12-18T02:27:16.837+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

How to make a Home-button in UserControl switch a page in MainWindow frame without using mvvm?

Hi there! I am new in wpf and c#. I have now used 2 days on searching the web without any solutions I could implement in a satisfying way. Either I can't make the solutions work or it's the annoying MVVM pattern. At my current learning step it's just…

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,704 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,550 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.
780 questions
asked 2020-12-15T21:10:14.313+00:00
Mathex 21 Reputation points
commented 2020-12-16T23:16:36.693+00:00
Mathex 21 Reputation points
1 answer

WPF rendering a Viewport3D to RenterTargetBitmap changes RGB values

I'm trying to render a Viewport3D with textured triangles to a RenderTargerBitmap. But the colors in the bitmap are different than in the viewport: Right side: an actual in-app Viewport3D. Left side: the RenderTargetBitmap shown in a…

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.
780 questions
asked 2020-12-05T10:04:47.937+00:00
Thomas V 6 Reputation points
answered 2020-12-05T11:21:23.167+00:00
Thomas V 6 Reputation points
1 answer One of the answers was accepted by the question author.

WPF MVVM how to show data from many tables in one view

Hi, I think this is very common scenario when you have relational database and classes witch represent each table as class (as is model) public class Role : AppEntityBase { public int RoleId { get; set; } public string…

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,704 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.
780 questions
asked 2020-12-04T17:47:30.4+00:00
Igor Boras 41 Reputation points
commented 2020-12-04T20:23:22.317+00:00
Igor Boras 41 Reputation points
2 answers One of the answers was accepted by the question author.

WPF MVVM relational database with foreign keys sample

Hi what is the best practice to work with foreign keys? How to design object class? Should I use valueConverter to switch between RoleId to RoleName

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,704 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.
780 questions
asked 2020-12-02T08:05:03.287+00:00
Igor Boras 41 Reputation points
commented 2020-12-04T14:01:42.483+00:00
Igor Boras 41 Reputation points
1 answer One of the answers was accepted by the question author.

Access IValueConverter From ResourceDictionary

I have Canvas that is icon: Dictionary1.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" …

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,704 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.
780 questions
asked 2020-12-03T08:48:49.303+00:00
mrw 201 Reputation points
accepted 2020-12-04T09:34:02.72+00:00
mrw 201 Reputation points
2 answers One of the answers was accepted by the question author.

Accessing string in ViewModel from IValueConverter

I am trying to create a converter that will take string property from ViewModel, compare it to time passed (time is inputted to TextBox HoursLimitProp in a format 07:30) and then change Label color accordingly. I know this is bad idea to do this way…

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,704 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.
780 questions
asked 2020-12-01T21:20:39.807+00:00
mrw 201 Reputation points
commented 2020-12-03T09:54:37.043+00:00
mrw 201 Reputation points
0 answers

How to display 3mf model in ViewPort loaded from file?

Hello, I am currently designing a WPF app. I have a requirement to display 3mf models on ViewPort 3D. I currently stream the 3mf's xml file and display only vertex and triangles. I am trying to migrate UWP apis to use Windows.Graphics.Printing3D. Is…

Universal Windows Platform (UWP)
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,704 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.
780 questions
asked 2020-11-24T04:38:44.123+00:00
Shreyas Pattabiraman 1 Reputation point
commented 2020-12-03T03:08:56.597+00:00
Shreyas Pattabiraman 1 Reputation point
0 answers

Wpf: how to equally distribute the available height among 2 expander controls in grid without any gray area

I have a Floating SplitPane, in which there are 3 expanders. The first expander has max of 3 rows of controls (label and textboxes) to display and needs to be displayed without a scroll. And second and third expanders have one DataGrid each and 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,704 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.
780 questions
asked 2020-11-27T09:10:21.923+00:00
Pavan Kumar M 1 Reputation point
commented 2020-11-30T03:01:29.737+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

I can't get my custom click event to work.

Hello. I have this class written. public class MyButtonSimple : Button { // Create a custom routed event by first registering a RoutedEventID // This event uses the bubbling routing strategy public static readonly RoutedEvent TapEvent =…

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,704 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,550 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.
780 questions
asked 2020-11-25T02:23:20.583+00:00
A N 81 Reputation points
accepted 2020-11-26T03:28:32.47+00:00
A N 81 Reputation points
1 answer

WPF Datagrid: Checkbox and Button stackpanel

Hello, I coded in xaml.cs my datagrid with a single column of checkbox and button using factory and stackpanel. Right now I want to detect what column and row they are and if the checkbox ischecked = true. My column headers on datagrid are dynamic based…

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,704 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.
780 questions
asked 2020-11-25T02:40:44.903+00:00
Christopher 1 Reputation point
answered 2020-11-25T12:28:04.87+00:00
Peter Fleischer (former MVP) 19,306 Reputation points