| How to: Add a rtf file to the report? |
|
 |
Index ‹ Visual Studio ‹ Visual Studio Report Controls
|
- Previous
- 1
- ADO.NET (Pre-release) All-in-one bundle Beta 1 or CTP? When will we be able to have an easier-to-install updated CTP of ADO.NET vNext The current one is a September 2006 CTP that requries the May 2006 CTP of LINQ in order to function.
Are there any firm dates as to when LINQ and ADO.NET vNext will either become parallel (release at the same time) or get rolled into the same CTP/Beta
- 2
- Visual J# General read text for a .txt helpI'm attempting to read a line of text from a text file but found no scanner class that I usually use in the java.util package. Does anyone have a good suggestion on what I should use to read a line of text
Thanks
- 3
- LINQ Project General Windows installer failure
help urgently required.
I have attempted to run a CognosController.Msi file but the installation failed with the following error: "There is a problem with this windows installer package. A script required for this install to complete could not be run."
I currently have .NET framework 1.1 including SP1 installed.
Any tips on how I can resolve this problem.
Thanks
- 4
- Windows Communication Foundation ("Indigo") The remote server did not satisfy the mutual authentication requirementI am trying to write a Client/Server program which needs mutual authentication between the server and client via Kerbros.
Therefore I did the following:
On Server side: Config file:
< xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <services> <service name="Com.Service" behaviorConfiguration="ServiceBehaviorConfig"> <host> <baseAddresses> <add baseAddress="net.tcp://tako:8020/Com/"/> </baseAddresses> </host> <endpoint address="" binding="netTcpBinding" bindingConfiguration="MyNetTCPBinding" contract="Com.IService"> </endpoint> <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"> </endpoint> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ServiceBehaviorConfig"> <serviceMetadata/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="MyNetTCPBinding"> <security mode ="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign"/> </security> </binding> </netTcpBinding> </bindings> </system.serviceModel> </configuration>
On Client side Config file:
< xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="NetTcpBinding_IService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://tako:8020/Com/" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IService" contract="IService" name="NetTcpBinding_IService"> <identity> <userPrincipalName value="username@com.net" /> </identity> </endpoint> </client> </system.serviceModel> </configuration>
set the following to disable fallback to Ntlm service.ClientCredentials.Windows.AllowNtlm = false;
But when I run the server and client, as soon as the client try to call any method in the server object, I receive the following error:
System.ServiceModel.Security.SecurityNegotiationException: The remote server did not satisfy the mutual authentication requirement
I am running both the client and server on the same machine and I am sure my user principal name is correct as as my machine is in AD, Kerbros should be enabled, what else can I check or have I missed out What else may have caused this
Many thanks,
Bobby
- 5
- Windows Presentation Foundation (WPF) Databind Child Object
Hi,
I have an object called Product and that product as a property of type List<Photo>. Photo is an object with an URI and a few more properties. What I want to do is in the DataTemplate access the first Photo of each product. I have something like this for the other properties in the Product Object:
<GridView x:Key="gridView" AllowsColumnReorder="True"> <GridViewColumn Header="Tipo de negocio" DisplayMemberBinding="{Binding Path=TypeOfBussiness}"/> <GridViewColumn Header="Tipo de imovel" DisplayMemberBinding="{Binding Path=TypeOfProduct}"/> <GridViewColumn Header="Tipologia" DisplayMemberBinding="{Binding Path=Typology}"/> </GridView>
And I wanted to define another GridViewColumn to show the photo, that will be in a data template. The problem here is binding to the path provided in the first Photo object of the List<Photo> in Products.
Thank you Bruno Silva
- 6
- Crystal Reports for Visual Studio Selection Formula
Dear All,
I have this problem of designing my report in Crystal Report. Basically my table structure is as below
|
ID |
OutletID |
Type |
Serial |
|
1 |
1 |
A |
1112 |
|
2 |
1 |
B |
1123 |
|
3 |
1 |
C |
1200 |
|
4 |
2 |
C |
1201 |
|
5 |
2 |
C |
1202 |
Below is how I want to output my report
A 1112
B 1123
C 1200 - 1202
The problem is that for Type A and Type B I want to list as it is. But for only type C I want to put them in a range like how I did above where for 1200,1201,1202 I will just put 1200-1202. I done some reading and also did some work around building a formula as below
if {product.Type}= "A" then
else if {product.Type}= "B" then
else if {product.productType}= "C" then
I am really stuck over here. I have the idea of using an array to store all the list values and later do a test on the array value based on the product type. I really dont know how to go further. Can some pls help me I am very new to this crystal repors.
. Thanks a lot in advance.
- 7
- 8
- 9
- Windows Presentation Foundation (WPF) Connect two elements on StackPanel
Hello,
I have an ItemControl which have its ItemsSource set to a List instance. The ItemsControl's ItemsPanel property is set to StackPanel.
I want to connect two elements in the ItemsControl with a line when the user click with the right mouse button on an item.
How can I draw a line between the two elements
Thank you,
Ido.
- 10
- 11
- Crystal Reports for Visual Studio Bold text and lines don't appear in print preview of imported report
I created a report that works and displays properly in both the preview tab in the IDE and when previewing it in the running application (using the crystal report viewer control in a windows form).
I wanted to use the same report in another project. So, I chose to add an existing item and found the report. The report was added to the project just fine. However, if I run the application and preview the report, bold text and lines are not displayed in it. Oddly enough, if I resize the preview window using my mouse, they suddenly appear, so they are there. If I scroll or do anything else, though, they disappear again. They also don't appear in the preview tab in the IDE.
Any ideas How can I use the existing report
By the way, I'm using VS2005 for this.
Thanks!
- 12
- ADO.NET (Pre-release) Working with WCF Service
I am trying to use the Entity Framework with a WCF service. It is giving me the following exception:
System.ArgumentException was unhandled by user code Message="The default entity container name 'eKnowledgeSpaceDBModel.eKnowledgeSpaceDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at eKnowledgeSpaceDBModel.eKnowledgeSpaceDB..ctor(String connectionString) in f:\eKnowledgeSpaceSolution\eKnowledgeSpaceObjectModel\obj\Debug\eKnowledgeSpaceObjectModel.Model.cs:line 8656 at eKnowledgeSpace.Service.UserRegistrationMessageDirector.RegisterUser(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\MessageBuilder.cs:line 42 at eKnowledgeSpace.Service.RegistrationService.UserRegistration(UserDataContract user) in f:\eKnowledgeSpaceSolution\UserRegistrationService\UserRegistrationService.cs:line 26 at SyncInvokeUserRegistration(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.InvokeDelegate.Invoke(Object target, Object[] inputs, Object[] outputs) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
I am self hosting the WCF Service, and the host application config file is as follows:
< xml version="1.0" encoding="utf-8" >
< configuration>
< configSections>
< section name="system.data.ctp" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ configSections>
< system.data.ctp>
< DbProviderFactories>
< add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
< add name="Map Data Provider" invariant="System.Data.Mapping" description=".Net Framework Map Provider" type="System.Data.Mapping.MapProviderFactory, System.Data.Entity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ DbProviderFactories>
</ system.data.ctp>
< connectionStrings>
< add name="eKnowledgeSpaceDBConnectionString" connectionString="metadata=.;provider=System.Data.SqlClient;provider connection string="Data Source=EKNOWLEDGE\SQLEXPRESS;Initial Catalog=eKnowledgeSpaceDB;Integrated Security=True"" providerName="System.Data.Mapping" />
</ connectionStrings>
< appSettings>
< add key="HTTPBaseAddress"
value="http://localhost:8000/Registration/"/>
< add key="TCPBaseAddress"
value="net.tcp://localhost:8010/Registration/"/>
</ appSettings>
< system.serviceModel>
< services>
< service name= "eKnowledgeSpace.Service.RegistrationService" behaviorConfiguration="RegistrationService">
< host>
< baseAddresses>
< add baseAddress="http://localhost:8000/Registration/"/>
< add baseAddress="net.tcp://localhost:8010/Registration/"/>
</ baseAddresses>
</ host>
< endpoint
address="Register"
binding="basicHttpBinding"
contract= "eKnowledgeSpace.Service.IRegistrationService"
/>
</ service>
</ services>
< behaviors>
< serviceBehaviors>
< behavior name="RegistrationService">
< serviceMetadata httpGetEnabled="true" />
< serviceSecurityAudit auditLogLocation="Application" messageAuthenticationAuditLevel="SuccessOrFailure" serviceAuthorizationAuditLevel="SuccessOrFailure"/>
</ behavior>
</ serviceBehaviors>
</ behaviors>
</ system.serviceModel>
</ configuration>
What should I do to solve this problem. Is there any example of a Entity Framework being called by WCF Service
- 13
- Visual Studio Extensibility Connector inheritance problem
Hi,
I got problems with connector inheritance (i'm using the RTM bits).
Suppose I start from the Task Flow template.
I add a connector MasterConnector that becomes the base class for the CommentConnector.
When I create an instance of the CommentConnector (I associate a comment to a task), save the diagram and reopen it, the instance of the CommentConnector has doubled (two lines appear instead of one).
Has anybody noticed the same problem
Thanks!
Mike
- 14
- Visual Studio Tools for Office Excel scrollbars get really small.
Hi there, another ListObject woe I'm afraid.
I've a listobject, I bind it to a System.Windows.Forms.BindingSource which has an array of objects as its datasource. I have a test setup so that when I click a button it changes the array the bindingSource is bound to. So it alternates between an array of size 5, and an array of size 1000 (so if I keep clicking the button the listobject alternates between having 5 rows of data and 1000 rows of data).
However, when it binds to the 1000 rows the scrollbar at the side gets smaller, as you'd expect. When it binds on the next button click to 5 rows the scrollbar stays the same size, thus making it hard to scroll precisely. If I bind to 1000 rows again (another button click) the scrollbar gets even smaller. In fact the more times to bind to the 1000 rows the smaller and smaller it gets, such that if you bind to say 100 rows that needs alittle scrolling its very difficult to do this with any accuracy as the scrollbar by this point is very sensitive.
I can't think why it keeps getting smaller, or find any way of resetting its size. I've tried deleting all rows from the bottom of the listobject to the bottom of the Worksheet, but it doesn't change anything.
Strange problem, hope someone might have some idea.
Thanks very much.
- 15
- Visual Studio Extensibility Add a Folder to a project
I am trying to create a folder through IVsProject.AddItem method.
The method documentation says I should pass VSADDITEMOP_OPENDIRECTORY.
This enum does not exist in the SDK.
How do I create a folder in Project Thanks
|
 |
Index ‹ Visual Studio ‹ Visual Studio Report Controls |
- Next
- 1
- Windows Presentation Foundation (WPF) XMLDataProvider and node subitem Databinding question
Hi,
My client have a XML data source containing a list of elements' records;
any record contains multiple fields which will bound to a listview;
one of the fields contains a sub XML structure which represents the Details of one record.
To avoid any discussions, I can't change the data structure...
The goal is to display the list of records into a Grid or Listview and when a record is selected,
to display the XML details into a Treeview in the right of the Grid like a master details form except both are contained by same record.
Anybody can give some hint to do this
Thxs in advance
-Vince
Thxs
-Vince
- 2
- LINQ Project General Cannot insert a subclass if it is really stored in a table associated with its parent
Hi,
I have been enjoying the incredible advances visible in the LINQ May 2006 CTP. I have followed the instructions in the DLink Designer Doc, creating a table Person with a type (discriminator) column for polymorphism. This table is to store not only persons but also employees, which have an additional property for Managers which of course is really a column of the Person table.
The problem appears when I want to insert an Employee. I have created a form with the following partial code:
------------------------
NorthwindDataContext dc = new NorthwindDataContext(); BindingList<Employee> persons; private void Form1_Load(object sender, EventArgs e) { var results = from emp in dc.Persons where emp is Employee select (Employee)emp;
this.persons = results.ToBindingList();
this.employeeBindingSource.DataSource = this.persons; }
private void employeeBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.dc.SubmitChanges(); }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { int largestId = dc.Persons.Max( p => p.ID); Employee emp = this.persons[this.persons.Count-1]; emp.ID = largestId + 1; emp.Type = 2; } -----------------------
No error is given on save but the new employee does not get saved. And of course, it is understandable since the row type is Person not Employee.
this is why it seems to me to be an issue of how to deal with operations on subclasses.
Any light
Best regards,\
Juan Dent
- 3
- Visual Studio Extensibility Enterprise Library
Has anyone used Enterprise Library in their VSPackage implementations I'm trying to use the Exception Handling Block, but having some difficulties, since the actual application is devenv.exe.
Thanks,
Mike
- 4
- Windows Presentation Foundation (WPF) How to instantiate PropertyPath for the StoryBoard with the Dependency property in C#?
Hi All
Below is the Xaml Code which is working as per the need to animate an image. I am tring to animate the same image through C#. Can Someone help in Setting the Storyboard.TargetProperty in C#.
How to instantiate PropertyPath for the StoryBoard with the Dependency property for Image Translate.XProperty in C# as shown below eg. (UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X) which is in XAML.
< Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ccl="clr-namespace:CustomControlLibrary;assembly=CustomControlLibrary"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
mc:Ignorable="d"
Background="#FFFFFFFF"
x:Name="DocumentRoot"
x:Class="Animation.SampleMouseAnimation"
Width="640" Height="480">
< Grid.Resources>
< Storyboard x:Key="OnLoaded">
< DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)" Storyboard.TargetName="Button">
< SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,0.5" Value="370" KeyTime="00:00:00"/>
< SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,0.5" Value="11" KeyTime="00:00:10.9580000"/>
</ DoubleAnimationUsingKeyFrames>
< DoubleAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)" Storyboard.TargetName="Button">
< SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,0.5" Value="224" KeyTime="00:00:00"/>
< SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,0.5" Value="19" KeyTime="00:00:10.9580000"/>
</ DoubleAnimationUsingKeyFrames>
</ Storyboard>
</ Grid.Resources>
< Grid.Triggers>
< EventTrigger RoutedEvent="FrameworkElement.Loaded">
< BeginStoryboard x:Name="OnLoaded_BeginStoryboard" Storyboard="{DynamicResource OnLoaded}"/>
</ EventTrigger>
</ Grid.Triggers>
< Grid.ColumnDefinitions>
< ColumnDefinition/>
</ Grid.ColumnDefinitions>
< Grid.RowDefinitions>
< RowDefinition Height="*"/>
</ Grid.RowDefinitions>
< Image HorizontalAlignment="Left" VerticalAlignment="Top" Margin="89,107,0,0" Width="16" Height="31" x:Name="Button" Source="C:\Documents and Settings\tsinha\My Documents\Interactive Designer Projects\UntitledProject1\mouse11.JPG" RenderTransformOrigin="0.5,0.5" Grid.Row="0">
< Image.RenderTransform>
< TransformGroup>
< TranslateTransform X="0" Y="0"/>
</ TransformGroup>
</ Image.RenderTransform>
</ Image>
</ Grid>
C# Code:
using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel;
namespace Animation
{
public partial class Sample:Page
{
private string _targetName = "mouseImage";
private string _xtargetProperty = "(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)";
private string _ytargetProperty = "(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)";
private double _xBeginTime = 5;
public string TargetName
{
get { return _targetName; }
set { _targetName = value; }
}
public string XTargetProperty
{
get { return _xtargetProperty; }
set { _xtargetProperty = value; }
}
public string YTargetProperty
{
get { return _ytargetProperty; }
set { _ytargetProperty = value; }
}
public Image mouseImage;
public Sample()
{
mouseImage = new Image();
mouseImage.HorizontalAlignment = HorizontalAlignment.Left;
mouseImage.VerticalAlignment = VerticalAlignment.Top;
mouseImage.Margin = new Thickness(89, 107, 0, 0);
mouseImage.Width = 16;
mouseImage.Height = 31;
BitmapImage bitmap = new BitmapImage();
bitmap.BeginInit();
bitmap.UriSource = new Uri("C:\\Documents and Settings\\tsinha\\My Documents\\Interactive Designer Projects\\UntitledProject1\\mouse11.JPG");
bitmap.EndInit();
mouseImage.Source = bitmap;
mouseImage.RenderTransformOrigin = new Point(0.5, 0.5);
TransformGroup imgTransformGroup = new TransformGroup();
TranslateTransform tt = new TranslateTransform(0,0);
imgTransformGroup.Children.Add(tt);
mouseImage.RenderTransform = imgTransformGroup;
mouseImage.Name = TargetName;
// Create a name scope for the page.
NameScope.SetNameScope(this, new NameScope());
this.RegisterName(TargetName, mouseImage);
DoubleAnimationUsingKeyFrames xDoubleAnimationUsingKeyFrames = new DoubleAnimationUsingKeyFrames();
xDoubleAnimationUsingKeyFrames.BeginTime = TimeSpan.FromMilliseconds(_xBeginTime);
SplineDoubleKeyFrame xSplineDoubleKeyFrame1 = new SplineDoubleKeyFrame();
xSplineDoubleKeyFrame1.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(0));
KeySpline xKeySpline1 = new KeySpline(0.5, 0.5, 0.5, 0.5);
xSplineDoubleKeyFrame1.KeySpline = xKeySpline1;
xSplineDoubleKeyFrame1.Value = 370;
SplineDoubleKeyFrame xSplineDoubleKeyFrame2 = new SplineDoubleKeyFrame();
xSplineDoubleKeyFrame2.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(10.9580000));
KeySpline xKeySpline2 = new KeySpline(0.5, 0.5, 0.5, 0.5);
xSplineDoubleKeyFrame2.KeySpline = xKeySpline2;
xSplineDoubleKeyFrame2.Value = 11;
xDoubleAnimationUsingKeyFrames.KeyFrames.Add(xSplineDoubleKeyFrame1);
xDoubleAnimationUsingKeyFrames.KeyFrames.Add(xSplineDoubleKeyFrame2);
//Y Co-ordinate
DoubleAnimationUsingKeyFrames yDoubleAnimationUsingKeyFrames = new DoubleAnimationUsingKeyFrames();
yDoubleAnimationUsingKeyFrames.BeginTime = TimeSpan.FromMilliseconds(_xBeginTime);
SplineDoubleKeyFrame ySplineDoubleKeyFrame1 = new SplineDoubleKeyFrame();
ySplineDoubleKeyFrame1.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(0));
KeySpline yKeySpline1 = new KeySpline(0.5, 0.5, 0.5, 0.5);
ySplineDoubleKeyFrame1.KeySpline = xKeySpline1;
ySplineDoubleKeyFrame1.Value = 224;
SplineDoubleKeyFrame ySplineDoubleKeyFrame2 = new SplineDoubleKeyFrame();
ySplineDoubleKeyFrame2.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(10.9580000));
KeySpline yKeySpline2 = new KeySpline(0.5, 0.5, 0.5, 0.5);
ySplineDoubleKeyFrame2.KeySpline = xKeySpline2;
ySplineDoubleKeyFrame2.Value = 19;
yDoubleAnimationUsingKeyFrames.KeyFrames.Add(ySplineDoubleKeyFrame1);
yDoubleAnimationUsingKeyFrames.KeyFrames.Add(ySplineDoubleKeyFrame2);
// Create a name scope for the page.
NameScope.SetNameScope(this, new NameScope());
Storyboard.SetTargetProperty(xDoubleAnimationUsingKeyFrames, new PropertyPath(TranslateTransform.XProperty));
Storyboard.SetTargetName(yDoubleAnimationUsingKeyFrames, TargetName);
Storyboard.SetTargetProperty(yDoubleAnimationUsingKeyFrames, new PropertyPath(TranslateTransform.YProperty));
Storyboard mouseImageStoryboard = new Storyboard();
//mouseImageStoryboard.Children.Add(myDoubleAnimation);
mouseImageStoryboard.Children.Add(xDoubleAnimationUsingKeyFrames);
mouseImageStoryboard.Children.Add(yDoubleAnimationUsingKeyFrames);
ResourceDictionary resourceStoryBoard = new ResourceDictionary();
resourceStoryBoard.Add( "mouseImageStoryboard", mouseImageStoryboard);
Grid grid = new Grid();
grid.Width = 640 ;
grid.Height = 480;
grid.Resources = resourceStoryBoard;
ColumnDefinition col = new ColumnDefinition();
grid.ColumnDefinitions.Add(col);
RowDefinition row = new RowDefinition();
row.Height = GridLength.Auto;
grid.RowDefinitions.Add(row);
Grid.SetRow(mouseImage, 0);
BeginStoryboard beginStoryboard = new BeginStoryboard();
beginStoryboard.Storyboard = mouseImageStoryboard;
EventTrigger mouseImageTrigger = new EventTrigger();
mouseImageTrigger.RoutedEvent = Image.LoadedEvent;
mouseImageTrigger.Actions.Add(beginStoryboard);
grid.Triggers.Add(mouseImageTrigger);
grid.Children.Add(mouseImage);
this.Content = grid;
this.Loaded += delegate(object sender, RoutedEventArgs args)
{
mouseImageStoryboard.Begin(mouseImage);
};
}
}
}
Tuhin
- 5
- Visual Studio Source Control and SourceSafe VS2005 and Source Safe BindingI am converting many cpp projects from VC6 to VC8 and am having problems with Source Safe binding in VS2005.
I have a working structure like this: d:\common\ com\ project1\ project2\ project3\ include\ project4\ include\
In VC6, I could have project1 open, and add a header file that is found in common\include and still have source control over that file while working in VC6. Now that I have moved to VC8, I try to add a header file from common\include\ to project1, and it gives me an error message stating: Some of the files you are adding to your project are located outside of the project's binding root. These files cannot be source controlled unless they are moved.
If the project's hierarchy on disk mimics the hierarchy in the source control database, you might be able to control these files by changing the project's bindings. For more information on how to do this, click Help.
I cannot seem to bind source safe to common\, and i cannot add a file to the source control. Is there a way to ensure that you will have source control over a file that is not located within the project's directory
- 6
- Visual Studio WPF Designer Cider support for local assembly references?
Am I doing something wrong Or do i possibly have an bad interaction between Cider and ReSharper (my guess).
every time i make a reference to the local namespace in the same assembly... e.g.
< Page x:Class="MyNameSpace.TestPage" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:local="clr-namespace:MyNameSpace" Title="TestPage"> <Page.Resources> <local:MyConverter x:Key="myConverter"/>
I end up getting all sorts of errors, even though it all compiles fine. In just the snippet i've pasted here, I get three errors:
Assembly '' was not found. The 'clr-namespace' URI refers to an assembly that is not referenced by the project.
The Element Page.Resources... has invalid child element MyConverter..."
and The type 'local:MyConverter' was not found. Verify you are not missing an assembly reference."
Ditto on the code behind... InitializeComponent() is not found, nor are any references to named xaml elements. but again, everything compiles and runs just fine. Is this just a preview issue Or are Orcas and Resharper fighting
- 7
- Windows Presentation Foundation (WPF) Listview content Wrap
Is there a way to have the control list items like in a list box but when the bottom of the screen is reached have a new column formed so that all of the content is on the screen I.E. If the screen can hold 40 rows of data and I have 100 rows to display I would end up with three columns of data.
Thanks in advance
- 8
- Visual Studio Tools for Office Assembly * cound not be found
Hi All,
I just installed VSTO SE (last version), and created WordAddIn , and just compiled, it give me three Error
Error 1: The type or namespace name 'AddIn' does not exist in the namespace 'Microsoft.Office.Tools' (are you missing an assembly reference ) C:\code\WordAddIn4\WordAddIn4\ThisAddIn.Designer.cs 19 68 WordAddIn4
Error 2: The type or namespace name 'IStartup' does not exist in the namespace 'Microsoft.VisualStudio.Tools.Applications.Runtime' (are you missing an assembly reference ) C:\code\WordAddIn4\WordAddIn4\ThisAddIn.Designer.cs 19 125 WordAddIn4
Error 3: The type or namespace name 'ICachedDataProvider' does not exist in the namespace 'Microsoft.VisualStudio.Tools.Applications.Runtime' (are you missing an assembly reference ) C:\code\WordAddIn4\WordAddIn4\ThisAddIn.Designer.cs 31 67 WordAddIn4
I add many different Assembly include those one in GAC , Office12 .... is still i me getting this Error
Any help Apperciate in advance! -:)
Reza
- 9
- Windows Presentation Foundation (WPF) Corrupt Back Buffer?
I have a fairly complex app that suddenly has been displaying what looks like a corrupt back buffer... as if the backing store for the window is confused about it's size or something.
When the app starts everything looks fine, but whenever i mouse over any control that changes state on mouse over, the whole rest of the window gets corrupted with what looks like the right image render with the wrong "width" if you know what i mean.
There are no errors in the debug output while this happens...
Here's what it looks like before I mouse over the button:
http://i126.photobucket.com/albums/p110/xamlgeek/notcorrupt.png
And here what it looks like after:
http://i126.photobucket.com/albums/p110/xamlgeek/corrupt.png
Is this a driver issue And if so, why did it just start happening today after months of never seeing it. I have refactored a bunch of my code, but done nothing really new or trickier...
This is on Windows XP Pro SP2, Dell D-820 laptop, RC1 WPF bits, NVidia Quadro NVS 120M
- 10
- 11
- 12
- Windows Presentation Foundation (WPF) Proper design for custom templated parent/child control?
Hi everyone, I'm looking for some pointers on building a custom control. I'm doing this as an exercise in learning WPF. Basically here are my requirements:
1) Will have a parent control (ParentControl class) that has a specific Type of child items (ChildPane class). 2) The ParentControl class needs to host the child panes in a certain area. Then it might also have a header area. 3) Only one ChildPane will be visible at a time in the ParentControl. 4) The ChildPane class should be capable of hosting custom content. 5) Both controls need global default styles/templates to be set. 6) For each control, the end user should be able to set a style/template that overrides the global default set up by me for both controls. 7) The end user should be able to set a style/template on a specific ParentControl instance that overrides any global default style/template for ParentControl. 8) The end user should be able to set a style/template on a specific ParentControl instance that overrides the global default style/template for the ChildPane objects displayed in the ParentControl. 9) The end user should be able to set a style/template on a specific ChildPane instance that overrides both the global default style/template for ChildPane AND the style/template, if any, that is set on the "parent" ParentControl for its ChildPanes.
Usage should be simple like this:
<controls:ParentControl> <controls:ChildPane>Pane #1</controls:ChildPane> <controls:ChildPane>Pane #2</controls:ChildPane> <controls:ChildPane>Pane #3</controls:ChildPane> </controls:ParentControl>
Does anyone have any recommendations on getting this sort of functionality working, like a sample that is already out in the wild I've seen samples that do some of this but not all of it.
Also, these are preferred... 1) The parent control's Items collection only return ChildPane types so no casting is needed for the end user. 2) The SelectedPane property should get/set a ChildPane and update UI appropriate when set.
I am considering using Selector as a base class for the ParentControl but that will mean that my Items will be generic and I would prefer them not to be. I am considering ContentControl as my ChildPane base class.
Any help or sample code for the design principles above to get me started is appreciated.
- 13
- ADO.NET (Pre-release) Using Entity Model in a DLL
I am building a library (dll) which calls my entity model for data requirements. The problem is where to put the configration file. There are two options:
1. Either put the config information in the dll.config file
2. Or Put it in the calling application (App.config)
In both casses it is giving a exception.
When I put the config information in the dll.config file it is giving the following exception:
System.ArgumentException was unhandled Message="The named connection HelloWorldDBConnectionString is either not found in the configuration, it's not intended to be used with the Mapping Provider, or it's invalid.\r\nParameter name: connectionString" Source="System.Data.Entity" ParamName="connectionString" StackTrace: at System.Data.Mapping.MapConnection.ChangeConnectionString(String newConnectionString, String callersConnectionStringParameterName) at System.Data.Mapping.MapConnection..ctor(String connectionString) at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at HelloWorldDBModel.HelloWorldDB..ctor(String connectionString) in f:\EndToEndHelloWorld\ModelObject1\obj\Debug\ModelObject1.Model.cs:line 101 at HelloWorldService.HelloWorldServer.GetMessage() in f:\EndToEndHelloWorld\HelloWorldService\Program.cs:line 17 at LocalServiceTest.Program.Main(String[] args) in F:\EndToEndHelloWorld\LocalServiceTest\Program.cs:line 13 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
When I put the config info in the App.config of the calling exe file it gives the following exception:
System.ArgumentException was unhandled Message="The default entity container name 'HelloWorldDBModel.HelloWorldDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at HelloWorldDBModel.HelloWorldDB..ctor(String connectionString) in f:\EndToEndHelloWorld\ModelObject1\obj\Debug\ModelObject1.Model.cs:line 101 at HelloWorldService.HelloWorldServer.GetMessage() in f:\EndToEndHelloWorld\HelloWorldService\Program.cs:line 17 at LocalServiceTest.Program.Main(String[] args) in F:\EndToEndHelloWorld\LocalServiceTest\Program.cs:line 13 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
How do I config the entities in a dll
- 14
- Windows Communication Foundation ("Indigo") How do I get WSHttpBinding to work on a clientI can run a WCF client and WCF Service on the same machine using BasicHttpBinding, and I can get the cleint to run on a remote machine.
I take the same code for both client and service and replace BasicHttpBinding with WSHttpBinding, and the Service and client will work on the same machine properly.
However, when I take the cleint (Containing WSHttpBinding) and access the WCF Service (also containing WSHttpBinding) from a REMOTE client, the client fails with the following error:
Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An u nsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.Fa ultException: An error occurred when verifying security for the message.
How can I get the WCF client containing WSHttpBinding to work properly on a remote client
- 15
|
|
|