Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Michael Sync

@Michael Sync
About
Posts
2.1k
Topics
95
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MVVM standardization [modified]
    M Michael Sync

    Hello, Someone in Silverlight posted[^] that MVVM currently lacks standardization so that everyone has own favor.. That's why Me and a few guys from WPF Disciples are actively discussing about MVVM that everyone agreed. I totally understand that we have implemented the pattern in different ways and we mixed the several patterns or create our own pattern based on our project's need or to make the developers' life easier.. But forget about those difficulties or the special need of your project. Let's discuss about the standard rules of MVVM pattern that everyone agreed. I posted some of my thoughts here[^] as well. Why MVVM? - Testabiltiy ( ViewModel is easier to unit test than code-behind or event driven code) - Clear seperation between UX designer and developer - Increases the “Blendability” of your view - Model never needs to be changed to support changes to the view - ViewModel rarely needs to be changed to support changes to the view - No duplicated code to update views Do and Don’t in View - shouldn’t contain any logic that you want to test : As Glenn said that MVVM is not code counting exercise, we can write code in code-behind. But you should never write any logic that you want to test. For example: If user select a country then you want to display the list of states or city in your view. This is the business requirement so you should have unit test to test this logic. So, you shouldn’t write it in code-behind. - can be a control or Data Template - Keep the view as simple as possible. : We can still use Data Trigger or Value Converter or Visual State or Blend Behivor in XAML with care. - use attached property if something is not bindable : Do and Don’t in ViewModel - Connector between View and Model - Keep View State, Value Conversion (You can create the data structure that you want to display in ViewModel instead of using ValueConverter. For example: You need to show the Name instead of First Name and Last name. Your Model can have First Name and Last Name but You can create Name property in ViewModel. ) - No strong or weak (via Interface) reference of View - Make VM as testable as possible (e.g. no call to Singleton

    WPF wpf csharp database design testing

  • Have a GREAT Christmas all
    M Michael Sync

    Yeah. Thanks.. Happy Christmas everyone!!

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    The Lounge

  • Silverlight deployment
    M Michael Sync

    Norm .net wrote:

    why can't it install like Adobe Flash?

    You should be able to install Silverlight just like Adobe Flash. What problems did you face?

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    The Lounge com sysadmin tools question

  • Silverlight deployment
    M Michael Sync

    I dont think Java Applet and Silverlight are having same issues. Could you please share me those issues? I'm very interested to know about them. Thanks.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    The Lounge com sysadmin tools question

  • Silverlight deployment
    M Michael Sync

    Electron Shepherd wrote:

    I don't install anything that runs within a browser.

    :) I have Flash, Silverlight, Adobe Plugin and Firebug in my FF.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    The Lounge com sysadmin tools question

  • Silverlight deployment
    M Michael Sync

    Eddy Vluggen wrote:

    Only works in FF though, doesn't play well with Chrome

    Silverlight 3 unofficially support Chrome.Silverlight 4 supports Chrome officially.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    The Lounge com sysadmin tools question

  • idea/help in designing forum
    M Michael Sync

    I would say that if you are a beginner, it would be the best if you can start working on small project instead of trying for something that is built by Google. Why don't you try simple Data Entey Form, Form authentication and etc first?

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF com design help question learning

  • Navigation framework in tabs
    M Michael Sync

    Have you tried using Prism V2 (CompositeWPF)? There is a TabRegaion Adapter that you can use.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF question help tutorial

  • Silverlight - VectrolLight Tree View
    M Michael Sync

    Have you tried using TreeView from Silverlight Toolkit? We can probably provide more helps if you are using Silverlight Toolkit. Thanks.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF database sql-server sysadmin data-structures json

  • GUI updations on socket callback
    M Michael Sync

    You can create one List and add the image data on completed event. and call the draw before receiving all data.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF question announcement

  • GUI updations on socket callback
    M Michael Sync

    You can call another service after completing of first call. For example: service.Call1Completed += (sender, e) => { //Update the UI. service.Call2Completed += (srd,e1) => { //Update the UI. }; service.Call2Async(); }; service.Call1Async();

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF question announcement

  • What do i need to install silverlight and make it run in visual studio2008
    M Michael Sync

    You need to have .NET 3.5 service pack 1 and Visual Studio 2008 service pack 1 before installing Silverlight Tool for Visual Studio.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF csharp asp-net

  • How to save image in a folder in silver light
    M Michael Sync

    If you are selecting a file by using OpenFileDialog then you will get the stream, right? So, you can do http-post this stream to your web service. Please check this example: Silverlight File Upload[^] Note: It's not possible to do without using any web service.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF sysadmin tutorial

  • Binding to a property of the page in XAML
    M Michael Sync

    What about this? For example:

    <UserControl ...
    xmlns:model=".........."

    <UserControl.DataContext>
    model:YourClass/
    <UserControl.DataContext>

    <ListBox ItemSource="{Binding YourPropertyOfYourClass}" />

    </UserControl>

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF wpf wcf question

  • How awesome would it be if...
    M Michael Sync

    Yes.. this is very good point but it might not be possible. :)

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF c++ adobe performance help question

  • Databinding in Silverlight with databases other than with SQL Server
    M Michael Sync

    The most of your questions are already answered by our Codeproject Silverlight Experts. I will just add one more point here. If you really want to return the DataSet from Service then you may want to check-out the code written by one of our Silverlight community members. The link for that is here[^]. But returning the dataset from service is not a good idea but the most of .NET developers who are familiar with .NET 1.1 and 2.0 still prefer to use DataSet. Another thing is that DataSet will not be supported in Silverlight.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF question csharp database c++ css

  • How to get the description of an item in RSS feeds
    M Michael Sync

    Hi, I have created a sample for you. Please download it from this link [http://michaelsync.net/demo/Silverlight RSS Proxy.rar](http://michaelsync.net/demo/Silverlight RSS Proxy.rar)[[^](http://michaelsync.net/demo/Silverlight RSS Proxy.rar "New Window")] I don't think you need to add this assembly since it should be there by default. You can follow this article http://www.dotnetcurry.com/ShowArticle.aspx?ID=252[^]

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF csharp html wcf xml help

  • System.Web
    M Michael Sync

    rastaVnuce wrote:

    a web app framework doesn't have any way to send/receive http requests?

    Please try WebClient or HttpWebRequest

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF help question

  • how to set relative image path of image source from style
    M Michael Sync

    1. Build Action of Image = Resource 2. <UserControl x:Class="SilverlightApplication3.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <UserControl.Resources> <Style x:Key="MyImageSetter" TargetType="Image"> <Setter Property="Source" Value="Al Pascual.jpg" /> </Style> </UserControl.Resources> <Grid x:Name="LayoutRoot"> <Image Style="{StaticResource MyImageSetter}" /> </Grid> </UserControl>

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF question com sysadmin help tutorial

  • LINQ
    M Michael Sync

    I don't have VB in my VS. But I guess you will need to cast it before returning the object.

    Return matchingLogin.ToList()

    sunil.n.cs wrote:

    Is there any other way to retrieve data from database without using webservic

    If you are using silverlight-ported object database like db4o or silverlightdb then you can retrieve the data without using any web service. Otherwise, No.

    Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

    WPF database help csharp linq tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups