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
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 =…
[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…
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: …
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…
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 { …
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…
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. …
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…
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…
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. <TreeView ItemsSource="{Binding…
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) { …
System.Windows.SplashScreen is not HDPI aware
System.Windows.SplashScreen is not HDPI aware.
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…
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.…
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…
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…
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.…
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…
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. …