Dean Oliver
Posts
-
Bind Multi dimension array with datagrid -
Insert Duplicate into HashsetCheck this url to help decipher when to use what collection class. http://geekswithblogs.net/BlackRabbitCoder/archive/2011/06/16/c.net-fundamentals-choosing-the-right-collection-class.aspx[^]
-
Problem with Entity Data Model's connectionstring - WPFin this statement.
connection string=;"Data Source=.\\SQLEXPRESS
remove the ";".
connection string="Data Source=.\\SQLEXPRESS
To build a correct connection string look at this link. connection string="Data Source=.\\SQLEXPRESS[^]
-
Need Help Setting <img> src attributePlease vote if you found my answer useful. thanks :)
-
Need Help Setting <img> src attributeHi you can either do it the standard way as it is shown in this article http://reference.sitepoint.com/javascript/Element/setAttribute[^] Or I suggest you rather use the jquery api. it's alot easier for manipulating tags etc; It'll make your life far easier. http://api.jquery.com/attr/[^] Here's an excellent beginner's guide. http://www.shopdev.co.uk/blog/jquery-from-scratch-a-beginners-guide/[^] Hope this all helps.
-
Play DVD and cut a Video in WPFtake a look at these links. Mahhala - WPF MediaKit[^] http://stackoverflow.com/questions/1321819/mediaelement-support-in-wpf[^] Hope this helps
-
Best way to implement Rich Client ApplicationYour best bet would be to use Ajax. jquery has a very good api for this. http://api.jquery.com/category/ajax/[^]
-
media player librarytake a look at these articles below http://www.nerdparadise.com/tech/csharp/mediaplayerreplace/1/[^] Custom Media Player in WPF (Part 1)[^] http://computer-programming-languages.factoidz.com/creating-your-own-custom-wpf-media-player-exploring-the-hard-disk/[^] For help creating a media library check out this link Sonic: A WPF (hybrid smart client) searchable media library[^] check out the filesystemwatcher as well for detecting changes in your library etc: Advanced FileSystemWatcher[^] Hope this helps you with some ideas :)
-
MVVM Blues...A light MVVM framework called Galasoft
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"
-
MVVM Blues...You just said it yourself separation of concerns. If your code is in the code behind how is it a separation of concerns than. Thus it is counter productive to what you trying to achieve out of the pattern. Yes I agree to an extent that you shouldn't ever follow a pattern completely and only see it as a guideline. However what you were trying to achieve can be done without hooking up an event and finding the selected item. Like I've said previously you can do what you were trying to do in a far cleaner way. As far as initializing the ViewModel for the DataContext. Well that can also be done in xaml. There are many ways to skin a cat remember that. The key is to find the most flexible solution when testing and going forward. The question I ask is what if you want to change your viewModel? you have to go into the code behind and instantiate another object. Why don't you rather use a IOC container in this scenario. So you can have a more decoupled soltuion. ;)
-
Session expireHi these links should give you a better idea of how the session state works etc. Hope this helps you to identify your problem. http://justgeeks.blogspot.com/2008/07/aspnet-session-timeouts.html[^] http://www.hanselman.com/blog/TroubleshootingExpiredASPNETSessionStateAndYourOptions.aspx[^] http://msdn.microsoft.com/en-us/library/ms972429.aspx[^] The last link will help you configure your session correctly.
-
populate dictionary from the intersection of two list collectionsHi could you please supply the source code of the collections. thanks
-
MVVM Blues...The whole point of MVVM is not to have code in your code behind. You want your view abstracted from the business logic as well as the data it is bound to. This approach of directly calling an event in the code behind, tightly couples everything. To conform more with mvvm, rather re-route the event through a command.
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
You will need to download: System.Windows.Interactivity.dll for the expression blend sdk. To use this functionality. I do believe that design patterns should only be used as a guideline for better development. not to be followed so strictly. But in this instance there is a better more mvvm type of solution. To what you suggesting with eventing.
-
error SocketError.AccessDenied on silverlightTry this link out, http://drdobbs.com/windows/208403238[^] and for a nice simple framework to help with implementing sockets: http://www.silverlightshow.net/items/SocketsLight-Silverlight-Sockets-Framework.aspx[^]
-
silverlightHi check out this link. hope it solves your problem. http://drdobbs.com/windows/208403238[^]
-
Writing source code in seperate filesIf you referring to writing classes with an extensive amount of code. Then I'd suggest you use the "partial" key word. That way you can spread your class over separate files. In each file you just call the full declaration of the class but with the partial key word. Eg;
public partial class Employee
{
public void DoWork()
{
}
}public partial class Employee
{
public void GoToLunch()
{
}
}http://msdn.microsoft.com/en-us/library/wa80x488%28v=vs.80%29.aspx[^]
-
connectionstringHi could you please supply the code. where you are directly calling the other project. because somewhere you are not initializing or opening the connection or that connectionstring from the app.config is not in your web.config in project 3. And the only way I can diagnose the problem. Is to see what you are doing else it's all based on assumptions on my part. thanks
-
MVVM architectureAt best you should try to avoid writing code in your views code-behind. Remember MVVM is all about rendering data through binding. So you should avoid using x:code. You must to see a view as a template for displaying your data. Not for any business logic. leave xaml for xaml. If you want to add specific logic for your view do it in your viewModel rather.
-
help with array of buttonsI agree with your statement. This was a rough general idea so he could get started. Not a final solution. Please bare that in mind. Thanks though.
-
MVVM Blues...I feel the same way. It seems as though most of my time is spent on the architecture and implementing the pattern correctly. Then the actual core functionality of the application. But then again once all that is set up. Your life is made easier with unit testing etc.