Hi i have a wpf button template saved in App.xaml. Inside this button template, there is an image control. I want to create a new button with this template and add an image source to it at runtime.
...

I'm currently working on a Windows 8.1 App. I want to set the Icon on an AppBarButton. There are a lot of Icons and i would like have an overview. Is there any or do i have to make one by myself? I ...

I am using a ObservableCollection defined in my MainWindow classs of a simple WPF application. For some reason the list updates (I can see this when debugging), however the UI does not update.
Now, ...

I am trying to change the background of a ListViewItem from an attached property. The following code works until the ListViewItem is scrolled out of the displayed ListView. The error is that the timer ...

WPF never ended up supporting XAML 2009, which is a shame because it added some useful extensions, such as generic type parameters and complex x:Key values.
UWP seems to have built upon WPF. Does it, ...

I have problems stretching grid to fit listViewItem. Although I set HorizontalContentAlignment to stretch, for some reason it always leaves blank space on each side. Here is an image of my app, purple ...

I need to play audio and video in windows app where I Get the Url from networkcall and I need to add Url to Source.
I tried in this way, But no video is played or audio is played.
Someone help me in ...

I'm planning to port my WP8.1 app to Windows 10 as a Universal app.
I saw that MS added the ability to create a single Universal project, and to create different family-specific folders that contain ...

I have a custom control I made, that contains few System.Windows.Shapes.Path s and a Textblock in a Canvas container. When I use this control, whenever I click it, it's parent (which also happends to ...

I've been working with MahApps and wanted to add a Flyout window. I assumed incorrectly that the logic was included with the control to detect when it should be opened closed.
What are some ways the ...

I have a DataGrid in WPF. It binds using MVVM to a ViewModel. It works fine with just DataGridTextColumns that display information regarding my List of objects that the DataGrid binds to. Clicking a ...

In my .xaml I have a bunch of TextBox, which I want to tag with various strings (indicating their "subclass"). From my C# I want to be able to iterate over all TextBox and retrieve the value of the ...

First of all I want to mention that I'm newbie to c#. So than I want to add style to my array of buttons but since they're not created before the program runs I can't use xaml so I need to implement ...

First of all, a small warning - we are talking Xamarin here and, unfortunately, not WPF. I am converting existing code based pages into XAML representation with cross-platform Xamarin Forms. I have a ...