Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

How to achive a Dynamic-Static-Dynamic structure in a TreeView

I'm working on a software to display some Database structure. I'm using SMO to retrieve Information about tables, Vies an Procedures. The Object Structure is as follows:- Database    - Tables    -...

View Article


Image may be NSFW.
Clik here to view.

WPF DYNAMIC TREE VIEW....

Hi,I have a method it will return a TreeViewItem                      public TreeViewItem loadtree()       {           DataTable table1 = new DataTable();           table1.Columns.Add("EmpId");...

View Article


FluidMoveBehavior in Toolbar

We tried to have a FluidMoveBehaviour in a Toolbar. But it does not work. This is how it looks like:<ToolBar DataContext="{Binding MostRecentlyUsed}" HeaderTemplate="{StaticResource...

View Article

How to close a window by clicking the button using MVVM

Hi,I have a button in my window. I want to close the window by clicking the button. How to do this using MVVM. Thanks

View Article

Measure Dilemma - Invalidate Measure On Elements Across VisualTree

Hi,I am working on a Demo and I seem not to understand measuring and arranging completely in depth. I read alot about it hence I think I am not a newbie at understanding of measureoverride and...

View Article


Lookup value using data binding relation in DataGrid

I have a dataGrid which is bound to a contact table. The contact table has an ID value (integer) but the company name is stored in a second parent table called company. As it is a parent relation it...

View Article

Page Navigation

I need to use the method AddBackEntry() of the navigation service wjere I need to save current state of my page which implements IProvideCustomContentState interface. How to do this ???

View Article

Per-page orientation in a WPF FixedDocument

When printing from WPF using the PrintDialog, you can only set a default page orientation for all pages to print. I'm using a FixedDocument and create multiple pages for different content that I layout...

View Article


Data grid

i need a grid with following details.FieldOldNewUpdateID121NameabcdefabcAddressxyzmnoxyzPhone1234561231). what ever the OLD column cells contains, same has to be filled in Update Column2). if i select...

View Article


WPF HwndWrapper COM exception within WCF threads

Hello Folks,I have a curious issue that is causing me a lot of headaches.  I am creating a rectangle geometry in a server (wcf) thread.  I do this by using the following code:...     RectangleGeometry...

View Article

Binding ElementName over different namespaces

Hallo, I have a Slider <Slider x:Name="OpacitySlider" VerticalAlignment="Center" Minimum="0.2" Maximum="1" Value="0.5" FontSize="15" LargeChange="0.1" /> in the main application and a control...

View Article

filter ListView by range date on one column

Hi All.How to filter ListView by range date of one column? I will appreaciat for sample.Thanks.

View Article

Make start a storyboard on a event from ViewModel (MVVM)

I have a storyboard that should start anytime a certain event - from another object - is called.So far, I solved using a trick like this<DataTrigger Binding="{Binding IsUpdating}"...

View Article


GridView: last column to fill available space?

I have a ListBox with a GridView presenting the data in three columns. The first two columns are fixed width. Is there an easy way to let the width of the last column always adapt to the space...

View Article

Image may be NSFW.
Clik here to view.

BindingBase.StringFormat, standard date and time formats, customized using...

I am formatting dates using the StringFormat property of a data binding (System.Windows.Data.Binding). When I select a different region/language using the regional settings of the Windows control...

View Article


Render a Visual aliased to a bitmap

I need to render some Grid Visual to a bitmap to use it in documents like MS Word. The bitmap should be copied via the clipboard. I've found the RenderTargetBitmap class to do that and the rendering...

View Article

MultiDataTriggers

Can we use conditional expressions like 'AND' / 'OR'  in conditions for multi-datatriggers ???

View Article


TemplateBinding

Why is the following working only for the Rectangle, not the TextBox ?    <Window.Resources>        <ControlTemplate x:Key="MyProgressBarTemplate" TargetType="ProgressBar">...

View Article

Exception when getting an Instance of the ModuleManager

I've been trying to write a WPF application using PRISM and MEF and I've been able to get the Shell up and running. I want to be able to load Modules on demand so I need an instance of IModuleManager...

View Article

WPF converting a string into a FontWeight

Hey guys,Anybody know how to set 'FontWeight' through a variable?  I have a program that records this (and other) information.  I store the value that is held just as "Bold" or "Normal" and then I want...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>