-
- visualstyles for WPF window in xp
by Francis Shum
- 12 Replies
- Last post
by Neal Hudson
- Hi,
I am using .Net 3.0 RC1 on XP. I found that WPF window applications are not using any kind of visualstyles. How do I enable it In .Net 2.0, we are using Application.EnableVisualStyles(), is there any equivalent in .Net 3.0
-
- Image Cropping in WPF
by Diego V.
- 0 Replies
- Last post
by Diego V.
- Hello, I have some doubts regarding image cropping. I need to perform a custom crop on an image. I need the user to draw a rectangle over the image to be cropped and then at the click of a button the image must be cropped to the drawn geometry. I found an example of this but it was a .NET 2.0 version and written in VB. I need it to be in Windows Presentation Foundation and in C#. Can anyone guide
-
- System.ServiceModel.FaultException in a certificate service
by Enok Souto
- 4 Replies
- Last post
by Enok Souto
- I've created an wcf service hosted as a managed Windows Service . The service was configured to use netTcpBinding , message security mode , and Certificate authentication . I'm running the client and service on the same machine, and so the client and server certificates are installed on the same machine as well. The CertificateValidationMode is set to PeerOrChainTrust in both, the client and the
-
- DataContract types that have TypeConverters -- is there an elegant solution?
by wbradney
- 5 Replies
- Last post
by wbradney
- While continuing to "service-orient" my application, I've come across a knotty little issue and it's not immediately apparent to me what would be the best way to solve it. Maybe someone else has gone through the same issue.
I have several types that follow something of a "Flyweight" pattern, whereby there are a finite number of discrete instances of the type, and a TypeC
-
- BUG: Image Source does not update from Style.Triggers when originally set in code
by CharRob
- 3 Replies
- Last post
by Neil Mosafi
- Hey, looking for someone to confirm this for me. I have an Image in a Container (in this case canvas) and I add the image in code like so: Image tempImage = new Image(); Uri tempUri = new Uri("pack://application:,,,/Images/Img1.png", UriKind.Absolute); BitmapImage tempBmp = new BitmapImage(); tempBmp.BeginInit(); tempBmp.UriSource = tempUri; tempBmp.EndInit(); tempImage.Source = tempBmp;
-
- Is it possible to get informed if a Binding gets assigned to a Dependency Property?
by Christian Kihm
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- Hi, if I have for example a TextBox which after the window is loaded has no Binding for the Text property. Now as reaction on a User action a binding gets set to the Text property. I search for a solution to observe assignment of a Binding or a change of the Binding. I'm really interested in the Binding, not the value which change. I don't want get informed if the user changes the Text within the
-
- Bare parameter style
by BillRP
- 6 Replies
- Last post
by Brian McNamara - MSFT
- Hi,
I was wondering if it was possible to change the default parameter style from Wrapped to Bare for a service contract or operation contract I have a lot of legacy classes, representing messages based on the XmlSerializer. I need to expose WCF operations that accept and reply with these messages, without wrapper elements being added to the message as it would change the schema for the servic
-
- Why does this return NaN
by Dvlnblk
- 2 Replies
- Last post
by Dvlnblk
- this returns as NaN but "vc" is inside my Canvas (Named myCanvas):
Double vcLeft = Canvas .get.GetLeft(vc);
Thanks
-
- Dynamic User Interfaces [article]
by Josh Smith
- 2 Replies
- Last post
by Frances83
- I've been contemplating how to present this topic for months. Tonight I finally bit the bullet and wrote an article about creating dynamic UIs in WPF. If you're interested... http://www.codeproject.com/useritems/DynamicUIs.asp
-
- How to go from LINQ to SQL/Entities to XML/XSD?
by Della G
- 0 Replies
- Last post
by Della G
- Can anyone advise if there is a way to run a LINQ to SQL/Entities query and then convert the results into an XML document (e.g. XElement) without having to do the projection manually in code
In other words, I don't want to have to manually iterate over the LINQ to SQL/Entities result and create XElement objects. I would rather be able to refer to some predefined database-entity-to-XML-schem
-
- how Open aspx page from xbap application?!
by Adel Shaban
- 10 Replies
- Last post
by Chango V. - MSFT
- hi all
I'm developing login page using xbap and I wish to navigate to some aspx page when user login operation succeded ,
And also I wish to make this Xbap page as the login page for authentication operations.
XBAP <=> ASPX
bye
-
- wpf window critical paint failure
by Martin Knotek
- 4 Replies
- Last post
by Martin Knotek
- <Window x:Class="WpfTest.Window1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="WindowTransparency" Height="483" Width="300" WindowStyle="SingleBorderWindow" x:Name="WindowName" BorderBrush="#FFEE1515"> <Doc
-
- Hyperlink Navigation in Windows Application
by Subrajit
- 8 Replies
- Last post
by Andre N. - MSFT
- Hi,
I am working on a windows application and need the ability to add a hyperlink control on the page. Can I add a hyperlink to the control and open it up in a browser without adding any code in the code behind file If yes, can tell me how can I do this If no then is there any other way to do this. I cannot write any code in the code behind class because my xaml is a stand alone file which get
-
- GetResourceReference() or smth similar
by Rick &#40;Rytis Ilciuk
- 9 Replies
- Last post
by Ivan Shumilin
- How can i get ResourceDictionary key that is used by certain property i.e. Button.Content = "{StaticResource MyButtonContent}" How do i get "MyButtonContent"
-
- The Including() operator
by Hammad_Awan
- 4 Replies
- Last post
by Mark.Struik
- Hello,
How would I sub-query the child collection in an including clause to limit the number of child objects that come back.
For example, when I do the following:
from c in Customers
select c).Including(c => (from o in c.Paychecks
where (o.OrderDate >= startDate && o.OrderDate <= endDate)
select o));
An exception is thrown that states "Includin
-
- simple type binding
by stswordman
- 1 Replies
- Last post
by lee d
- I want to bind a string object to a TextBlock,and I know some sample but it's version is Beta 1,and can't compile now: <Window.Resources> <system:String x:Key="helloString">Hello</system:String> </Window.Resources> <Border DataContext="{StaticResource helloString}"> <TextBlock TextContent="{Binding}"/> </Border> Could an
-
- Trouble Implementing NavigationWindow
by TheFueley
- 4 Replies
- Last post
by TheFueley
- Hello All,
I am having trouble getting my XBAP to use a NavigationWindow. I am new to xaml and am following along WPF Unleashed by Adam Nathan. Now, I want to be able to use the NavWindow, but VS keeps complaining that Property 'Source' was not found or is not serializable for type 'NavigationWindow'
Now, I'm not sure how to fix this. I have read on NavigationWindow in the SDK, but I
-
- How to bind Background to RadialGradientBrush.Color?
by RostaB
- 8 Replies
- Last post
by RostaB
- Hello,
I defined style for button. Its template contains rectangle filled with RadialGradientBrush and I want to bind Color property of brush to Background property of button. I know, Brush and Color are different types, but how to bind it correctly
< Window x:Class = " WPFForm.Window2 "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation &quo
-
- How to extend two different types of Behaviors at same time
by ramkasarla
- 1 Replies
- Last post
by John Lambert - MSFT
- hi,
is it possible to declare two different types of behavior extensions (say serviceBehavior & EndPointBeavior)in same config file
public class CustomBehaviorSection : BehaviorExtensionElement {
protected override object CreateBehavior() { return new CustomEndPointBehavior(); // return new custServicebehavior(); }
public override Type B
-
- Wpf Printing
by DevX
- 5 Replies
- Last post
by Drew Marsh
- I am using C# for the code behind a wpf application.-- all i want to do is build a report made up of text from a listview or possibly from a datatable. i tried to port over code from a c# forms project and i keep getting hit with errors (e is a printpageeventargs param) e.Graphics.DrawString("ID", font, Brushes.Black, 20,10); for example gives the error that "object reference not s
-
- Callback and maxConcurrentSessions
by Leningrado
- 2 Replies
- Last post
by Leningrado
- My application uses callback over a netTcp binding to update data objects on client machines. For each data object we created a publish/subscribe mechanism that to allow clients to subscribes for object changes on the server, that uses a callback context to publish the changes back to all subscribed clients. Considering that: 1) callback proxy channel must keep opened to allow server->client
-
- where can i find binary of wpf samples?
by publicENEMY
- 12 Replies
- Last post
by kk302999
- i have downloaded wpf samples from microsoft site. there are hundreds of project available. problem is, none of them is compiled. and compiling every one of them is tedious. i suspect the samples in binary form are already in my hardisk(when i try to download the samples from local msdn). but where is it
-
- Which are controls similar to datagridview?
by ndhuan
- 2 Replies
- Last post
by Gomata
- Hi guys! Please tell me,which are controls similar to datagridview thanks a lot!
-
- Binding DateTime - formatting issue
by Grae Foster
- 7 Replies
- Last post
by Joe Albahari
- I'm working on a Windows machine which has got CurrentCulture set to "en-AU" but CurrentUICulture set to "en-US" This is causing binding to flip dates around such that 7/2/2007 becomes 2/7/2007 - not good! I've tried setting the CurrentUICulture to CurrentCulture but am guessing that a separate thread is displaying the xaml as the binding still fails. One option is to attribute
-
- Best way to close proxy channel?
by vtcoder
- 7 Replies
- Last post
by vtcoder
- I have the following code that cleans up a proxy/channel by closing it. I wanted to see if there are other states I should be checking for when closing.
I think the remaining states I'm not looking at (i.e., that the code below assumes it is okay to call Close() on) are:
- Opened
- Opening
- Created
What about Created Would it simply be better to check for Opened or Opening