Validating mandatory fields in a WPF app
Hello,I'm working on a C#/WPF application in which I've multiple views(say A,B,C etc.) and corresponding viewmodels.Developers will be adding a lot new views as well in the app in future. Each view has...
View ArticleHow can I save the attribute named "x:SynchronousMode" to a xaml file?
In our software, we draw or edit a window and save it to a xaml, then, we want to load it asynchronous,we used LoadAsync method to do this,but now the question is we can write...
View ArticleDisplay Scaling Issue after Anniversary Update
I've run into an issue with the behavior of my WPF applications (all of them) since the Anniversary Update. I'm wondering if anyone else has encountered this and what (if anything) you did to fix...
View ArticleHow to create pdf to fmf file
Hi,In my WPF Application i have to create .FMF File from PDF for sending Fax using SDK.How i can create pdf to fmf file.Regards atik sarker
View ArticleWindows media player embbeded in winforms not playing network files continously
Hi, I just included a windows media player in a winform (using wmplib dll). And this form was called in an WPF window to play network videos(Playing videos from the server, which is a growing video...
View ArticleAssembly.Load executed in Thread, blocks ui
Executing the folowing code with "new Thread(new ThreadStart(tstest)).Start();" Freezes the UI while the Assemblys are LoadingHow can I prevent the freezing of the UI?void tstest() { foreach(var item...
View ArticleComposite ViewModels in WPF
Is it possible to have view model composed of other view models? How would this work in practice? I have data that is reused in several views and I have views that are made up several groups of data....
View ArticleNeed dashed focus box
In the course of my app, after returning from a modal dialog, I put (keyboard) focus on the first of a list of radio buttons like: ChangeOfContactRB.Focus();If I hit the space bar, the RB is selected,...
View ArticleInvalid Uri: webBrowser DependencyProperty pulling partial string
I'm binding datagrid cell content to a webBrowser and getting an "invalid URI" error.I've tried converting string to Absolute URI (below), but it doesn't fix the error. It appears the partial value is...
View ArticleWPF Control Background Image Change Delay
Hi. I have a WPF application that takes a screenshot of the contents of a WindowsFormsHost control and applies it to the background of a Grid control. The Grid acts as a transition screen from the...
View ArticleApplying style dynamically to textbox
Hello, I've WPF application in which I'm loading user controls dynamically in my MainWindow.xaml using ContentPresenter, on change of a value in the combox present on MainWindow.xaml....
View Articlehow to change color programmatically?
if (IsConnectLine != true) { int circlewidth = 30; int adjustduetowindowwidth = 90; EllipseInfo einfo = new EllipseInfo(); Ellipse ellipse = new Ellipse() { //Margin = new Thickness(A.X - (circlewidth...
View Articlesegregation of binding objects between viewmodel and model in wpf mvvm
HiI have a wpf application which i implemented and it has simialr code structure as below. Is this correct way to seggregate the bindings between viewmodel and model. I want to keep model as simple as...
View ArticleHow I can write this codу on C#
In dataBase I have class Entrprize. He contein TaskList.public class Task { public string Discription { get; set; } }On Xaml i have code<DataGrid ItemsSource="{Binding...
View ArticleListBoxItem itself contains ListBox. How prevent item double click event from...
I have a User Control that contains a ListBox. Using DataTemplate, I have the scenario where the ListBoxItem itself can contain the same UserControl. Meaning the ListBoxItem can contain a ListBox....
View ArticleWPF: Stop Animation For Hidden Controls on Windows Load
I have a very simple fade in/out animation which works fine using data triggers. I have bind the data trigger to a bool property and inside trigger it set the opacity to 0 on false and vice versa.Now...
View ArticleCalling all WPF Gurus. October readers need feeding!
Hey you! No, not that person behind you. YOU!!!Want to be a real-life virtual guru? (pun intended)Do you want to win the love and admiration of the community you work in?You can win REAL virtual medals...
View ArticleDataGridComboBoxColumn
var dg = new DataGrid() { AutoGenerateColumns=false, ItemsSource = q1 }; var dc1 = new DataGridTextColumn() { Header="Задание", Binding=new Binding("Discription"), Width=40 } ;...
View Articlemultibinding not working !!!
hi,let's say that i have this<ProgressBar Height="20" MouseUp="ProgressBar_MouseUp" Margin="20,350,20,0" VerticalAlignment="Top" BorderThickness="1"...
View ArticleHow set RowDeffinition in Code
How I can write this code on C#<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition...
View Article