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

datatemplate for generic type is not working.

Hi. I have a generic type like that.public class TestItem<T> { public override string ToString() { return "TestItem"; } } public class Test<T> { public...

View Article


Rich Desktop Application | WPF and Expression blend

I want to create rich desktop content authoring tool in .net similar to articulate storylineIt will have feature like creating content by selecting templates, adding animation, picture , images,...

View Article


ListBox - Unable to cast object of type 'System.DateTime' to type...

Hello:I have a listbox with DateTime objects.I then have a method that I need to call and pass in the items from the listbox:public bool copyFiles(List<string> datesProcess)I attempt to call the...

View Article

why can not set Canvas.TopProperty in usercontrol

 is not a valid value for property 'Top'.public static UserControl1 getInstance() { if (instance == null) instance = new UserControl1(); return instance; } private void Label_MouseEnter(object sender,...

View Article

What approaches can we use when working with child tables in a datagrid control?

We've got several tables in our SQL Server database, that are in a parent-child relationship. Displaying the data from the parent table on the window is easy. And I don't think it would be too hard to...

View Article


GC and StaticResources

HiSuppose I create may ViewModel like this<SomeView.Resources><vm:myViewModel x:Key="myViewModelInstance" /></SomeView.Resources> Then I use it at some places:<SomeView ......

View Article

Service hit twice

Hi,I am having a WPF application where I am making use of event aggregagator to subscribe and publishing events. I am facing a problem now.My viewmodel is subscribing to an event which is published...

View Article

If this error occurred when using MEF in a WPF application, please ensure...

Hi,These problem seems very hard to solve. I know know how to fix it by setting "Copy Local to Flase" for those assemblies.If the Solution consist of more than 100 modules. These is not easy to fix.Is...

View Article


How to show the update of UI like an anime when InvalidateVisual not work

private void Label_MouseEnter(object sender, MouseEventArgs e) { //UserControl3.getInstance().SetValue(Canvas.LeftProperty, this.Width - 300); for (int i = 2; i < 100; i += 2) {...

View Article


Editable Multipleselectcombobox in wpf

Hi all,i am using wpf(mvvm).actually i  have a combobox, this combobox selecting one item only and this combox able to edit to search the items. i need multipleselect items and edit to search items in...

View Article

WPF Binding Path contains numbers

Hi,I have a binding path which contains numbers in the name of the path.This binding is applied on a datagridtextcolumn, below is the xaml:This Works:<DataGridTextColumn Header="Computer"...

View Article

How to make usercontrol3 not on top of usercontrol1

though i create user control3 later than control1, i set tabindexUserControl3 win3 = UserControl3.getInstance(); UserControl1 win1 = UserControl1.getInstance(); UserControl2 win2 =...

View Article

Fill a TreeView with differents types of objects

Hi everybody,I have a question about TreeView. In my application, I have two types of objects : "Folder" and "Server". I have a list of folders (ObservableCollection<Folder> Childs). Each folder...

View Article


Handle UnHandled Exceptions from AddIns Using Managed AddIn Framework

Hi,I have Activated a WPF AddIn with "AddInSecurityLevel.FullTrust". So AddIn is activated in new appDomain.When an Un Handled Exception occured in AddIn, my WPF Host is also getting crashed.How shoudl...

View Article

how to write event to command Programatically

hi all,      how to write Event to Command programmatically in .CS file.in xaml file i can write like this..  <i:Interaction.Triggers>                <i:EventTrigger...

View Article


color fill tool same as coreldraw in c# wpf

 I am trying to create a "paint bucket tool" using the Graphics-Class of System.Windows.Media . But I don't know how can I fill a closed area with a color specifying a point inside this area using...

View Article

Why do I need to unblock files when down load from internet?

Hi,Why do I need to unblock files when down load from internet? Since I can install without unblock. What's the difference between unblock and without unblock?Because I am facing one problem with Team...

View Article


wpf multipages printing

what xaml controls should I use to achieve wpf multipages printing|?

View Article

Edit Content in Winform ElementHost

Hi all I hope someone can help me to understand ..<o:p></o:p>In my example i have a winform + elementhost <o:p></o:p>If i try to add some object into elementhost it doesn't work...

View Article

Blocking application from starting from a wpf-client

I have a WPF-client. Code in C#. I have a database with application that we want to block from starting. We have different users. They login to the WPF-client. We want to block different application...

View Article
Browsing all 18858 articles
Browse latest View live


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