RowValidationErrorTemplate as a static resources
hi ,i have: <DataGrid.RowValidationErrorTemplate> <ControlTemplate> <Grid Margin="0,-2,0,-2" ToolTip="{Binding RelativeSource={RelativeSource FindAncestor,…
C# .NET Core WPF Listbox items outside grid cell.
Hi, I want to have a listbox which contains two items a Checkbox and a WebBrowser control. I have the listbox appearing in the center cell on my WPF Window. However if there are more then one item then it exceeds the cell and drops to the cell…
Custom control does not receives the tab focus
I have custom control, which is templated like below Blockquote <DockPanel> <local:CustomControl1> <ToggleButton></ToggleButton> </local:CustomControl1> </DockPanel Blockquote Problem: When i press tab key…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
how to remve listview items gap
hi i'm trying to create report page (something like image2) and i'm trying to use ListView which allows me easily add/remove table rows and also allows to use table rows as custom control. the problem is listview items alway separated…
ItemControl background for child control
In my WPF application, I have added ItemControl and I set the background color in it. How do I set the parent background color only for child control without showing any background color in the parent? I have added a sample code and screen here. …
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
WPF UserControl and inheritance (how to?)
Hello I want create create my own class UserControl and add here all DependencyProperties (for separation and reuse) and then inherit this UserControl in U.C. with Xaml. for example: public class c_knob : UserControl // this control doesn't have xaml { …
New binding results to "Object reference not set to an instance of an object"
Hi I have a data source at MS SQL Server and an app which reads definition and data from db without tight integration. New tables and columns get created all the time. I need to change binding names after data is read from db and before it is…
scope resources to ResourceDictionary file
hi is it possible to make some value (ex: Double) scoped to it's ResourceDictionary file so it wouldn't be accessible elsewhere. thanks in advance
WPF label not updating value on the UI
Hi All, I am currently working on a C# WPF application. The UI contains a tree view with checkboxes. I need a label on the UI to update the number of checked checkboxes. However, even though i get the value and try to update the UI, the 'Property…
(C#) Show message before Shutdown when DVD is burning.
Hi I want to create a APP to Show message before Shutdown when DVD is burning. The situation is: 1, I use a third party APP to burn DVD. 2, I create a APP that can Shutdown OS and before Shutdown, I should check burn process is running or not.…
WPF Listview touch issue on window 10: "an event of another datatemplate is triggered while it may not happen"
This a MSDN question asked by Free_development, the source is WPF Listview touch issue on window 10: "an event of another datatemplate is triggered while it may not happen" Before we start:- (links will be provided later) Detailed…
Tree View Checkbox issue
Hi All, I am working on a WPF C# application which has a tree view. The tree view is populated by a set of model classes. Each element on the tree view except for the root node has a checkbox. The issue now is that when i check a checkbox, it is…
C# WPF How to bind a nested class to nested datagrid in “Datagrid Row-Details”?
How to bind data from nested classs to a nested datagrid? Why nested datagrid unable to read the class? what error i am doing? public class Student { public int Id { get; set; } public string Name { get; set; } public…
I have a problem with 'NoteViewer' in XML。
Dear sir, I managed to create a sample mentioned here with WPF App and Blank App (Universal Windows) http://musicengravingcontrols.com/en-US/Articles/Display?id=2 However, I have a problem here. Error Lists say "Unknown type…
Magnetic Usercontrol?
Hi, I am working on a WPF project where I will launch a new dialog inside a Window. User should be able to drag this dialog box to the edge of the window and if it is close enough, it should cling on to that side of the window like docking. User can…
Opening a New Window on a Button click - MVVM WPF
I am new to MVVM architecture, and I would like to keep the standard of MVVM without violating its rules. So I implemented an approach to open a new window on a button click using Services. I don't know if this is the right approach to do so. Here is my…
![](https://techprofile.blob.core.windows.net/images/485209778f164e4497e6f3466af8e0e8.png)
Performance delay occurs when creating new instance of my custom class on while loop
I have one custom popup wpf control ( Repeater Items control), In the repeater control, every time when press up/down creating im creating new instance of item control added to repeater item collection. My problem: I have one progress bar and my…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
[WPF - C7] - Problem with datagridview
Hi, I have a datagrid and when I drag fastly the vertical scroll bar to the bottom it shows like that If I click on "Install" (it's a datagrid cell with a button inside), it doesn't work and I get that If now I click on…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
VisualBrush template in xaml
hi i'm creating a lib of hatch patterns as VisualBrush as a resource dictionary, every things goes well so far, i have some questions , here is my code: <VisualBrush x:Key="VisualBrush.Hatch.Fill" …
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
Webview in wpf
I want to use my html page in webview in wpf application to load a video in webview from youtube but unable to load html page.
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)