Jump to content
  • Advertisement

athono

Member
  • Content Count

    80
  • Joined

  • Last visited

Everything posted by athono

  1. Silverlight XAML loading fails right out of the gate.   This is the first time I have started a silverlight project on the current machine I am on with Visual Studio 2010.  Until now, I have been programing ni ASP.NET.   When I first tried to start a new Silverlight project, I was told I needed to install a fresh copy of Silverlight.  I had to uninstall Silverlight as well as my versions of the Silverlight SDK.  After uninstalling and reinstalling (now I have Microsoft Silverlight  5.1.20513.0 and Silverlight 4 SDK 4.0.50826.0) I was finally able to create a Silverlight Project.  But the XAML code instantly failed to load in the IDE   http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate02_zps0bd33d95.png http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate01_zpse0f20845.png   Any suggestions?
  2. This is with windows 7.   As a test, I opened Visual Studio 2010 on my home computer and made a test program with SIlverlight and it did not have this issue. Maybe it is because there is a problem with the Telerk plug-ins with the studio at work.
  3. Why does this give a precompile error that this dictionary class does not exist in current context?
  4. In C#, how do you output the contents of a Dictionary class? Once you have loaded a Dictionary class with keys and values, how do I cycle through them and output the individual values in a foreach loop?
  5. How To Modify An Element in the Dictionary Class? ======================================= C# has this cool Dictionary class that you can use like a Hash Table. Is there a way of changing the value of an indexed element without resorting to removing it like this? int value = runningcount[city]; runningcount.Remove(city); runningcount.Add(city, ++value);
  6. Tab Split String Now Working. Please Help. I wrote a C# program that reads code one line at a time. Each line has data seperated by tabs. Here is what my C# code is supposed to do. The line is supposed to be split into a string array by using the "Split" string methodIt is supposed to be spit read in text one line at a time and I use the "Split" method to group the line according to the tab character. But, as this screen shot shows, it does not work. Any idea why?
  7. How wierd. It looks like a text editor replaced the tabs with spaces without my say-so.
  8. Error 1 An object reference is required for the non-static field, method, or property 'ConsoleApplication_FileTest.Program.GetAverageSalary(string)' C:\Users\Dawn\documents\visual studio 11\Projects\ConsoleApplication_FileTest\ConsoleApplication_FileTest\Program.cs 98 24 ConsoleApplication_FileTest static void Main(string[] args) { Dictionary<string, double> averages = new Dictionary<string, double>(); string filename = "c:\\test.txt"; averages = GetAverageSalary(filename) } ===================== Dictionary<string, double> GetAverageSalary(string filename) { ...
  9. There are some cool classes and tricks and short cuts in C#. I know this but I have not worked with C# enough to have them memoried. One cool trick is this. If you read from a file data that is arranged in a similar line-by-line structure where each line is arranged in columns spaced out by tabs, the data can be read into a kind of class in C# and then you can parse out one column of data by simply doing a "for each" command. Does anyone know off-hand how this is done?
  10. athono

    MVC

    What is MVC really? Is "model-view-controller" basically the way all ASP.NET programs in Visual Studio are made? Is it the default way WPF applications are arranged?
  11. As far as I can tell REST is a methodology or an archecture. Is it a real tangable thing? I mean, can you look at a back-end code and determine if it is REST or not REST? How do you communicate with a WCF RESTful service? Are all WCF services RESTful?
  12. How do you find missling links in a web site using Visual Studio? I am studying a web site that caught my eye by making a test site privately. Since the original html and CSS and JavaScript code is on a Windows Server and since I am making a test version on a Linux server, there are issues with missing links because of case sensitivity. Anyway, this is he point. When I load the test website, I get an error message that some file cannot be found, but it does not tell me what file. It is a very general error message. Because of the size and all the connections and files, it is difficult to track down what file is missing or misnamed file. Now, I think there is a way to easily find out exactly what file is not found. I think there is a way to do this using Visual Studio test classes and projects. Am I right?
  13. You are much more knowledgeable than I am about visual studio. I want to know what you know. I am using Visual Studio 11 Beta, but I do not think there is a lot of difference between this version and the previous versions. How do I even load the html file for debugging? If I just load it as a file, I do not see how I can run the file.
  14. How do I tell the ASP.NET Silverlight Application Type? In Visual Studio 2010, whenever you create a new Silverlight application, you have a few choices to make. If you click on the check box to "Host the Silverlight application in a new Web Site", you can either create the new web project as a "ASP.NET Web Application Project" or you can create it as an "ASP.NET Web Site". Now, there is some discussion on the internet as to which project type is best suited for which purpose. But this is not what I am asking here. I have inherited a project and I want to know what time I have been given. What sort of tell-tale signs can I look for that will tell me what sort of type I have?
  15. I have seen this from time to time on YouTube where a software engineer or a graphic designer wants to record an instructional lesson, he can record this computer interaction for later playback. How is this done?
  16. Help me Convert this WPF to Silverlight I am interested in a Charles Petzold C# example that shows how to do a fisheye effect ( http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html ). The XAML code samples are in WPF but I want to try this in Silverlight. When I try to create the XAML code in Silverlight, the compiler complains in two locations: <Style TargetType="{x:Type Button}"> Error 1 The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. <Style.Triggers> Error 2 The attachable property 'Triggers' was not found in type 'Style'. How do I convert this to Silverlight?
  17. I am having some basic compile issues defining a BorderBrush. http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx states that you define a borderbrush like this: myBorder1 = new Border(); myBorder1.BorderBrush = Brushes.SlateBlue; but in my code, when I try border1.BorderBrush = Brushes.SlateBlue; I get Error 1 The name 'Brushes' does not exist in the current context and I have included the namespace System.Windows.Controls as a "using" statement at the top of the file as well as a Reference to the project. What am I missing?
  18. The information on the bottom of that page works. border2.BorderBrush = new SolidColorBrush(Colors.Green); works I wonder why border2.BorderBrush = new SolidColorBrush(Colors.Lime); does not work since "Lime" is an option color in XAML but not in CS
  19. Roller I am looking for a good example of a percentage roller in Silverlight. (someone told me that they were called rollers) The little default BusyIndicator is nice but I have a lot going on in the backgroud for a particular app and because of this, I want one of those rollers that give a percentage of how much time the use can expect to wait. I already have a way of determining what sort of percentage is going on. In other words, I know what sort of data to send the roller. Can anyone help me?
  20. DataGrid I am using a free opensource class from a company that I will not name (even if it is RadiantQ) that I like a lot. It has this cool MuttiColumnTreeList control that is a combination of a tree control and a datagrid. It comes with an example code that you can look at and everything. It is pretty cool. It is inherited from the DataGrid class. The problem is that I am kind of new to databinding on this level and so I would like to just go ahead and write some code that forces the data that I have gathered from another class into the control. So I looked online for how to do that for a DataGrid class and the information is not easily available. Can anyone help?
  21. athono

    [.net] DataGrid

    [/quote] I solved the problem but made a new one. It seems that once the databinding is done, and if you change the data you have to rebind to the control. This is what was giving me difficulty before. So what I have to do is run some command like this: this.mutlicoolgridview.ItemsSource = null; this.mutlicoolgridview.ItemsSource = SampleData.GetSampleDataNew(); The problem I am having now is this. After running his command about one thousand times, I actually run out of memory. I think that doing this: this.mutlicoolgridview.ItemsSource = null; is not such a good idea. Is there a better command to do to free up the memory?
  22. How do you get an Idle Message in a UserControl class in C# / Silverlight? Back when I was programming in C++ and MFC there was an idle message for user intervace classes that one could overwrite and make use of. Is there something like that in C# and/or Silverlight?
  23. I have this sample data. Right now it is defined in a seperate C# file like this: public class SampleData { public static ObservableCollection<Product> GetSampleData() { ObservableCollection<Product> teams = new ObservableCollection<Product>(); } } and I load the obsevableCollection inside GetSampleData(). It works and I am able to get the sample data anywhere in my program. But how can I redesign this code so that I can create the sample data on the fly from outside the class?
  24. TextBlock wrapping of text in Silverlight XAML file. I have a wierd and annoying problem. I have a textblock that is inside a stackpanel that is Oriented horizontal. It would be nice if I could have the textblock appear in multiple lines nicely wrapped. How could I do that?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!