781 questions with XAML-related tags

Sort by: Updated
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,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-11T16:24:24.937+00:00
CB 9 1 Reputation point
commented 2021-03-17T08:15:02.767+00:00
DaisyTian-1203 11,621 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,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-13T10:16:47.343+00:00
ComptonAlvaro 166 Reputation points
commented 2021-03-15T08:28:07.213+00:00
Hui Liu-MSFT 47,176 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,705 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,363 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-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,319 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,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-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,705 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,642 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-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,621 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,319 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.
781 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,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-04T10:12:38.017+00:00
Saddam Hussain Quraishi 1 Reputation point
commented 2021-03-04T12:44:27.67+00:00
Viorel 114K 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,561 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,334 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-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.
781 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,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-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,319 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-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,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-02-24T14:55:26.59+00:00
ComptonAlvaro 166 Reputation points
accepted 2021-02-26T11:23:53.677+00:00
ComptonAlvaro 166 Reputation points
2 answers One of the answers was accepted by the question author.

Serializing Microsoft.Toolkit.Mvvm ObservableRecipient/Observable Objects

I have a WPF application that is trying to follow the mvvm pattern. The model objects are held in ObservableCollections, as properties of the viewmodel. In previous use, I subclassed from the ObservableCollection, and inherited from that; thereby…

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-02-24T22:27:11.963+00:00
Andrew Azz 171 Reputation points
accepted 2021-02-26T10:33:54.867+00:00
Andrew Azz 171 Reputation points
1 answer One of the answers was accepted by the question author.

How can I center align text with hyperlinks in it?

Hi. How can I center align text with hyperlinks in it? I need to have the some text below, and with the XAML I got it's currently not centered. In fact, Horizontal Alignment does not seem to have any effect. Hyperlinks are working fine, however. 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,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-02-25T20:48:51.047+00:00
Stout 286 Reputation points
accepted 2021-02-25T23:45:02.993+00:00
Stout 286 Reputation points
0 answers

Memory increase when using RenderTargetBitmap on 32 bit png

We are encountering a strange problem when creating preview screenshots of UserControls within our application. If a user control contains a 32 bit png image, the memory used for the image creation is not released afterwards, while there is apparently no…

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-02-24T07:27:31.847+00:00
HerMei 1 Reputation point
commented 2021-02-25T07:12:17.087+00:00
HerMei 1 Reputation point
2 answers One of the answers was accepted by the question author.

Cannot add content to object of type 'Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost'

Hi Q&A, The error MC3028 'Cannot add content to object of type 'Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost'' appears when trying to add any control (in the conventional manner) to the StackPanel. I am new to xaml islands; however, there…

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-02-11T17:48:48.13+00:00
Andrew Azz 171 Reputation points
commented 2021-02-24T21:54:02.113+00:00
Andrew Azz 171 Reputation points
2 answers One of the answers was accepted by the question author.

Hide Tab From Tabbed Page XAML

Hi Guys, I have a Xamarin.Forms Project With a Navigation page witch contains a TabbedPage with 3 ContentPages Inside Descibed in a XAML File. But depending on a bool I have to hide or not a tab of the tabbedPage. I used the IsVIsible…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,319 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-02-24T09:47:15.937+00:00
Anonymous
accepted 2021-02-24T13:24:20.067+00:00
Anonymous
0 answers

Question Regarding WPF and BAML

As I know, WPF use BAML(Binary Application Markup Language) as a precompiled XAML. My question is.. BAML resource is finally injected to Application's dll/exe file? it cannot be separated from each other?

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-02-22T07:00:57.833+00:00
남 진우 21 Reputation points
commented 2021-02-24T09:12:53.067+00:00
DaisyTian-1203 11,621 Reputation points
1 answer

Convert.ToDateTime throws exception when language is set to Arabic(SaudiArebia)

Hi, I am changing UI language based on user selection as below Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.GetCultureInfo(ChangeLanguageTo); Thread.CurrentThread.CurrentUICulture =…

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-02-17T09:14:03.323+00:00
Jignesh Desai 101 Reputation points
commented 2021-02-22T01:33:07.917+00:00
Cheong00 3,471 Reputation points
2 answers

Dependency Property

how to use Dependency Property in WPF ? How to use it in MVVM ? a sudo code is much more helpfull than theory ? I have read lot of articals but non is given best explanation.

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-02-18T07:54:41.28+00:00
ramesh raja 21 Reputation points
answered 2021-02-19T05:47:38.867+00:00
Peter Fleischer (former MVP) 19,306 Reputation points