769 questions with XAML-related tags

Sort by: Updated
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,688 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.
769 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,688 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.
769 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,688 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.
769 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.
769 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 40,866 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,688 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.
769 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,688 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.
769 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,445 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,688 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.
769 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,445 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,130 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.
769 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
2 answers

WPF - How to set a dependency property of a control from a nested templated control's trigger

I have a subclassed ContentControl (MySpecialContentControl) and added to it a DP called "mySpecialDP". In this control's Style template, there are a few other controls in the templated "ResizeDecorator" (also subclassed controls),…

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,688 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.
769 questions
asked 2021-03-11T16:24:24.937+00:00
CB 9 1 Reputation point
commented 2021-03-17T08:15:02.767+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

How to use a trigger to set the width of user control according to the numer of items in ItemsControl?

I have a user control that I create to show months of a calendar. I would like to set the size of the user control of the month according to the number of items that I have, the number if items it is the numbers of calenders to show. This is the xaml if…

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,688 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.
769 questions
asked 2021-03-13T10:16:47.343+00:00
ComptonAlvaro 166 Reputation points
commented 2021-03-15T08:28:07.213+00:00
Hui Liu-MSFT 40,866 Reputation points Microsoft Vendor
1 answer

WPF application and remote control

Hello everybody, I have a very subtle problem. I have a WPF application that works perfectly in Desktop A and in Desktop B. The application runs with .NET 4.6 When I connect to Desktop B via remote desktop to Desktop A, the application works more or…

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,688 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,286 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.
769 questions
asked 2021-03-08T13:38:17.58+00:00
eric steph 1 Reputation point
answered 2021-03-09T10:22:41.337+00:00
Carl Fan 6,836 Reputation points
1 answer

How to bind ControlTemplate's child property to other element with xaml?

Here i have a control template which has label as its child. Now i want to get properties of that label like text or width. How to achieve this with xaml? <ControlTemplate> <Label x:Name="MyLabel" Text="This Is a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 questions
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,688 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.
769 questions
asked 2021-03-09T04:05:17.73+00:00
Anonymous
answered 2021-03-09T07:19:11.41+00:00
Mouad Cherkaoui 6 Reputation points
1 answer

VB.NET WPF Datagrid Cell Background color based on value.

VB.NET WPF Datagrid Cell Background color based on value. I need help with conditional formatting of individual cells within a datagrid based on the value of that cell. I can't seem to find the right answer elsewhere. Can someone provide examples? …

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,688 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,603 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.
769 questions
asked 2021-03-08T14:31:56.483+00:00
LeClair, Michael L. (Rumford) 21 Reputation points
answered 2021-03-09T06:16:47.557+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

How to get Label Width in Xaml?

I want to set TabWidth equal to the width of label + some padding. (I am new to xamarin.) I tried below line but it prints -1. TabWidth="{Binding Source={x:Reference TabLabel}, Path=WidthRequest}" (Here, tab width is property of tabview…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 questions
Universal Windows Platform (UWP)
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.
769 questions
asked 2021-03-08T06:14:07.75+00:00
Anonymous
accepted 2021-03-08T11:44:03.74+00:00
Anonymous
0 answers

Exception threw during launch of Apllication : "An exception was thrown during the initialization of'System.Windows.Data.ObjectDataProvider'."

Hi all, I am getting an exception when launch application as below mentioned. Exception: "An exception was thrown during the initialization of'System.Windows.Data.ObjectDataProvider'." I have use the ObjectDataProvider at XAML side inside 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,688 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.
769 questions
asked 2021-03-04T10:12:38.017+00:00
Saddam Hussain Quraishi 1 Reputation point
commented 2021-03-04T12:44:27.67+00:00
Viorel 112.9K Reputation points
1 answer One of the answers was accepted by the question author.

VSIX Project - Properties Tool window extension

Hello, There might be something wrong with the way I search for things but here is my problem. I'm looking for a way to implement a custom editing tool within the properties tool window in the Visual Studio editor. I've been lookig through several…

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,362 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,470 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.
769 questions
asked 2021-02-23T13:14:45.91+00:00
GROSBOIS TAO 106 Reputation points
accepted 2021-03-04T10:45:10.243+00:00
GROSBOIS TAO 106 Reputation points
0 answers

clickonce, VS 2017 and WPF application. crash issue

We have developed a WPF application on VS 2017 (.Net Framework 4.5), and deployed it into an IIS server using ClickOnce. Users access to application URL, and the executable package is deployed to their computer. Everything works, but sometimes users had…

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.
769 questions
asked 2021-02-26T15:29:19.4+00:00
mr anto 1 Reputation point
commented 2021-03-03T09:50:03.873+00:00
mr anto 1 Reputation point
1 answer One of the answers was accepted by the question author.

The 'ismouseover' attribute stays in 'enteractions/exitactions' mode , how do I change the focus of the button ? please note the image (GIF) that shows how it works.

Hi to all. First of all I am sorry for my language grammar because my first language is Persian (Iran). I created a button that has a series of effects and these effects work properly when the WPF window opens. But when the PreviewMouseLeftButtonUp…

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,362 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.
769 questions
asked 2021-02-19T00:17:53.243+00:00
رضا جافری 1,291 Reputation points
accepted 2021-02-28T21:19:46.827+00:00
رضا جافری 1,291 Reputation points
1 answer

how to create PDF from an image in xamarin?

Hi, Greetings! Can some one tell me how to create a pdf from an image or screenshot of the Xamarin application? I am having a billing page which I am taking a screenshot. But the same needs to be written into a new PDF. Regards, Mahesh B.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 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.
769 questions
asked 2021-02-27T11:33:25.873+00:00
Mahesh Balasubramanian 1 Reputation point
answered 2021-02-28T11:17:39.573+00:00
Ken Tucker 5,846 Reputation points
1 answer One of the answers was accepted by the question author.

When the SelectedItems attached property stops to work when I change the tab?

I have a view and a view model. I have a datagrid that when I select a row, a textbox shows the value of the row. This is just to show if the selectedItems it is fired. it works fine, but if I change to the other tab and back, it stops to work. I am…

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,688 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.
769 questions
asked 2021-02-24T14:55:26.59+00:00
ComptonAlvaro 166 Reputation points
accepted 2021-02-26T11:23:53.677+00:00
ComptonAlvaro 166 Reputation points