WPF: One-way binding on entire DataGrid
Is there a way to mark the entire DataGrid as one-way binding? ...
Is there a way to mark the entire DataGrid as one-way binding? ...
WPF Memory Leak Problem. Memory stable with small documents, but grows until OOM exception with large documents. Background: We've developed a WPF application for controlling a dynamic display. There is a Design component, where the user lays out the display document, and a document Display component. Elements in the display can con...
I'm learning wpf and c#, and now i need an idea for wpf project. Help me please, ideas, or sites and else... Thanks! ...
Hello all, My question is related to the design-time support of WPF. From MSDN I read, The WPF Designer provides a framework and a public API which you can use to implement custom adorners, tools, property editors, and designers. But the vast majority of the examples I have found are trivial, and do not illustrate much con...
I understand how to use ClickOnce and deploy an application to a web site for updates. But what if I want to have more control over the install such as the folder and icons and what-not. How can I do that? Also, I don't want users to download from the deployment site, initial install has to be off a CD. My current solution would be to t...
Pretty simple question, but can't seem to find a complete answer on here... I need to databind in xaml to a property of a class member in codebehind. <Window x:Class="Main"> <customcontrol Name="View" IsChecked="{Binding ElementName=RecordProp, Path=IsViewChecked}" /> ... Where the code behind looks like: class Main { ....
I am trying to restyle the document viewer in WPF and I have restyled everything but the tool bar at the bottom. The problem I having is figuring out how to style the toolbar at the bottom and its child controls. Does anyone know how to restyle this? Thanks. ...
Hi, I am restyling the default tooltip by creating an Application level typed style resource which applies to every tooltips. In the tooltip ControlTemplate, I need to access (Binding to) a property value from the element which defines the actual tooltip. The defining element can be of any type. Binding RelativeSource FindAncestor works...
Hi, I'm looking into using MVVM and while I understand it for the most part, there is one thing I can't get my head around. Imagine I have a View and ViewModel combination that show a list of foobars. When the user selects a foobar in the list and clicks the edit button I want the foobar to be shown in a popup dialog window so it can ...
I'm trying to create a series of bound columns in a RadGridView, and I'm using a template to create hyperlinks in two of the columns. Here is basically what I have: <telerik:GridViewDataColumn IsReadOnly="True" UniqueName="Distributor" DataContext="{Binding Distributor}" CellTemplate="{StaticResource linkTemplate}"/> and, <DataTe...
Hi I would like to know how can i do to set the label for X axis and y axis? Righ now, i have a chart with the values, and I format the tooltip, but i can't realize how to set the label for X an Y axis. Another thing is, Is posible to execute zooming in a chart series, I mean, if i have the x axis in years, i would like to change it to...
Hi, I have a MediaElement, but how can i call a function when the property "position" of MediaElement changed? Position is not a dependencypropertie.... Thnx ...
I think I already know the answer to my question, but I want to put it out there anyway. I have an app with a ton of command handlers, each with special logic in their CanExecute methods to enable the bound Buttons appropriately. Now I'm in a situation where I don't want any of the logic to execute, because execution results in calls t...
Is there a better way than this to determine the row a user double-clicked on in a data-grid? Private Sub ResultsGrid_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Dim node As DependencyObject = CType(e.OriginalSource, DependencyObject) Do Until TypeOf node Is Microsoft.Win...
How do I use data-binding from code (C# or VB)? This is what I have so far, but it is displaying Binding.ToString instead of m_Rep.FirstName. Public ReadOnly Property TabCaption As Object Get Return New Label With {.Foreground = Brushes.Black, .Content = New Binding("FirstName"), .DataContext = m_Rep} End Get End Prope...
Hi, everyone! I just wanna ask if there's a way where I could put an object (circle) at the end of a particular line path. Similar to this: --------------------------------------------O Start End Right now, I have the following code for tracing the line: <Grid x:Name="LayoutRoot" > <Path Stro...
Hi All, I'm trying to update my ObservableCollection as the FileSystemWatcher notifies changes. I know this is not possible because of cross thread operations. So i would like to get the name of the file created/deleted/renamed when the event is fired and update it in the UI thread once the event is completed, as we do in BackgroundWor...
General context : MVVM application. I have a View called JobView. Its DataContext is a class called Job. Within Job is a property called AuthorizationNeeded. A Border in the view has a style (from a resource dictionary) and that style has a data trigger which starts and stops a storyboard based on the bound property AuthorizationNeed...
Hi everybody. I'm having a problem with wpf listbox. my problem is that when I add items to listbox using listbox items and set the display memeber path nothing is showing. I want to use ListBoxItem or somthing similar to explicitly set tooltip for each item. Thanks in Advance. namespace WpfApplication1 { /// <summary> /// Int...
Hi there, I'm trying to change the layout of a databound treeview from this: To this: And of course selection must works properly: Do you have any ideas about how to do that. I've been trying to change the template but I can't find out a way to have this behavior. Maybe a component already exists... Thanks for your help ! ...