xarzu

Member
  • Content count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About xarzu

  1. How do I solve issues with adding Tabbed Control with Expression Blend 3 for Silverlight App? I am using Microsoft Expression Blend 3 + SketchFlow Version 3.0.1927.0 for a Visual Studio 2008 Windows Embedded CE program. I am trying to add a tabbed control and Expression Blend does not seem to be cooperating. I have tried googling for a solution. I found this link: https://msdn.microsoft.com/en-us/library/cc295163.aspx This talks about SimpleTabControl and SimpleTabItem. I did not find these controls in my list of available controls I can add. This page says it is specific to WPF projects. Could this be the problem and this particular page from MSDN.Microsoft.com is not applicable to my Silverlight project? This web page says "The tab control is an items control that displays content in tabs". I have the ability to add an items control: http://i67.photobucket.com/albums/h292/Athono/Embedded/itemscontrolpng_zpsq6zokxvq.png The page also says "Typically, the child elements of a tab control are tab items, which are headered content controls, each of which can have a header element and a content element". I did not find the ability to add a headered content control from the graphic list of available controls. A google search also found this web page: http://www.dotnetperls.com/tabcontrol-wpf Trying this example producted this error: http://i67.photobucket.com/albums/h292/Athono/Embedded/tabcontroldoesnotexist_zpstq4euslm.png It says "The name 'TabControl' does not exist in the namespace 'http://schemas.microsoft.com/client/2007'" Trying an exact copy of the example code produces an error that says that "Window" does not exist in the namespace "http://schemas.microsoft.com/client/2007" http://i67.photobucket.com/albums/h292/Athono/Embedded/windowdoesnotexist_zpsy4dn8rkm.png I need to find an example or plan or solution for using a tab control for the namespace "http://schemas.microsoft.com/client/2007" I got some email / message suggestions on how to solve this issue. Some of the examples did not apply to my problem. But the ones that did apply, seeemed to imply that the way I have to solve this problem is to do the code entirely with CS using Visual Studio and not to deal with Expression Blend directly. Is this the only way to do it?
  2. 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);
  3. In a silverlight app, I have a BitmapImage defined as System.Windows.Media.Imaging.BitmapImage and it as a method called "SetSource" where I can set the source like this: BitmapImage bitmap = new BitmapImage(); System.IO.Stream stream = _scene.GetStream(); if (stream == null) return; bitmap.SetSource(stream); In a WPF application I have also have a Bitmap image defined as System.Windows.Media.Imaging.BitmapImage but there is no SetSource method. How do I set the source in a WPF app like I do in a Silverlight app? Also, it is a stream, not a string. It is not a URI. so "UriSource" method does not work. I tried this: System.IO.Stream stream = _scene.GetStream(); if (stream == null) return; BitmapImage bitmap = new BitmapImage(); bitmap.UriSource = new Uri(stream.ToString()); And at runtime, it threw an error tha URI cannot be determined. Is the URI an identifier for the intranet? Are you sure that this is not a silverlight thing? I am doing a WPF application
  4. How do you set a default size of a control that you can resize? I have been looking at a code sample from Charles Petzold. It is from here: http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html it uses mouse over methods to increase the size of button classes. I have it working but I want to make some modifications. I want the starting size of the button to be larger. I do not know how much of the code I need to post here to make the issue clear enough. The XAML for the page describes a "FisheyeButton" that is described in a seperate xaml file. Something like this: <StackPanel x:Name="LayoutRoot" Width="1017" Orientation="Horizontal" Height="253"> <src:FisheyeButton Style="{StaticResource btnStyle}" ButtonContent="Button No. 1" /> </StackPanel> The functionality of the project is such that if I give the Fisheyebutton a width and height a set size at this loction, the effect where the size of the control the effect of becoming larger does not happen. In other words, if I write in the <src:FisheyeButton... tag above Width="100", then the button does not behave at run time as it should. In the same page.xaml file, the btnStyle is defined like this: <UserControl.Resources > <Style x:Key="btnStyle" TargetType="src:FisheyeButton"> <Setter Property="VerticalAlignment" Value ="Center" /> <Setter Property="HorizontalAlignment" Value ="Center" /> <Setter Property="FontSize" Value ="12" /> </Style > </UserControl.Resources > I wonder if perhaps at this point, I can add a "Setter" property to define a default starting widh and height for the class.
  5. 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?
  6. 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?
  7. Hey, I have got a question. What are the browser formats to be concerned with if you want your web site to be viewed universally? I mean, if you can develop a cool silverlight app, I know that Silverlight does not run on Internet Explorer 64 bit. So I guess I would have to use HTML 5 for that. What about the other browsers and platforms and what would be the replacement technologies?
  8. I have a router and an internet connection. I have 3 computers connected to the router. One of which is with a wireless connection. I set all this up a couple of years ago and I have completely forgotten how I did it. And now my son tells me that he can use his Nintendo DS with a wireless internet connection but he needs to know my password. How do I reset my password for my internet connection? I do not even know where to go on my system to find this information.
  9. Sadly, Diskeeper from Executive Software is rated high on this post: http://www.msfn.org/board/index.php?showtopic=18603 I wonder if those who support this software know where their money goes.
  10. So my new job started. The company provided me with a computer with a Windows Server 2008 operating system and they told me I should watch some Live Meeting recorded instructions and demonstrations about how the system works that I will be working on. Live Meeting, in case you don’t know, has a very cool feature where you can record a power point and video demonstration and play it back later. The problem is that the video part does not work for a 64 bit operating system like Windows Server 2008. An error prompts you to download an MSA1 codec. After a few attempts to solve the problem, I asked the administrative assistant for a second computer which she gave me. But it turns out the only one I got was one with a Vista 64 bit operating system and I found I still had the same problem with the new computer. I have a 32 bit Vista operating system computer at home so I took the files home to see if I could run the Live Meeting recordings there. To my shock, I got the same error. That is the problem I have. Now here are my questions. Where in the world do I get the codec for MSA1? How do I install delete this linefile on my computer? Surely there must be some sort of work-around for the computers with the 64 bit operating system. What are these work-arounds? I have searched the internet and I have yet to find a solution. What fun!
  11. What is the equivalant of a 'friend' keyword in C Sharp? How do I use the 'internal' keyword?
  12. I am new to this software. I am used to a different sort of comparison software. For starters, what do the colors mean? The folders have different colors some are half one color and half another one. Beyond Compare is a very highly recommended software, but I was expecting something where all the subdirectories and contents would be shown directly to me.
  13. I have been able to launch a batch file from a C# program in a number of ways. Duncan Mackenzie's blog on msdn shows a number of ways how it can be done and I have tried them. (http://blogs.msdn.com/csharpfaq/archive/2004/06/01/146375.aspx). But I have a unique problem. The batch file launches a program that seems to require that a command window (cmd) be open when it runs. Because of this, the batch file works if I launch it from a command line, but when I launch it in a C# program, an exception is thrown. So my question is this. How can I open a cmd window from C# and feed it the command to run the batch routine? There seems to be some sort of special block or prehibitation on running "CMD.EXE" from C#. I have tried a number of tricks. I have tried System.Diagnostics.Process.Start(@"cmd C:\bacthfile.bat"); but that did not work. I even tried the "start" command line argument which is supposed to launch a second command window. I did this by putting this command in one batch file to launch a second window. But both windows did not open when I did this from the C# program.
  14. OK, this must be a very very simple question for ASP programmers to answer. After I have gathered all the information I want from the user and after the user has clicked on a submit button, how do I make an operating system style call on the server. Now, I have already figured out how to create a function call in the ASP development environment that is called when the user clicks on the submit button. So my qesttion is to how to create a system level command through ASP. Specifically, I am using ASP.NET. Let me explain further. I have just completed a program that is very simular to the #3 AJAX demo that Joe Strgner has made on http://asp.net/learn/ajax-videos/ where he gets users to select from a group of "CascadingDropDown" control extender classes. When the user has selected from the third drop down control, a label is custom formatted and displays the group of selected options. What I want to do is this. After this is done, I want to have a "submit" button on this page which, when the user presses it, a call is made on the server side that will include the users selections as parameters. Something like this, for example: "CALL SOMEPROGRAM.EXE " selection_1, selection_2 I think I will ask this question in a simpler way. Notepad is a program that can be launched from the command line. I can open a CMD window (dos window) and on the command line, I can type "notepad" and the notepad execuatble will launch and I will see that program. So, how would I do that inside asp.net and specifically inside the Default.aspx.cs file which will get called when the user clicks on the send button in the function protected void Button1_Click(object sender, EventArgs e) { } Is there some sort of "run" command in asp.net like "run notepad"? I also need to have some information specific to the user included in the submit. We are on an intranet and each user has an alias. How do I snag this information?
  15. I am on a brand new VISTA computer now. I am doing ASP.NET development. So I need to turn on IIS. When I do, I notice that the IIS feature is not checked. When I check it, it says that there is an error during the set-up process. But it seems to continue. Then, at the end of its process, it give me another error But it seemed that it worked because behind the error message, the items appeared to be checked. But it did not work. When I go back and look at the settings, I see that IIS is not installed. Any suggestions?