| about TabControl personalization |
|
 |
Index ‹ Visual Studio 2008 ‹ Visual Studio WPF Designer
|
- Previous
- 1
- 2
- Visual Studio Setup and Installation Visual studio SP1 crashes the whole systemThe same problem when installation fails due to insuficient disk space - all .net apps does not work. The whole service pack is *** - Why Microsoft could not make a better installer - it gives all kinds of errors, you wait 2 hours to make the instalation and if something goes wrong you have to reinstall the whole system. The Visual Studio itself installs for less time. Now I have to reinstall the whole system because I don't have the time to wait for solution. I think there should be service pack for the servoce pack :)
- 3
- Developer Documentation and Help System Documenting the Documenter
I notice that Sandcastle ships without any documentation. I followed the links that promised to answer frequently-asked questions and questions and hints and tips. The questions were obviously being asked by people who had been using Sandcastle and had some kind of detailed question about some operational point or another. How did they find out how to start using it enough to ask a question about features
But I can't even get started. There are three executables in the download: BuildAssembler, MRefBuilder, and XslTransform. When I run MRefBuilder on my assembly, all I get is an XML file. But if that's all I want, I can get an XML file from Visual Studio by throwing the /doc switch.
When I run BuildAssembler, I get a message: "Error: The specified configuration file could not be loaded. The error message is: "Could not find file 'C:\Program Files\Sandcastle\ProductionTools\BuildAssembler.exe.config'." Well, that does not help me run the program because I don't have a configuration file, I don't know how to make a configuration file, and no configuration file was installed with SandCastle.
XslTransform apparently wants an XML file and an XSL transform file. Is that supposed to be the output of MRefBuilder and some as yet unidentified transform file One does not know because nobody thinks it necessary to explain. Do I have to write my own XSL transform file Probably not.
But the point is: none of the questions in the FAQ ask how to run the program, and none of the links on the installation page point to anything but broken wikis and FAQs for more advanced users. How does one get started
- 4
- 5
- Visual Studio Extensibility Visual Studion 2003-ReSharper addin
HI,
I have Resharper installed on my box.I have been facing a rather strange problem.The Intellisense is not working on my box. Is this because of some setting in Resharper.Also, I am unable to Uninstall Resharper as it does not appear in the list of Add/Remove programs. Please help me enabling Intellisense.
Regards
- 6
- Visual Studio Source Control and SourceSafe Problem!
Hi
The developers are facing a problem related to check out/in in VSS.Whenever they checkout a solution file(which contains many projects in itself) and when they check back in the solution file,some projects are not there in the solution file.
I wanna know that is this a VSS related problem or network related problem or something else.
Regards,
Hisan
- 7
- Visual Studio Extensibility Cross project code generation
Hi,
I'm very new to actually working with DSL and software factories, so the questions can seem a bit dumb.
Here it goes:
- If I create a new DSL and an acommpanying custom tool, I can generate code by walking over the diagram. Is there a way that the generated code can be split accross existing projects in a Visual Studio 2005 solution
- Would referencing artefacts that belong to other projects in a diagram (e.g. a diagram in a data access layer project has a reference to a business component in another project) be a good and allowable practice
That's it for now
Any help or feedback is highly appreciated.
Regards,
W. Jansoone
- 8
- 9
- Visual Studio Setup and Installation Unable to uninstall VS .NET 2003 Professional
I had VS .NET 2003 Professional installed on my machine (XP professional) and also Visual Web Developer 2005 Express Edition. Both work and i was able to create projects but after a few days both stopped working.
I alway get 'MWDExpress Enviromenment is busy' when i try to access a project or try to create a new one in Web developer. I uninstalled Web Developer and re-installed it but it still didnt work. Always getting the same message.
So I tried to uninstall VS .NET 2003 but unable to do so. I tried doing manually as well but it hangs (just freezes) and does not proceed any further. what should I do any ideas How can I uninstall VS .NET 2003 and then re-install it At the moment I can't do anything (Uninstall/reinstall/repair). Either the setup is faling or hanging up (Non responsive). I tried From Add/Remove, then from the CD and also manual but nothing worked.
Ellen
- 10
- Visual Studio Source Control and SourceSafe Date-Time problem
Hi
Few days ago i uploaded some files in VSS which were supposed to be uploaded earlier, so i just changed back my system time and date to my desired date and then uploaded the file in VSS,the date and time along side that file is fine(means its the same date on which i uploaded the files after changing the dates of my pc),but when i check the history of the file it shows the actual date of file uploaded i mean it doesnt show the same date and time that was supposed to...why is it so and is there any seperate date and time mechanism of VSS or VSS takes the systems date and time
Regards,
Hisan
- 11
- 12
- Crystal Reports for Visual Studio Crystal repots chart problem [URGENT]
Hello everybody,
I have questions in database table and possible answer choices for each question. What I need to do is show a chart for each question and show the answers of the questions graphically. I have written an stored procedure that selects questions and their answers, and in the report I have grouped the questions. For showing multiple charts, I need to place the chart in the detail section but it doesn't allow me to place the chart in detail section. What is the way in the crystal report to generate charts based on the data.
Thanks.
- 13
- 14
- Visual Studio Tools for Office Adding charts in Word without Excel popping up
Hi,
What is the best way to programatically add a chart to word, without userinput. Im trying to write a function in Visual Studio that pulls some data and creates charts from it in word. I managed to add a chart but whenever i do, it opens up excel for specifying the series data, wich i dont want. I simply want to fill the data and formatting options trough code without the user ever noticing it. Should i create an instance of excel and fill/format my chart in there and when im done, copy it to word
Regards, Jape.
Dim Ishape As Word.InlineShape
Dim ImpRange As Word.Range = Globals.ThisAddIn.Application.Selection.Range
Ishape = Globals.ThisAddIn.Application.ActiveDocument.InlineShapes.AddChart(Microsoft.Office.Core.XlChartType.xlBarStacked, impRange)
- 15
|
| Author |
Message |
alex_e1z

|
Posted: Visual Studio WPF Designer, about TabControl personalization |
Top |
Hello, ___________________ ______________ / text1 \ / text2 \ | (also back image) | (also back image) | --------------------------------------------------------------------- | | --------------------------------------------------------------------- I need to make a TabControl with picture and text on the tab header. The picture and the text should change on click so the focus tab to be with another picture and the text with another color. The code below does change the bitmap. but i can't figure out how to change the font color. I added the IsHitTestVisible = false to the font because when i was with the mouse on the text, the bitmap changed to grayed one.how to to that
<Window x:Uid="Window_1" x:Class="wifi.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="wifi" Height="596.25" Width="858.5" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" >
<Window.Resources> <Style x:Key="MyHead" TargetType="{x:Type Image}"> <Setter Property="ClipToBounds" Value="False"/> <Setter Property="Source" Value="Res\settings_normal.bmp"/> <Setter Property="Stretch" Value="Uniform"/> <Setter Property="StretchDirection" Value="Both"/> <Setter Property="Margin" Value="0.059,-2.227,1.559,15.866"/> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Source" Value="Res\settings_clicked.bmp"/> </Trigger> </Style.Triggers> </Style>
<Style x:Key="MyTab" TargetType="{x:Type TabItem}"> <Setter Property="Padding" Value="-4,-4,-4,-4"/> <Setter Property="Width" Value="202"/> <Setter Property="Height" Value="40"/> <Setter Property="Margin" Value="-2,-11,-2,-14"/> </Style>
<Style x:Key="MyText" TargetType="{x:Type TextBlock}"> <Setter Property="RenderTransformOrigin" Value="0.494,0.453"/> <Setter Property="Margin" Value="4,12.8,7,30.3"/> <Setter Property="Panel.ZIndex" Value="1"/> <Setter Property="IsHitTestVisible" Value="False"/> <Setter Property="FontSize" Value="12"/> <Setter Property="Foreground" Value="#FFFFFFFF"/> <Setter Property="TextAlignment" Value="Center"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="Width" Value="133"/> </Style>
<Style x:Key="TabGrid" TargetType="{x:Type Grid}"> <Setter Property="Width" Value="205.733"/> <Setter Property="Height" Value="59.363"/> </Style>
</Window.Resources> <TabControl Margin="20.5,162.051,28,36.529" Name="tabControl1" Grid.Column="1" >
<TabItem Tag="{x:Null}" Content="Scanning and status" Style="{StaticResource MyTab}"> <TabItem.Header> <Grid Style="{StaticResource TabGrid}"> <TextBlock Style="{StaticResource MyText}" Text="Scanning & Status" IsEnabled="False"/> <Image Style="{StaticResource MyHead}"/> </Grid> </TabItem.Header> </TabItem>
<TabItem Tag="{x:Null}" Content="yy" Style="{StaticResource MyTab}"> <TabItem.Header> <Grid Style="{StaticResource TabGrid}"> <TextBlock Style="{StaticResource MyText}" Text="Favorites Management"/> <Image Style="{StaticResource MyHead}"/> </Grid> </TabItem.Header> </TabItem> </TabControl> </Window>
Visual Studio 20082
|
| |
|
| |
 |
chadr - msft

|
Posted: Visual Studio WPF Designer, about TabControl personalization |
Top |
|
| |
 |
| |
 |
Index ‹ Visual Studio 2008 ‹ Visual Studio WPF Designer |
- Next
- 1
- Windows Communication Foundation ("Indigo") ChannelFactory.Close() vs ChannelFactory.BeginClose()
We're building a web application that is using an application server via WCF web services. The web server is placed in a temporary DMZ with its own rather slow broadband connection serving traffic from the internet, while the application server is to be placed in our ordinary network behind our ordinary firewall. In other words, connections between the two servers will go through the internet with all the trouble that may cause. In about a year or so we will establish a proper DMZ to obtain a more stable and fast connection.
We have chosen to use the generic ChannelFactory class in stead of building client proxies, as this seems to be a more maintainable approach in this case.
When debugging, we have noticed that the ChannelFactory.Close() sometimes takes a little time. Some bright head came up with the idea to use the async approach in stead, by calling ChannelFactory.BeginClose(null, null), which means we initiate a close and do not wait or handle the callback by provide a delegate.
This seems to work out fine in our small test environment. My question is whether this approach is at all advisable, or might cause problems in a production environment with much heavier load.
Thanx in advance for any advice on this!
:) Helge K
- 2
- Windows Presentation Foundation (WPF) Media Element Formats and Player
My question relates to the video format and media player in WPF. In previous frameworks, while mostly used, Direct3D was used to play videos in specific formats such as AVI or WMV. While this may work in the new framework, it is under my impression that the WPF Media element only works with WMV. Plus, in order to play the media element itself the user must have windows media player installed in order to play (version 10 or 11). When I have used the Media element it only sometimes works while loading wmv files without any other codecs necessary. Is this an issue with WPF in general, or am I have I missed something here
- Thomas
- 3
- Windows Presentation Foundation (WPF) ElementHost = can’t use embeded resources !?
Hi,
I found that if you use an ElementHost on a Win form to host a xaml aplication you will not be able to use embeded resources.
This is because the only way that WPF embed's a resource on to an .exe or .dll is by defining a <resource/> on the "app.xaml" page.
So when you use an ElementHost that merely shows a simple WPF form with some images or whatever, the only way to access resources is by accessing them thru siteoforigin URI e.g "pack://siteoforigin:,,,/XamlResources". This means you have to create a folder on your aplication to store all your resources. In my case that's bad :(.
Anyone with the same problem
- 4
- Windows Communication Foundation ("Indigo") data contract issue
What is wrong with the following code. When i try to access Retrive() operation the application time outs and at times it get communication error while MyOperation1() and MyOperation2() are working fine. host and clients are on the same machine.
using System;
using System.ServiceModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
// A WCF service consists of a contract (defined below as IMyService, DataContract1),
// a class which implements that interface (see MyService),
// and configuration entries that specify behaviors associated with
// that implementation (see <system.serviceModel> in web.config)
[ ServiceContract()]
public interface IMyService
{
[ OperationContract]
string MyOperation1(string myValue1);
[ OperationContract]
string MyOperation2(DataContract1 dataContractValue);
[ OperationContract]
CommunicationWrapper Retrieve();
}
public class MyService : IMyService
{
public string MyOperation1(string myValue1)
{
return "Hello: " + myValue1;
}
public string MyOperation2(DataContract1 dataContractValue)
{
return "Hello: " + dataContractValue.FirstName;
}
public CommunicationWrapper Retrieve()
{
CommunicationWrapper wrapper = new CommunicationWrapper();
List<Object> objList = new List<object>();
string str;
try
{
DataContract1 dataContract = new DataContract1();
dataContract.FirstName = "Saeed";
dataContract.LastName = "Hassan";
objList.Add(dataContract);
wrapper.Bolist = objList;
} catch(Exception e)
{
str = "The method or operation is not implemented.";
}
return wrapper;
}
}
[ DataContract]
public abstract class BaseClass
{
private string primaryKey;
[ DataMember]
public string PrimaryKey
{
get { return primaryKey; }
set { primaryKey = value; }
}
}
[ DataContract]
public class DataContract1 : BaseClass
{
string firstName;
string lastName;
[ DataMember]
public string FirstName
{
get { return firstName;}
set { firstName = value;}
}
[ DataMember]
public string LastName
{
get { return lastName;}
set { lastName = value;}
}
}
[ DataContractAttribute]
public class CommunicationWrapper
{
private List<object> bolist;
[ DataMember]
public List<object> Bolist
{
get { return bolist; }
set { bolist = value; }
}
public List<object> GetBOList()
{
return Bolist;
}
public void SetBOList(List<object> value )
{
Bolist = value;
}
}
- 5
- 6
- Visual Studio Debugger error: Cannot obtain value
Hello,
When i am debuging my application, i can't read the values of the variables used in the application. I see only the message: "error: Cannot obtain value" as the value. How can i fix this
I use the tool visual studio 2005, vb .net and sql server 200.
os windows xp
Wouter
- 7
- 8
- Developer Documentation and Help System Problems building using December CTP
Hi
Ive been happily using August CTP (been too busy to upgrade!) with no problems, I tried December CTP but have problems with documenting several assemblies because they result in a command that must breach the 260 characters path limit, but I dont get this issue with the August CTP.
I'm not too familiar with exactly what happens during the whole documenting process yet but I'm including a snippet from the log file from both CTPs in the hope that someone might spot something which may help me out.
From August CTP doc build (works fine):
Info: Building topic P:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Properties Info: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Reset(System.Configuration.ConfigurationElement) Info: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.SetAttributeValue(System.String,System.String) Info: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Unmerge(System.Configuration.ConfigurationElement,System.Configuration.ConfigurationElement,System.Configuration.ConfigurationSaveMode)
The same section when I use Dec CTP:
Info: BuildAssembler: Building topic T:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData Info: BuildAssembler: Building topic Overload:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.#ctor Info: BuildAssembler: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.#ctor Info: BuildAssembler: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.#ctor(System.String,System.Type) Info: BuildAssembler: Building topic P:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Attributes Info: BuildAssembler: Building topic M:Exchange.EnterpriseLibrary.Caching.Configuration.CustomCacheStorageData.Exchange#EnterpriseLibrary#Common#Configuration#IHelperAssistedCustomConfigurationData{Exchange#EnterpriseLibrary#Caching#Configuration#CustomCacheStorageData}#BaseGetPropertyValue(System.Configuration.ConfigurationProperty)
Unhandled Exception: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
As you can see, the bit in red is more than 260 characters hence the error, there is no path information here so I cant truncate it in any way by reducing the path on disk.
I would also like to be able to try the November CTP to see if I get the same issue, but I cant find a link to previous CTP's anywhere, can anyone provide me with this also
- 9
- Windows Presentation Foundation (WPF) Another question about localizationHi,
Is there a way to change culture on the fly so that all the UI elements would be updated accordingly I tried modifying Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture, but it does not have any effect once the UI is displayed (as opposed to including this code in the application constructor).
And another question, does WPF change the flow direction automatically according to the set culture or should I set it manually for each Window/Page I tried setting the current culture to arabic, but that didn't effect the flow direction. Are there more settings to tweak
Many thanks in advance.
- 10
- Visual Studio Guidance Automation Toolkit Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT
I've just installed Visual Studio 2005 Service Pack 1 (XP edition) and now when I try to register or unregister a GAT package (for example ASMX Guidance Package) I get the following error:
System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.
I guess because the service pack has installed a new version of EnvDTE.
Any advice anyone
Here's the full stack trace:
System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE. at Microsoft.Practices.Common.Services.TypeResolutionService.GetAssembly(AssemblyName assemblyName, Boolean throwOnError) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) --- End of inner exception stack trace --- at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError) at Microsoft.Practices.RecipeFramework.GuidancePackage.EnsureInitializeMetadataForCurrentRecipe() at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference) at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute() at Microsoft.Practices.RecipeFramework.AssetReference.Execute() at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec() at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
- 11
- Windows Presentation Foundation (WPF) Possible to make an animated Sprite using WPF?
I'm trying to decide what might be the best way to cycle through a series of individual images or frames to give the impression of animation - similar to how an animated gif file works.
I have yet to find a single example of this kind of keyframe animation within WPF. There are probably various ways one could acheive this but I wondered if anyone could point me to an existing example using either XAML or code.
I'm currently thinking along the lines of finding a way to change the ImageSource of an ImageBrush at regular intervals - but is there a better way
- 12
- Windows Presentation Foundation (WPF) Issue with frame resizing!!!
Good morning,
I'm trying to navigate throw some custom pages in my wpf application. I was checked that "AppModel/FragmentNavigationSample" in wpf samples works perfectly opening a page in a frame embedded in the main window of the application.
I copy the main window and the page to a new project created with "microsoft expressions" but, when I open the frame, the main window is resized to the content size. I think that the only difference is in the project file.
Can anyone tell me what to do to resolve this little problem
Regards,
Ruben Leal
- 13
- 14
- Visual Studio Extensibility Code Generation Conference, May 2007, Cambridge, UK
The Code Generation Network is organizing a new conference themed around Code Generation tools and technologies to take place in Cambridge, UK from 18th May - 20th May 2007.
We're looking for session proposals from people who have experience applying DSLs, and can lead a session on this subject for a developer audience. Accepted session leaders will have their conference fees waived.
There's more information at the Code Generation 2007 web site. It's straightforward to submit a session proposal, but the submission deadline is Friday January 12th 2007.
Microsoft are sponsoring the event and I expect the DSL team to participate, so it will also be a great opportunity to talk about the tools with the experts.
- 15
- Customer Care Framework Error in Agent desktop
Hi,
I have launched the Agent desktop...If i select the customer from lookup table it shows the following
error...Please anyone help me
12/20/2006 2:36:21 PM: Customer Care Framework 2005 - Agent Desktop: Information: Starting... Customer Care
Framework 2005 - Agent Desktop 12/20/2006 2:54:41 PM: Customer Care Framework 2005 - Agent Desktop: Error: Failed to connect to the web server. Please verify that you can connect to the web server.The underlying connection was closed: The remote name could not be resolved.
\n\nStack:\n at Microsoft.Ccf.Csr.Sessions.SetActiveSession(Guid sessionID) at Microsoft.Ccf.Csr.Sessions.AddSession(String name, Int32 callID, Object customer) at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.AddSession(CustomerRecord customer, CallClassProvider call) 12/20/2006 2:54:42 PM: Customer Care Framework 2005 - Agent Desktop: Error: An error has occurred while clicking the toolbar button.
Specified argument was out of the range of valid values. Parameter name: '1' is not a valid value for 'index'.\n\nStack:\n at
System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) at Microsoft.Ccf.Samples.WorkFlowControl.WorkFlowControl.StartWorkflowByIndex(Int32 index) at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.doLookupCommand() at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.toolBar_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
|
|
|