Thanks for the suggestion and yes he is using Photoshop. I will try using the tool you pointed to.
User 2322509
Posts
-
Gradient background from image for XAML. -
Gradient background from image for XAML.Thanks. Yes, using expression blend by user experience was one of the options we explored, but he is not that familiar with it and he is the only one in team and using EB is time consuming.
-
Gradient background from image for XAML.Hi, Is there any way to find out gradient colors and stops from image? I have mockups of screen from my user experience guy. From those i want to find out gradient stops (points) and colors he used. currently I am using Paint.net and expressing blend and getting the colors creating them in XAML for the same. GradientStops are the biggest challenge. Thanks
-
ListBox Multi Selection without holding Shift Key?Hi, Any trick to select multiple items in WPF listbox without holding shift key? Multiple items should be selected on holding and dragging just left mouse button. Thanks
-
Freeze first item in listbox from scrolling.Hi, Is there a way in xaml/wpf to freeze first item in listbox from scrolling? Thanks
-
Proxy class from WSDL considering known types.I found the solution. I commented out all the shared types from proxy class (generated by wsdl) and added [XmlInclude] attribute on proxy class for all types in shared assembly. I am not sure its the right approach.
-
Proxy class from WSDL considering known types.Hi, How to generate a proxy class from WSDL by not generating classes for known types ? I already have few classes which WSDL has and i don't want WSDL tool to generate partial classes for those client classes which i have in xyz namespace. Thanks
-
Webservice with "out" parameter. [modified]Hi, Is it unusual for a web method to have an "out" parameter? If so, why? Thanks.
modified on Monday, October 19, 2009 1:41 PM
-
Launch Browser and pass parameters.Thanks Vikram, here are my problems: 1. I actually don't want to store doc in local machine and handle creation and deletion of files. If in any case end user have very minimum rights i may not be able to create file even. Here maybe i should think of memory stream? 2. "Launching a local .DOC file with your default browser might be slightly more complicated, and I'm not even sure why you'd want to do that. " i din't get this? Are you suggesting to launch directly ms word, excel or acrobat softwares and display docs in them instead of using browser? if yes, the problem with this approach is i need to know and code for all types of docs, if i use browser i no need to bother about this as far as i supply content type and byte array. Thanks.
-
Launch Browser and pass parameters.I have windows app and am using c#. I want to launch default browser from c# program and pass some parameters. Basically what i have is content type (eg. "application/msword") and byte array of content (word/excel/pdf docs in byte array). I want to pass these two parameters to browser and let it open the doc. Can anybody please guide me to achieve this? One more thing i don't want to create any file in local disk. Thanks.
-
Datacontract Serializer, BinaryWriter and BinaryFormatter.I tested following scenarios: 1. DataContrctSerializer with BinaryWriter, something like below, assuming datacontract serializer would use binaryformatter:
DataContractSerializer binarydc = new DataContractSerializer(typeof(Library)); XmlDictionaryWriter writer = XmlDictionaryWriter.CreateBinaryWriter(ms); binarydc.WriteObject(writer,o);
2. I used legacy BinaryFormatter , like below:BinaryFormatter f = new BinaryFormatter(); f.Serialize(ms, o);
Size comaparison between these two are very different for the same object. Size of legacy way of serializing is less than half of DataContract serializer. here are my questions: 1. Is there any other option on DataContract Serializer, which could further reduce size? 2. If No for #1, there is no point using DataContractSerializer, right? 3. If Yes for #1, is there a way i can set this configuration in config file, so that WCF service would use binary writer instead of default xml? Thanks. -
WCF service and Remoting on same appdomain?I tested and found that both the services are running in same app domain. The way i tested is returned appdomain id from both services and checked whether they are same. And regarding authentication mode am planning to use IIS authentications (windows integrated, digest or basic) as the services are hosted in IIS, but not sure yet. (return AppDomain.CurrentDomain.ID;)
-
WCF service and Remoting on same appdomain?Hello, I am migrating my .net app using remoting to wcf. i was host remoting in IIS. now i have added a new dll which has wcf service and hosting it parallel to remoting objects in iis(same bin folder). In the web.config file along with <...remoting> node i added <...servicemodel> with end points and added a svc file. Now, 1. does both services run on single process/appdomain? 2. how to find whether they are running in same appdomain? 3. what is the best authentication mode for wcf service in this scenario? (Windows integrated?) Thanks.
-
TCP and HTTP?Thanks Mark. Does that make sense to use HTTP within organization's network? Eg. In 3-tier mode, where database is on A, application server is hosted in IIS on B and client is on some other machine. Why would client require to open HTTPChannel to connect to application server? why not TCPChannel? I believe within organization's network firewall is not a constraint.
-
TCP and HTTP?Thanks Mark, i guess i need to do more research about TCPChannel and HTTPChannel , when to use them etc...
-
TCP and HTTP?I never understand when to use either of these. People always talk that - "...can be transferred over TCP or HTTP...." why there is "Or" in between TCP and HTTP? i understand, HTTP internally rely on TCP for transporting. 1. When to use TCP or HTTP? 2. What extra HTTP can do which TCP does not? 3. Can anybody point me to a nice pictorial representation where the usage of TCP and HTTP depicted. (sorry for my dumb questions) Thanks.
-
Textbox Overriding OnRender and FormattedText problem [modified]i found the mistake i was doing. Do not draw the text, which will draw on top the existing text of the textbox making it look bold. I removed
drawingContext.DrawText(formattedText, new Point(leftMargin, topMargin - this.VerticalOffset));
from the logic and it worked fine. -
Textbox Overriding OnRender and FormattedText problem [modified]I created a custom textbox inheriting from wpf textbox and overriding OnRender. I used FormattedText to set background colors of few words in the textbox. Somehow the fonts are becoming bold, not sure why. How to get-rid of that? Here is my code.
if (this.Text != "") { FormattedText formattedText = new FormattedText( this.Text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, new Typeface(this.FontFamily,this.FontStyle,this.FontWeight,this.FontStretch), this.FontSize, this.Foreground); //Text that matches the textbox's double leftMargin = 4.0 + this.BorderThickness.Left; double topMargin = 2 + this.BorderThickness.Top; formattedText.MaxTextWidth = this.ViewportWidth; // space for scrollbar formattedText.MaxTextHeight = Math.Max(this.ActualHeight + this.VerticalOffset, 0); //Adjust for scrolling drawingContext.PushClip(new RectangleGeometry(new Rect(0, 0, this.ActualWidth, this.ActualHeight)));//restrict text to textbox //Background hilight if (HighlightText != null && HighlightText.Length > 0) { foreach (string text in HighlightText) { int txtEnd = this.Text.Length; int index = 0; int lastIndex = this.Text.LastIndexOf(text, StringComparison.OrdinalIgnoreCase); while (index <= lastIndex) { index = this.Text.IndexOf(text, index, StringComparison.OrdinalIgnoreCase); Geometry geom = formattedText.BuildHighlightGeometry(new Point(leftMargin, topMargin - this.VerticalOffset), index, text.Length); if (geom != null) { drawingContext.DrawGeometry(Brushes.Yellow, null, geom); } index += 1; } } } drawingContext.DrawText(formattedText, new Point(leftMargin, topMargin - this.VerticalOffset)); }
Thanks.modified on Tuesday, July 28, 2009 5:35 PM
-
Positioning window like popup control.No Luck, still flickering.
-
Positioning window like popup control.Thanks, that worked. But if i set the position before calling Show() method , it has no effect on position. And if set position after Show() widow flickers (moves position). How to avoid flickering? Thanks