mvvm
Getting Window Properties in ViewModel
I\'m building a WPF application in which I have a need to get the width, height and locations of the window from my view model. I\'m using the following XAML:[详细]
2023-04-10 10:26 分类:问答How do I implement MVVM with WCF?
I\'m new to MVVM.Currently I\'m developing a WPF project in C# that will have a SQl Server backend and I\'ll be using a standard WCF service to communicate with it.All the tutorials I\'ve seen on MVVM[详细]
2023-04-10 07:33 分类:问答A View Model for App.Xaml
Can we have a viewMo开发者_高级运维del for App.Xaml so that we can do some logical deductions on startUp and also form a starting point of app...No, App.xaml is not a Window class, it is your Applicat[详细]
2023-04-10 06:24 分类:问答How to bind ApplicationCommands to a ViewModel?
I have successfully used a few custom commands using MVVM-开发者_JAVA百科Light, but I want my application to respond to the standard ApplicationCommands, not just at a Window level, but at a detailed[详细]
2023-04-10 03:34 分类:问答How can I close all tabs in TabControlEx?
I\'m working with the WPF TabControlEx (close tab开发者_运维技巧s). I\'m looking a way to close all the tabs with a ContextMenu in tabs.[详细]
2023-04-10 03:33 分类:问答Extra space below rows that appears when scrolling to the bottom of a DataGrid?
Ok, so I have a DataGrid (the standard WPF DataGrid, which comes with .Net 4.0, NOT the WPF Toolkit DataGrid) with the CanUserAddRows=false.It\'s bound to an ObservableCollection in the ViewModel.It h[详细]
2023-04-10 02:18 分类:问答Tracking Account balance and information
I\'m working on a simple financial application using MVVM & LinqToSql. I\'m trying to find out the best way to structure my data. Here\'s what I have (simplified):[详细]
2023-04-10 02:04 分类:问答Why doesn't this work (NavigationService on Singleton)?
public class Navigator : PhoneApplicationPage { private static Navigator _instance; private static object _lock = new object();[详细]
2023-04-09 22:26 分类:问答Clear datagrid in MVVM ViewModel
On my MVVM silverlight application I have a dataDrid (in the View) and the dataGrid ItemsSource is binding to a Domain Service Classes Sql stored procedure \'results\' in the XAML file.The stored proc[详细]
2023-04-09 21:50 分类:问答ViewModel updates every second?
Iam writing an app that shows a list of the remaining time a user has on a course. I want the list to dynamically update every second so the user has the full overview.[详细]
2023-04-09 15:56 分类:问答