About

Brian Genisio is a passionate software developer in Ann Arbor, MI and an active member of the Michigan software community. For almost 15 years, Brian has worked with many languages and technologies. Currently, he is focusing on front-end development stacks, mostly JavaScript-based. He also loves to talk about testing philosophies and methodologies. He can talk your ear off. Just humor him. In his spare time, he enjoys being a cooking nerd which includes traditional barbecue, baking bread, brewing beer and making as much as he can from scratch.

5 Responses to “About”

  1. Oleg says:

    Hello,
    In regards to your answer in this topic http://stackoverflow.com/questions/1297643/sync-selecteditems-in-a-muliselect-listbox-with-a-collection-in-viewmodel/5676397
    could please share a simple example with using a listbox and DependencyProperty? This code is not worked for me.
    Thanks.

  2. Pat Murphy says:

    I was in a group that spoke to you and listened to your discussion on Air for Android in February during MobiDevDay at Compuware. I was one of the people hanging out with Erik Daniel from Compuware and Chris Land from Landmine Design.
    I have a question I was hoping you could help with.
    I’m getting started on an Flash-based App along with a work colleague who produces a feature for detnews.com. Link here: http://multimedia.detnews.com/pix/photogalleries/sportsgallery/sports2day/
    He has the intellectual rights to produce this idea on his own. I’m adding the Flash-technical skill. We are planning an App that offers pictures with his humorous captions.
    This App, ideally, would be updated daily with new pictures and captions. My concern is a daily update isn’t feasible considering Apple’s approval schedule.
    Just curious if you have had any experience with updating Apps or if you have any general suggestions?
    Thanks for any help you can offer

  3. admin says:

    Pat,

    I think the best thing to do would be to have a light weight web service. This service can be as simple as an XML file up on a server that you can update periodically. The XML file would have all the data you need for the new pictures and captions, including links to the images. Your app would periodically check the web-based XML file for changes and display the new content pragmatically. That is a much better approach than packaging a new app every day.

    Good luck,
    Brian

  4. mike says:

    http://stackoverflow.com/questions/10427518/adobe-record-sound-and-save

    Hey ,i saw the answer you wrote before . Right now i have a problem with FLEX Mobile recording sound file and play back . And i try your method ,and it successed in record a dat file ,but i can’t load it back and play it back .

    Please help me with it ,Thanks a lot .

    and you can send me a email if you are ok .

  5. Mark Wain says:

    Hi Brian:

    In response to Kent Boogaart’s article on “View Models: POCOs versus DependencyObjects ” several years ago, you mentioned that “I also added a binder.HandleChange(source, “Prop1″, (value) => DoSomething(value)) to avoid any switch statements that occur when listening to the property notify event.”

    I’ve recently met the similar problem that I submitted to StackOverFlow as follows:

    By reading Eric Lippert’s Blog article: “What is the defining characteristic of a local variable?” http://blogs.msdn.com/b/ericlippert/archive/2012/01/16/what-is-the-defining-characteristic-of-a-local-variable.aspx I realized that the value of a local variable could be referenced afar and that avenue gave me hope to access the value of the variable, otherwise its “off-block” usefulness would have lost forever, even though its life-time can be exceedingly limited.

    Now here is my specific question: I have five RadioButtons whose clicking event is monitored by the event handler:
    public void OnClick(object sender, RoutedEventArgs e)

    {
    RadioButton rb = sender as RadioButton;
    if (rb.IsChecked.Value)
    switch (rb.Name.ToString())
    {
    case “Rb0″: Index = 0;…
    break;
    case “Rb1″: Index = 1;…
    break;
    case “Rb2″: Index = 2;…
    break;
    case “Rb3″: Index = 3;…
    break;
    case “Rb4″: Index = 4;…
    break;
    default: break;
    }

    }…

    Inside the switch block the Index varies and works according to the clicking operation of each RB, properly. Outside of the block the Index value is inaccessible as it should be by MS’ C# compiler design. But, alas, it is the external accessibility of the value of the “clicked-on” Index that is the most pivotal feature of the application that I am working on. I am in a predicament of not being able to get the Index value out of the switch block and the application is in danger of total failure. Any help on its solution will be appreciated and thanks in advance. Mark

    edited Jul 26 at 12:43

    Tanner
    2,773722

    asked Jul 26 at 12:42 by user2622452

    The property Index belongs to which control? This looks to me like the class that defines the OnClick function has an Index member and that gets filled, this is not a local variable – Schwarzie2478 Jul 26 at 13:00

    Thanks for your reply. The Index and its value were assigned by me and not defined by the control or the class. The variable Index is used for the purpose of distinguishing the individuality and identification of the RadioButtons, each of which is associated with distinguished character. – user2622452 Jul 26 at 19:38

    Someone said declaration of static variable in App.xaml.cs, then it can be referenced anywhere. I’ve tried. Result shows that he was wrong. Recue of the local variable from being trapped in its block remains elusive.(stackoverflow.com/questions/910421/…) – user2622452 Jul 27 at 1:11″

    I’m new to WPF and I’d like to ask you for help. What can be considered to be a correct approach to avoid this kind of problems? Will you be kind enough to send me the binder.HandleChange of yours, if you consider it may help me solving the problem.

    Thanks in advance.

    Mark

Leave a Reply