Answer Questions
dn8 Changing ComboBoxItem Properties from a DataTemplate Hosted in the ComboBoxItem Container
I'm trying to change the ComboBoxItem's IsEnabled property from a DataTemplate and I can't figure out how to do it. How can I change the property of a ComboBoxItem container from the DataTemplate that's hosted in the ComboBoxItem container Is it even possible Kevin ignore the previous post, you dont need to change the template add this style and it should work < Style TargetType = " ComboBoxItem " > < Style.Triggers > < DataTrigger Binding = " {Binding IsActive} " Value = " False " > < Setter Property = " IsEnabled " Value = " False " ></ Setter > </ DataTrigger > </ Style.Triggers ...Show All
xlordt Using Visual Studio to gather data from user and place on a Word Doc.
Hi, I am new to Visual Studio. I need to create and exe that will open and accept information from my users. Such as, name, client number and date of admission. I would then need to open a Word document and place this data in specific location(bookmarks) and save the document in an predefined location with a predefined name. Any and all help would be appreciated. Hi Terence, You can accomplish this with Visual Studio Tools for Office (VSTO). Here's a link to some documenation that will get you started with Word tasks: http://msdn2.microsoft.com/en-us/library/78whx7s6.aspx And if you're unfamiliar with VSTO, you can learn more here: http://msdn.microsoft.com/office/tool/vsto/2005/getstarted/ K ...Show All
RabinLin Project References
I am having a problem that is quite annoying. I have a web project setup that is under source control via source safe. I have a code library that contains all business/data logic. Now, everytime I add a reference to the new code library DLL's, it removes the bindings from source safe, so when I perform a Check In, the new DLL's never check in. The way I get around this is deleting the DLL's from the web project's bin, and manually dragging and dropping the DLL's into the web projects bin folder. It then Adds them to source safe. Any way around this If you add by mistake the project outputs to source control, building the solution will fail because the compiler will not be able to write the dlls/pdb/xml output files that will ...Show All
giftgirls Grid resizing to fill the window
Hi, I have the following Xaml: < Window x:Class = " xamlWindowsApp.WithGrid " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " xamlWindowsApp " > < Grid Name = " grdMain " Width = " Auto " ShowGridLines = " True " > < Grid.ColumnDefinitions > < ColumnDefinition Width = " Auto " /> </ Grid.ColumnDefinitions > < Grid.RowDefinitions > < RowDefinition Height = " 134 " /> < RowDefinition /> < RowDefinition Height = " 20 " /> </ Grid.RowDefinitions > </Grid> </Window> ...Show All
RafaBotero How to desing data manipulation services?
My question is not a new one. This problem appeared long ago about web services. Assume, that I have a WCF service to manipulate some data. I have the data layer as well, and a business logic layer with huge number of business objects in separated assembly. The business objects know some logic, so they have lot of methods impelmented about validation, manipulation and so on. I want to share these business objects with the clients allowing them to validate user input. I use the WCF service as a facade layer therefore the interface methods has the shared business objects as parameters or return values. I can use the business objects both at server and client side by adding a reference. When I want the client proxy to be generated the svcuti ...Show All
Luxsy Hosting at remote machine
Hi, I'm using WCF June CTP. I successfully hosted WCF service (basicHttpBinding) in my local machine. Then i tried to host it in different machine, just changed my hosting url from http://localhost:7000/SimpleService to http://machine2:7010/SimpleService .Now i'm able to host the service.(means service is running without any error). But when i try to create proxy by using svcutil.exe, it says could not able to find the service. could anybody tell me, how to check it whether the service is successfully hosted at machine2 If so why svcutil.exe could not able to identify is there any other way to create proxy (without svcutil.exe) Rgs Vasu Can you browse to the metadata page on the machine2 with ...Show All
Guy Burstein ASP.NET Debugging with VS2005 and IE7
Hi All I just want to join up with my fellow developers on the massive issue on ASP.NET debugging on IE7. Since I switched to Vista early september I mainly developed WindowsForms apps with Visual Studio 2005 and everything seems to work OK. Now I'm primary focused on ASP.NET and had the horrorfying experience: ASP.NET debugging doesn't work with IE7 and Vista !! I'm using Vista RC2 (build 5744) and haven't switched to the RTM yet. I thing this is a huge issue: Vista and IE7 is released at this time, IE7 is part of critical updates on at least Windows Server 2003 R2. The big Q is: When can we expect MS to deliver and update to this issue Note: The error exists even in a small 1 page + 1 button website. Best regards, ...Show All
Prabu. debugging XBAP - Http Invocation
i've attached presentation host to the process and i get exception when i try to load. If the process is not attached i didn't get any exception. My application is a full trust app. I've enabled unmanaged code debugging. I couldn't get toggle in my code. I got it. Thanks Ashish. Can you also provide the full exception message and any stack trace For clarity, are you following these steps to debug ...Show All
Raoul_BennetH Data binding to a control's own properties - best practicies?
Hello, I'm just getting started with WPF and Xaml, and I'm trying to figure out the proper way of dealing with what I thought would be a common situation. If I have a control, for example something simple that is supposed to just show the name of a colour on a background of that colour: <UserControl x:Class="WPFTest.Test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <TextBlock Text="{Binding Path=Color}"> <TextBlock.Background> <SolidColorBrush Color="{Binding Path=Color}"/> </TextBlock.Background> </TextBlock> </UserControl> Firstly, is ...Show All
kalai Fonts in WPF seem blurry - can someone please assist?
Hello, On my computer, text that is rendered using WPF on screen is blurry. From what I understand WPF using technology similar to, but different than, ClearType. Can someone please help me get my fonts to not look blurry Is there a way to manually use an API to not render a control using this ClearType technology I run XP SP2 with a 30" Dell monitor at 1600x1024. WPF from .NET 3.0 June CTP. Using WPF - http://theimagehosting.info/out.php/i10378_SP3220060718124419.bmp Using .NET 2.0 - http://theimagehosting.info/out.php/i10379_SP3220060718124420.bmp Thank you, Sean H. When I was using Windows Vista I think I was able to turn it off, but not so when running WPF under Windows X ...Show All
Pwint Is there a DataList like control in WPF?
I hope to display my data item in multiple columns and multiple rows. Can ListView be used I find the right sample in SDK. Thank you You can try uniformgrid or wrappanel You want to use a ListView with a GridView. Check out this section of the SDK for an overview of ListView. HTH, Drew ...Show All
Donald Burr My view on views, Repositories, Multi-user acces etc.
Hi all, Sorry for the long message, this probably is better suited for a blog, but I don't have one (yet). In various threads issues have been mentioned that deal with handling large models. For example in In Multi-User Capability there is a question on multi-user capabilities, and in Collaborating on models a solution is proposed. In How to make Multiple Views a request for supporting multiple views has been done. In Question on roadmap to DSL features a repository feature is requested. We have been working with the DSL toolkit since November 2005. The first DSL's are now ready for production, several others are under development. Based on our experience with developing these DSL's, I would like to give some feedback on th ...Show All
venp Not able to compile the C# code in VS2005 with crystal report included in the project.
Hello, I create a new project and add a new item to it which is a crystal report. Then when I compile , I get the following error without adding a single word of code: Error 1 Assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' uses 'CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' which has a higher version than referenced assembly 'CrystalDecisions.Enterprise.InfoStore, Version=9.2.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' c:\Program Files\Common Files\Business Objects\2.7\Managed\CrystalDecisions.CrystalReports.Engine.dll WindowsApplication2 Warning 2 Reference to type 'CrystalDecisio ...Show All
Thrix BAML->XAML
Hi all! I know you don't like people using BAML, but I've got a bit of a problem: I have a program that I've written, and have lost the source code for. Luckily, I have the compiled executable. So, I have been able to extract the BAML file, but I'd really like it in XAML for easy editing. I know about loading BAML with Application.LoadCompenent, but that doesn't help when you need to 'decompile' BAML in to XAML. I've been told this was possible in earlier versions of WPF, but has been removed ever since Parser.LoadBaml was removed. Is there any way to retrieve the XAML source Karl Thanks! Now my problem is Uris. I'm having great trouble getting relative Uris to all the loose baml files I have ...Show All
Vivienne.Zhou Thumbs up for type inference
I'm finding var works a treat— outside of just LINQ. It's particularly good when you want to pass an object from one place to another "opaquely" without caring about its type. An example is ICryptoTransform or IAsyncResult. You still get type safety, but with less clutter. Joe I'm glad that you find this feature useful. While most of the C# 3.0 features are used in Linq, they all stand on their own as well. ...Show All
