-
- DataTemplate, binding to an business class in another namespace and assembly
by RostaB
- 3 Replies
- Last post
by RostaB
- Hello,
I have a <DataTemplate> defined for ListView. I need to bind it to my business object, for example AppContact. It has two public string properties defined (FirstName, LastName).
If I define my business class in the same namespace and the same assembly as my XAML is (in my case it is Test.UI.WPF), everything is ok and binding works properly. ( DataType = " {x:Type lo
-
- Queuing in NetMsmqBinding?
by Parker Lewis
- 1 Replies
- Last post
by Kavita Kamani - MSFT
- Hello
I am not sure if the NetMsmqBinding is helpful in my scenario, maybe someone could give me a hint:
I have a web method which takes an array of data items. This web method can be called many times within a short period and every passed array can contain hundreds of data items.
These data items have to be put into a sinlge queue (even if they are passed in separate calls). From this q
-
- HierarchicalDataTemplate - Find ContextMenu Parent
by SwenTech
- 3 Replies
- Last post
by Martin_Moser
- I have a TreeView and the items within the tree are displayed using a HierarchicalDataTemplate as below. My question is how I can get the TextBlock parent from inside the MenuItem Click=OnClickMenu function. I do know how to get the ContextMenu from the MenuItem inside the callback but after that I am stuck. The ContextMenu is a property not a child of the TextBlock. Some documentation suggests t
-
- System.ServiceModel.Syndication
by Synced23
- 11 Replies
- Last post
by Synced23
- I see a few blog posts about System.ServiceModel.Syndication. Is it possible to use a class from this namespace and point it to an RSS url for reading purposes Or is this only for generating syndication
If it is able to read RSS information from a URL is there any documentation samples I can't seem to find any information on that namespace.
Thanks and take care.
-
- Expose only metadata on http and service on https?
by SnowJim
- 7 Replies
- Last post
by Allan-Nielsen
- Hey! I have setup the same WCF service in two virtual directorys in IIS. My thought is expose the service on https(certificate) and the metadata on simple http. The config file looks lite this: <behavior name="App.ServiceImplementation.AppIntegration_Behavior"> <serviceDebug includeExceptionDetailInFaults="false" /> <serviceMetadata httpGetEnabled="
-
- Trigger for PolyLine seem doesn't work
by nghianghesi
- 0 Replies
- Last post
by nghianghesi
- hi all experts I face the problem like this: .... <Style TargetType="{x:Type Shape}" x:Key=" notifyMouseOver "> <Style.Triggers> <Trigger Property="IsMouseDirectlyOver" Value="True"> /// or with Property="IsMouseOver" <Setter Property="StrokeThickness" Value="10"></Setter> <Set
-
- Configuring WCF using custom app
by Bravo2007
- 6 Replies
- Last post
by Brian McNamara - MSFT
- Hi,
We have to develop WCF services and deliver to client. Is it possible to provide capability to let users configure these services based on their specific requirement I mean Is there an SDK I can use to build this configuration tool
Thanks,
Hiten
-
- How to get the Datacontract Serializer to ignore whitespace
by Kevinmac
- 2 Replies
- Last post
by Kevinmac
- Is there a way to tell the Datacontract serializer to ignore whitespace in incoming messages I am getting values like "\n1234\n" instead of "1234" when receiving messages from a non-WCF service.
If it is not possible with the Datacontract serializer, is it possible when using the XmlSerializer
I know how to do it using the WhitespaceHandling property of an XML text reade
-
- Photo Sharing Application using WCF
by Shailen Sukul
- 3 Replies
- Last post
by Christian Weyer
- HI all,
I have been building a basic photo-sharing application that is simply pointed to a folder on the computer and starts sharing the photos. It will display all sub-folders in a treeview format and display the picures in each treenode that is clicked. It also caches the displayed "album" object so that it does not need to hit the photos again next time. So far it works perfec
-
- System.Windows.Markup.XamlParseException:Type reference cannot find public type named
by Kendrew
- 3 Replies
- Last post
by Kendrew
- I am attempting to use XamlReader to load styles dynamically. The XAML below works without issue when it is included it in my project, i.e. it gets compiled into the assembly, however when I try load it dynamically at runtime it fails with the exception below.
I assume that even although I have the namespace defined in the XAML "
xmlns:sbc="clr-namespace:MyNameSpace;assembly=CO.MyA
-
- Can i create DataTemplate in code-behind?
by Dat Dang
- 8 Replies
- Last post
by quilty
- Normally I can create DataTemplate by XAML code but i cannot find the way to create DataTemplate in code-behind. Is it possible Someone has worked on this/
-
- Owned dialog not showing up
by TiKu
- 3 Replies
- Last post
by TiKu
- Hi, I've a strange problem. In my app's main window I have a command which shall open an owned dialog. In the command's Do*Command method, I've code like this:
Code Snippet
// MyDialog derives from System.Windows.Controls.Window MyDialog dlg = new MyDialog(); dlg.Owner = this; dlg.ShowDialog(); In MyDialog I'm doing nothing spectacular. This code works fine as long as I don't hide th
-
- WPF apps and system settings
by Rubio
- 2 Replies
- Last post
by Yi-Lun Luo - MSFT
- I noticed that changing system settings, such as font size, has no effect on Expression Blend, not to mention accessibility settings. Is this the recommended design I'm used to treating Microsoft applications as a guideline of good design, so, to put it more provocatively, am I to assume that disregarding system-wide settings is a good design practice (apps intended only for people with 20/20 visi
-
- Method accessible only through certain endpoint?
by acstacy
- 4 Replies
- Last post
by acstacy
- Is it possible to configure WCF to allow a method marked with [OperationContract] to only allow clients connecting through a certain endpoint
Basically, I have two endpoints, configured below
Code Snippet
< system.serviceModel >
< services >
< service name = " My " behaviorConfiguration = " returnFaults " >
&
-
- No master page?
by LeoXue
- 2 Replies
- Last post
by LeoXue
- It seems that there is no mater page in WPF. And someone has advised to use Frame.
But now I am developing several pages. These pages share a list of properties(These properties just belong to the pages, so I don't want to store them in Application Properties). When I extract them to a BasePage, and make those pages inherited from the BasePage, I get an error "Partial declarations of 'Page1' mu
-
- Adding an item to a table
by Martin.Robins
- 6 Replies
- Last post
by Martin.Robins
- I have a small example database with 3 related tables; Company, Currency and Country. The tables are related by foreigh keys so that a Company had a CountryId and CurrencyId.
I have created a default Linq to SQL definition (in beta 1) and I can iterate through the existing data easily with a foreach() loop. However, if I add an item to the existing Companies collection before the iteration
-
- How to close the Popup when user clicks anywhere outside the Popup and associated control?
by Rajesh Prajapati
- 14 Replies
- Last post
by Rajesh Prajapati
- I have created a style where I have changed the expanded portion of Expander to a Popup. A section of the style is given below.
<Style TargetType="{x:Type Expander}" x:Key="PopupExpanderStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Expander}">
<StackPanel Orientation="Ve
-
- linqdatasource and the contains method
by treybean
- 7 Replies
- Last post
by treybean
- Hi, I'm trying to figure out how to insert what used to be a LIKE clause on my linqdatasource's where clause. Basically, I have a text field that users will type in a search term that will in turn filter the results in a gridview. I've tried doing the standard Like "%@search_term%" only to realize that this is now linq and it doesn't seem to have the LIKE keyword. I then came across the
-
- Overriding XAML property values and restoring to them
by Jan Ku&#269;era
- 1 Replies
- Last post
by Sam Bent - MSFT
- Hello,
I have IsEnabled="False" in XAML, at the runtime, I set it to True and when I'm finished, I'd like to clear the value.
But ClearValue returns to true (guess this is the IsEnabledProperty default value). By 'clearing value' I would rather want to restore the value defined in XAML.
Is there any way how to apply property value only temporarily
Jan
-
- RichTextBox / Flowdocument VerticalContentAlignement not working
by R.Nijkamp
- 8 Replies
- Last post
by R.Nijkamp
- Hello all,
i am having difficulties with getting a RichTextBox to show its content with an verticalContentAlignment to Center.
I have the following setup:
RichTextBox 400x400
FlowDocument
Paragraph
Run <1 line of text>
Now when i do this richTextBox.VerticalContentAlignement = VerticalAlignment.Center then it wont place the text to the center of the richt
-
- NetDataContract, Strange serialization issue
by jchampagne
- 14 Replies
- Last post
by spetroku
- I'm trying to use the NetDataContract attribute as discussed here: http://pluralsight.com/blogs/aaron/archive/2006/04/21/22284.aspx .
I thought I had it working until I tried to introduce Impersonation using [OperationBehavior(Impersonation = ImpersionationOption.Required)] on my contract.
This causes my parameters on my service side to come in as "null", believe it or not. (I comm
-
- Problem on Clearing Dynamically Added Controls
by RyM
- 4 Replies
- Last post
by RyM
- Hi,
In my code below,
Grid1.Children.Clear();
does not seem to clear Grid1 of its children. What the code does seem to just display the new string on top of the previous one.
How do you solve this
private void DisplayHello(object sender, RoutedEventArgs e) { Grid Grid1 = new Grid(); Grid1.Children.Clear(); // Does Not Seen To Clear Label HelloMsg = new Label(); HelloMsg.Con
-
- Complex Object Data Binding
by Nat153417
- 6 Replies
- Last post
by Sam Bent - MSFT
- Hi,
If I have a complex object that represents data in hierarchical format i.e.
Store
Categories
Category
Books
Book
and I would like to bind this object to a complicated custom usercontrol that will use data at all level in the object hierarchy. How can I hook up events to get notification when any objects in the object hierarchy has been chang
-
- Error setting GroupStyle by Style
by Thomas S. Andersen
- 2 Replies
- Last post
by Brian Chapman MSFT
- I can't figure out why this will not work:
< Style TargetType = " {x:Type ListView} " >
< Setter Property = " GroupStyle " >
< Setter.Value >
< GroupStyle > ...
But I get: "Error 54 The Property Setter 'GroupStyle' cannot be set because it does not have an accessible set accessor."
Am I doing something wr
-
- Can't Reply to forum posts?
by Chango V. - MSFT
- 14 Replies
- Last post
by Frances83
- I was having this problem for a couple of days. With IE 7 (on Windows Vista), I was able to browse the forums but on hitting Reply I would get a generic error page. For a while I thought this might be due to some stale networking state, since I had not rebooted my computer for a while. Strangely, though, I didn't have the problem with Firefox.
Today I rebooted, and the problem persisted. So I s