|
ok and what about .net 3.5 ? isnt it better?
thanks
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Yes, it is. But, that's what comes with VS2008. I'm not sure if there's a WPF VS2008 Express Edition, otherwise, you'd need to buy it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you mean that if i installed 3.5 on VS 2005 then it wont work ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Of course not. If it did, who would upgrade to VS2008 ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yeah thats true
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I installed .net framework 3.0, but there is no XAML
thanks
EDITED
oh i found, i installed Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Saturday, February 23, 2008 10:53 PM
|
|
|
|
|
|
I just posted an article on this.
http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartTwo.aspx[^]
Download the code and look at the resource dictionaries in the Skins folder.
Basically you need to set up a control template. I have placed the following markup at application scope.
The markup will render a * to the left of the TextBox is there is a validation error.
<ControlTemplate x:Key="validationTemplate">
<DockPanel>
<TextBlock Margin="5,0,5,0" Foreground="Red" FontSize="16"
VerticalAlignment="Center" Text="*" />
<AdornedElementPlaceholder />
</DockPanel>
</ControlTemplate>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Validation.ErrorTemplate" Value="{DynamicResource validationTemplate}" />
<Style.Triggers>
<Trigger Property="Validation.HasError" Value="true">
<Setter Property="ToolTip" Value="{Binding Path=(Validation.Errors)[0].ErrorContent,
RelativeSource={x:Static RelativeSource.Self}}" />
</Trigger>
</Style.Triggers>
</Style>
This should get you going. Please read the article, it will really help in this situation.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
|
What I showed you is still valid (almost).
IN WPF 3.0 you still have a Validation.ErrorTemplate. The template I showed will do what you need. The validation error occurs when the object you are binding to throws an exception. Just modify your business object to throw an exception.
The below link shows how to do validation in 3.0 and 3.5. Very easy to do.
http://blogs.msdn.com/wpfsdk/archive/2007/10/02/data-validation-in-3-5.aspx[^]
modified 27-Feb-21 21:01pm.
|
|
|
|
|
thanks.. great.. but it took about 1 second to display the tooltip message when i hover the mouse over the texbox..
so in my textblock i put a image beside the textbox
<TextBlock DockPanel.Dock="Right"
Foreground="Orange"
FontSize="12pt">
<Image Stretch="None" Source="error.gif" />
</TextBlock>
can i display the message when i hover that image instead of hover the textbox?
|
|
|
|
|
Not sure if you can display a ToolTip in the Adorner Layer.
You can try and alter the code so that the ToolTip for the above TextBlock, but I'm not sure, I've never tried.
There is a property on the ToolTipService that controls how long it waits before displaying the ToolTip. Look into this and change the value.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Could you recommend me a good way to render 3D text in a simple way?
|
|
|
|
|
|
Hi,
I have also googled.
The first link doesn`t work. I included it into my project and it produces RuntimeException.
The second one doesn`t contain any code - or I just couldn`t find it.
|
|
|
|
|
Does his code work independently of your code? If so, you may need to look at what you are doing.
Did you try taking the files from the \Text3D folder and just including them in your project? Then you can use the methods.
I see what you mean about the second link but there are others out there.
You can also write Charles Petzold the author of the article. His email is at the bottom of the first article.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hi, I've spent a good couple of days trying without luck to solve this problem I've run into to with my WPF browser application. Basically this is what I have :
A WCF service with a method that returns a large array which is called from my WPF browser application (XBAP). The XBAP is partial trust with the security zone set as "Internet". I'm using VS2008 team system.
I need to increase the maxReceivedMessageSize so that the array can be passed to the XBAP. I'm using basicHttpBinding so I need to increase the maxBufferSize by the same amount as well. My app.config file for the XBAP looks like the following:
<configuration>
<system.servicemodel>
<bindings>
<basichttpbinding>
<binding name="BasicHttpBinding_IService1" closetimeout="00:01:00">
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="1000000" maxBufferPoolSize="524288" maxReceivedMessageSize="1000000"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384">
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None" />
</readerquotas></binding>
</basichttpbinding>
</bindings>
<client>
<endpoint address="http://{machine_name}/WcfWinService/Service1.svc">
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
</endpoint></client>
</system.servicemodel>
</configuration>
But when I change the maxReceivedMessageSize and maxBufferSize by any amount I get a "System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." exception.
The stack trace I get back is :
Startup URI: http://{machine_name}/WpfBrowserApp/WpfBrowserApplication.xbap
Application Identity: http://{machine_name}/WpfBrowserApp/WpfBrowserApplication.xbap#WpfBrowserApplication.xbap, Version=1.0.0.33, Culture=neutral, PublicKeyToken=d11ee682d0580e4f, processorArchitecture=msil/WpfBrowserApplication.exe, Version=1.0.0.33, Culture=neutral, PublicKeyToken=d11ee682d0580e4f, processorArchitecture=msil, type=win32
System.Windows.Markup.XamlParseException: Cannot create instance of 'Page1' defined in assembly 'WpfBrowserApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Page1.xaml' Line 1 Position 7. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---><b> System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</b>
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
<b> at System.Net.HttpWebRequest.set_DefaultMaximumErrorResponseLength(Int32 value)</b>
at System.ServiceModel.Channels.HttpChannelFactory.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelFactory.TypedServiceChannelFactory`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ChannelFactory.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at System.ServiceModel.ChannelFactory.EnsureOpened()
at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
at System.ServiceModel.ClientBase`1.CreateChannel()
at System.ServiceModel.ClientBase`1.CreateChannelInternal()
at System.ServiceModel.ClientBase`1.get_Channel()
at WpfBrowserApplication.ServiceReference1.Service1Client.GetData(UserObj[] users)
at WpfBrowserApplication.Page1..ctor()
The action that failed was:
Demand
The type of the first permission that failed was:
System.Net.WebPermission
I also created a normal ASP.net web application and tried increasing the maxReceivedMessageSize and maxBufferSize and calling the wcf service from there to test it with no problems at all.
Please help
modified on Thursday, February 21, 2008 3:45 AM
|
|
|
|
|
|
Thanks for your help Karl. Yes this would indeed work but I need to get my solution working in partial trust as I would like it to be used in the Internet zone. Is there any way to get it working without installing certificates on all the client machines?
|
|
|
|
|
|
thanks karl, but the article doesn't really solve my issue. let me rephrase this then:
Is the any other way I can send a large dataset across from a WCF service to an XBAP WPF browser app without changing the maxReceivedMessageSize settings as it seems there is no way to change the settings in partial trust as the "WebPermission" needed to do this cannot be granted. Can the setting be changed globally on the machine itself instead of in the application (like modifying the machine.config or something similar?)
It seems really stupid that a simple task like this would be impossible
|
|
|
|
|
Hashen wrote: Is the any other way I can send a large dataset across from a WCF service
Any way to break the dataset into smaller pieces and merge the parts on the XBAP side?
Can you compress it and ship the compressed bytes across the wire?
Are you using efficient binary serialization for the dataset?
Hashen wrote: Can the setting be changed globally on the machine itself instead of in the application (like modifying the machine.config or something similar?)
What setting?
Any setting in web.config, can be set in machine.config.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Karl Shifflett wrote: Any way to break the dataset into smaller pieces and merge the parts on the XBAP side?
This would be possible but not ideal
Karl Shifflett wrote: Can you compress it and ship the compressed bytes across the wire?
Could you point me to an example on how I can do this for an object array please?
Karl Shifflett wrote: Are you using efficient binary serialization for the dataset?
I'm not quite sure what you are referring to when you say efficient binary serialization. Could you please elaborate a bit for me.
Karl Shifflett wrote: What setting?
Any setting in web.config, can be set in machine.config.
I'm reffering to the maxReceivedMessageSize and maxBufferSize setting for the basicHttpBinding that I'm using. My thinking was that if I could increase these settings globally and permanently on the machine then the application would take the increased values as default and there would be no need for the application to request for web permission to increase these values.
Thanks for all your help so far
|
|
|
|
|
|
Yes this is possible.
I finally found the answer to this here...
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2196129&SiteID=1
Quote:
"The problem is not with MaxReceivedMessageSize but with MaxBufferSize. MaxBufferSize seems to have a limit of 65536 in partial trust mode. To get around this you can leave MaxBufferSize at 65536 and change the transferMode to Streamed or StreamedResponse."
After doing this you can set the MaxReceivedMessageSize to as big as you need.
|
|
|
|