Error when running XAML script with powershell
Hello, I am trying to integrate WPF and powershell and run a simple XAML script from powershell and I am getting an error: Here is the script:Add-Type -AssemblyName PresentationFramework [xml]$Form =...
View ArticleVisual Studio 2017 in Debugging mode
Hi All.When I run debugging in menu display me only Continue button don't displayStop button. These button only I have: How to fix it?Thanks.
View ArticleWPF toolkit dvc charts. Adding blocks near the Y axis
I am using WPF toolkit for displaying chart in my wpf project. I have this kind of chart.I want to add some blocks near the Y axis where double values display in the right part and blocks will be in...
View ArticleUnknown build error, 'Could not find file [File path]' when I delete a .xaml...
I had 3 XAML windows in my projet. The next, day, I delete one of them via the visual studio interface. However, when I try to compile my projet, it says 'Could not find the file [my xaml file]' after...
View ArticleLow quality picture produced by snapshot. WPF
The program below creates a snapshot with the content of the main window of the application itself. However the quality of the produced picture is not equivalent to the print screen program of windows...
View ArticleHow to get email from users?
Hello,I've made a wpf application which has a form with two field: "Subject and Description". I want, user can send feedback. How can i send email without credential (username and password) to my email?
View ArticlePlacing WPF toolkit Color Picker inside toolbar
Following XAML in WPF is displaying the dropdown button of the WPF Toolkit's Color Picker outside the toolbar as shown in the screenshot below.Question: How can I make the dropdown button display...
View ArticleHow to bind to DataGrid ComboBox Column List of List of string, one List by...
Hello I'm learning WPF I searched and searched on the Internet but didn't find the solution. I have a List o people. Each person has one or more phone numbers. I managed to bind all text attributes...
View ArticleUWP bugs vs WPF
Dear all,The similar piece of code on the User Interface triggered with propertychange in WPF and UWP seems to work differently.The test shows UI in WPF prevents the change due to the code behind "if"...
View ArticleUsing OpenGL in WPF/Winforms
Hi,Is there a way to use OpenGL in WPF/Winform?Regards,Ramakrishna
View ArticleVertical Scrollbar do not show in DataGrid
I designed a view, which shows some information in it's upper part, and has a DataGrid below.I want to ensure, that the upper part (in my sample the yellow rectangle) is always visible, and uses the...
View ArticleCreating a dynamic property for a UserControl using Dependency Properties
I am making a control that will show one color when a value is 0 and another color when a value is 1.I've created the dependency properties that hold the two colors (0 or 1) and the Value, but I'm not...
View ArticleTimer Control in WPF
Hi all, I tried to use the timer control in WPF but it does not to work. If i put a Messagebox.show command in the tick method of the timer control, it loops endlessly.However, when i used the same...
View Articlestatic resource cannot be resolved
I have joined to the team when previous developmer has left. I have put attention when I have looked at the XAML file that there are many resources from the Application Resources are not resolved by...
View ArticleBackground Color is not working
I have next Style<Style x:Key="BasicButton" TargetType="Button"><Setter Property="Margin" Value="20"></Setter><Setter Property="Height" Value="Auto"></Setter><Setter...
View ArticleBinding to Content's property!
I have a control in which the content is loaded at run time.It looks like this: <Style TargetType="{x:Type local:myControl}"> <Setter Property="Template">...
View ArticleUpdating a ListBox
HiUntil recently I've been using ListBoxes just fine in WinForms, but since transferring over to WPF it's apparent they work slightly differently to what I'm used to. I've been using them as an updates...
View ArticleSpecified font doesn't display correct in WPF application
Hi there, I encountered a problem in our WPF application, in which some Chinese characters are not correctly displayed. I have a control like following:<TextBlock Text="径" FontFamily="Arial"...
View ArticleDataGrid does not Contain Cells
int i, j; int tPart = gBinFile_Arry8.Length / 16; int tRemainder = gBinFile_Arry8.Length % 16; gRowsBytes = new byte[tPart + 1, 16]; byte[] tByteArry = new...
View ArticleWPF TextBox doesn't allow unicode character \u200c
In Persian language beside the space (\u0020), it's common that using semi-space or half-space character (\u200c) too. For example: "توسعه" plus \u200c plus "یافته" will be "توسعهیافته" and with...
View Article