@Messor: Ok, so I had the same question ... hopefully this thread will help:
Comments
-
-
@windev: Nice catch! Thanks!
-
@chilero: It would be pretty easy to do what you want to do. You would have to make a few decisions up front, such as how you'll introduce your data files to the app ... ex. you could put them in a single folder, and use WinRT API to iterate through all files in that folder, open each up, create new items and group using something akin to the RecipeDataSource.cs' approach. Besides that, and designing the JSON to contain your object's properties, the RecipeDataSource.cs provides a nice template that will get you 80% of the way where you need to go. Hope that helps!
-
@bouzid: A couple of things ... I think your curly braces are in the wrong spots ... so:
class Program { public static void Main() { } }Also, you are returning 4*aNumber; ... however you can't perform this type of statement outside of a method declaration. Only fields, property and methods can live directly inside of a class.
I would recommend you keep watching through lesson 10 ... these types of things will be discussed in more detail. You're on the right track! Just need to get a few specifics under your belt. Good luck!
-
@Yabood: Nice catch!
@Tyler: Did that help? Sorry I didn't get to it sooner!
@Craig
happyface: This is a fundamental problem with building web pages. Different screen sizes. At the very end of this series, I introduce some helpers -- CSS files that are starting points for your web design efforts that most modern web developers use in their projects. They will help overcome problems like the one you described. I'm not trying to be lazy here -- but without some boundaries / limits to width, there will be a LOT of issues in your web pages.@annaqeeb: re: % vs. px for mobile ... I think there are much better ways to accomplish this. Per the previous paragraph, there are boilerplate / helper CSS files to help you create responsive HTML pages for both desktop and mobile experiences. I will show a few at the very end of this series.
-
@chris: c\hello\hello.exe ... you missed the semi-colon ... c:\hello\hello.exe ... assuming you do have the other names spelled correctly, etc. Hope that helps?
-
@eebrinker: My friend, you may have missed the parts of title that intimated the intent of the series ... "Fundamentals", "Absolute Beginner", "Creating Your FIRST HTML5 Web Page" ... sorry you were misled. I tried to explain in the first video of this series that this was intended for beginners, that there would be better ways for experienced developer to spend their time.
@Yabood: @Himanshu Banswal: @Sergey
Mohamed
bitoolean
fungale: Glad the videos were helpful!@Tyler: re: IDE ... PLENTY. Search for: Web Matrix or Visual Studio Express 2012 for Web. There are lots of non-Microsoft ones available, too.
@Evgeniy: Remember the semantic intent of the <br> ... if you're using it because the content (like a mainling address) benefits from the custom of putting line breaks in it, then a <br> is appropriate. It's probably less appropriate for using it to STYLE your pages. However, no one is going to fault you (ok, at least, I won't fault you) for doing this so that your page looks right. But I would encourage you to use CSS for styling.
-
@windev: /bows ... that's quite a feat!
@Zawl: Well, personally I never think in terms of "better". Are you already adept at C++ or more comfortable with C# including syntax, tools, concepts, etc? That's how I would decide. I'm not sure there's a great technology reason to choose one or the other -- they both utilize WinRT. (I could be wrong.)
@Gijs: There's no VB version of the Contoso Cookbook HOL, so the team decided -- instead of writing that Lab ourselves -- to just use what's already there. My personal comments here: While I began with VB, I haven't seen a lot of docs / videos / articles / books using VB for Win8 or other recent technologies. Increasingly, it feels to me *personally* like C# would be a good investment.
-
@jjensen: I don't have the example in front of me, however I think I remember it ... let me know if I'm off here. I think this works because, while I *initialize* the string, that only matters until the next line is read from the file. If the next line doesn't exist, at THAT point the string will be set to null and it will break out of that while. Hope that helps.
-
@Vineeth R: The compiler is THE compiler -- Visual Studio even uses it behind the scenes. While I don't know the specific commands needed to compile a WPF app off the top of my head, I do know that your C# project file is basically just an MSBuild configuration file which can be used to automate compilation.