|
I don't know, but I know that class is slow, and it seems to me like overkill
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 )
|
|
|
|
|
Using so enormous technology as DirectX to play 5-second simple sound is even bigger overkill. Thanks for advice however.
|
|
|
|
|
Not really - it's just using built in stuff that is there already.
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 )
|
|
|
|
|
hello,
i want to make an application by uing xaml, but i dunno what should i need to install, i searched but didnt found what exactly i should have.
at this time, i've
1. Visual Studio 2005
2. .Net Framework 2.0
please tell what i require
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
|
|
|
|
|
You need to install .NET 3.0, which will give you what you need to build a WPF app. There are also add ins for some IDE support.
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 )
|
|
|
|
|
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?
|
|
|
|
|