23,989 questions with .NET-related tags

Sort by: Updated
1 answer

Need to restrict mouser hover effect on touch action

I have an custom calendar control, I have highlighted day cell on mouser over, I need to restrict the mouse hover color applied to day cell when perform touch action in calendar.Please provide any suggestions on this. c# wpf touch

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,676 questions
asked 2020-06-04T18:13:01.827+00:00
Magesh Sankar 31 Reputation points
commented 2020-06-05T08:18:15.027+00:00
Magesh Sankar 31 Reputation points
1 answer

XamlWriter image serialization isssue (InvalidOperationException: Property 'UriSource' or property 'StreamSource' must be set.)

Hi, i am using a ink canvas and added a image to it and then serialize using XamlWriter. Image img = new Image(); BitmapImage img = NImageHelper.GetBitmapImageFromString(ImageData, new Size(src.Width, src.Height)); img.Source = img; string Xml =…

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,676 questions
asked 2020-06-03T11:03:49.647+00:00
Naveen Kumar R 1 Reputation point
answered 2020-06-04T06:58:53.383+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

[WPF] Image get disappeared while zooming out image using DeltaManipulation event (pinching)

Hi All, My requirement is to do pinch zooming in WPF platform. For that, i have created simple POC sample according to my requirement and it can be reproduced. Please find the snippets below XAML: <Grid> <Image…

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,676 questions
asked 2020-06-02T06:50:11.17+00:00
Vignesh Ramesh 1 Reputation point
commented 2020-06-03T09:19:53.45+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

When I use WPF MediaElement loaded a https mp3 resource,and call Play(),error appeared

When I use WPF MediaElement loaded a https mp3 resource,and call Play(),error appeared (when load a http mp3 resource, nothing happened) test link: …

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,676 questions
asked 2020-06-03T01:38:24.963+00:00
Lakeside Knight 1 Reputation point
commented 2020-06-03T09:08:19.207+00:00
Lakeside Knight 1 Reputation point
1 answer

is there any touch event as like Mouse Wheel event

I have an custom items control , i need to scroll items control to certain distance based on touch scroll action. MouseWheel event continuous triggers based on mouse wheel distance value. I need same in Touch scroll, is there any event to do same like…

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,676 questions
asked 2020-06-02T13:34:59.24+00:00
Magesh Sankar 31 Reputation points
answered 2020-06-03T03:00:37.853+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Dependency property not raising when value assinged in view model

Hai I am trying to create a custom datagrid control with a property called SelectedItem and I am trying to assign some object to this property in my viewmodel. My codes are Custom control public object SelectedItem { …

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,676 questions
asked 2020-05-29T17:54:20.277+00:00
Babu R 81 Reputation points
answered 2020-06-02T12:02:20.867+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer One of the answers was accepted by the question author.

Is knowing Screen lock status from UWP app possible?

When my Universal Windows Platform(UWP) app is open and user locked the screen i want to know that screen is locked i.e., status of the screen lock. When the screen is locked the 'OnSuspending' method of App.xaml.cs will be fired. Now whatever the…

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,676 questions
asked 2020-04-17T07:12:59.173+00:00
Rahul K 51 Reputation points
accepted 2020-06-01T10:52:37.583+00:00
Rahul K 51 Reputation points
2 answers One of the answers was accepted by the question author.

How to append TabItem to TabControl in C# instead of XAML

I'm experimenting with WPF applications. Using the designer I created a TabControl with two TabItems that are set up in XAML. Then I wanted to see about creating a third TabItem in C# code and attaching it to the TabControl using code instead of 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,676 questions
asked 2020-05-29T23:24:48.527+00:00
Nicholas Piazza 531 Reputation points
accepted 2020-06-01T03:06:33.367+00:00
Nicholas Piazza 531 Reputation points
2 answers

Display DataGrid record value from one form in ComboBox in another form

Hi All. I have one form with DataGrid where each record row has button that open another form to edit the according record. Both form link to EF table. When I click the button in DataGrid the TextBoxes are display record values from DataGrid but…

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,676 questions
asked 2020-05-27T12:26:10.023+00:00
zleug 61 Reputation points
answered 2020-05-31T07:54:49.633+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
4 answers One of the answers was accepted by the question author.

Get TreeViewItem

I have a virtualized TreeView that I was building "manually" by creating a stack panel and using .Add for each item. I then had a very simple _TextInput event that was finding the TreeViewItem and passing it to these two clever routines that…

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,676 questions
asked 2020-05-22T04:44:17.777+00:00
Ken Krugh 116 Reputation points
accepted 2020-05-29T13:37:26.087+00:00
Ken Krugh 116 Reputation points
1 answer

Die Items-Sammlung muss vor dem Verwenden von ItemsSource leer sein.

Hallo! Ich möchte ein hierarchical TreeView aus einem hierarischen Datamodel erstellen. Die ItemsSource des TreeView binde ich an das Datamodel über die DataSource des Treeviews. &lt;TreeView ItemsSource=&#34;{Binding…

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,676 questions
asked 2020-05-28T14:58:38.607+00:00
Maik Smith 21 Reputation points
answered 2020-05-28T20:38:36.89+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
3 answers

WPF Core - Connection Strings inside App.config Not Working

Upon facing the said issue even followed the simple walkthrough at Connection Strings - EF Core but found out that while hardcoding the connectionstring as: protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { …

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,676 questions
asked 2020-03-28T19:56:14.063+00:00
Faraz Qureshi 116 Reputation points
answered 2020-05-28T18:57:28.93+00:00
Duane Arnold 3,216 Reputation points
0 answers

System.Windows.SplashScreen is not HDPI aware

System.Windows.SplashScreen is not HDPI aware.

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,676 questions
asked 2020-05-19T11:50:46.68+00:00
Markus Nißl 1 Reputation point
commented 2020-05-28T16:27:53.113+00:00
Markus Nißl 1 Reputation point
1 answer One of the answers was accepted by the question author.

Need to get child element(e.Source) on Touch Move event

I have an custom control and structure as Rectangles are placed inside the Canvas, I need to get the corresponding child element source(rectangle) while touch move(like touch selection) on the canvas in touch move event. The above scenario working fine…

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,676 questions
asked 2020-05-27T07:24:05.38+00:00
Magesh Sankar 31 Reputation points
accepted 2020-05-28T09:22:41.33+00:00
Magesh Sankar 31 Reputation points
1 answer

WPF Core App not working with SQLite database.

Recently i have create one app in WPF Core 3.1. Now i want to deployed that on Microsoft store. I have purchased partnership. Every thing is done. But my app is not working when i create windows app package. Same thing is working in WPF .Net framework.…

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,676 questions
asked 2020-05-25T17:59:12.84+00:00
SatnamSingh 1 Reputation point
answered 2020-05-27T20:19:14.98+00:00
Duane Arnold 3,216 Reputation points
2 answers One of the answers was accepted by the question author.

how to define source for wpf datagrid xaml DataGridComboBoxColumn

Hai I am trying to set source for datagrid custom control DataGridComboBoxColumn. I used code like this In viewmodel public ObservableCollection<MarKList> NameList { get; set; } public ViewModel() { NameList =new…

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,676 questions
asked 2020-05-26T19:12:48.48+00:00
Babu R 81 Reputation points
accepted 2020-05-27T17:36:01.373+00:00
Babu R 81 Reputation points
2 answers One of the answers was accepted by the question author.

add Window.Close() to window style

hi, i'm trying to define window style with Window.Hide() and inside, here is my code: <Style x:Key="Window.Style1" TargetType="{x:Type Window}"> <Setter…

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,676 questions
asked 2020-05-14T08:14:55.337+00:00
essamce 621 Reputation points
accepted 2020-05-27T13:51:03.883+00:00
essamce 621 Reputation points
0 answers

Directory.CreateDirectory() not working.

I have created one wpf core windows app. I have to create folder for save database file. But Directory.CreateDirectory() method is not working after publishing the app on local machine. No exception log in log file. Code is also working on visual sutdio.…

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,676 questions
asked 2020-05-26T04:56:47.567+00:00
SatnamSingh 1 Reputation point
commented 2020-05-27T05:13:54.797+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers One of the answers was accepted by the question author.

Visual Studio 2010 - How to fix C# WPF Tab Hover Color to NOT change color when Tab is set to background custom color?

In my Visual Studio 2010 C# WPF Application, I have 7 tabs with alternating colors which is what my client needs. They do not like the Hovering over the tab with a mouse and having the background color of the tab change even though the tab is not getting…

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,676 questions
asked 2020-05-22T22:08:12.05+00:00
BillNew 36 Reputation points
answered 2020-05-26T15:43:14.86+00:00
BillNew 36 Reputation points
1 answer

How to Create Setup/Installer exe file from Visual Studio C# (WPF) project

I have one WPF (C#) solution, which contain 4 projects (Please check the picture), and some icons. I want to create setup/installer exe file. How can I do that? I have tried Installshield and Advance Installer Project but its not even debugging. …

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,676 questions
asked 2020-03-22T15:11:47.43+00:00
Crown Trading International 1 Reputation point
commented 2020-05-25T01:51:39.58+00:00
Lex Li (Microsoft) 4,742 Reputation points Microsoft Employee