I have a xaml view like this:
<Tv:TvPanel
xmlns:Tv="...">
<Tv:TvPanel.Resources>
<Tv:Parameters x:Key="parameterList">
<Tv:ParameterDefinition ParameterName="MyParam" InitialValue="123abc">
<Tv:ValueBinding Value="{Binding ElementName=myTextBox, Path=Text}"/>
</Tv:ParameterDefinition>
</Tv:Parameters>
<Tv:TvXmlDataPr...
How can I get the DPI in WPF?
...
Databinding in WPF/Silverlight revolves around dependency properties, DataContext objects and DataSource objects. As far as I can tell, dependency properties are the same thing as ambient properties and their significance to binding is basically that if you put a bunch of widgets in a container then you only need to specify a DataContext...
Hey,
Im new to wpf, and looking for good tutorials to help understand triggers better but im not having much luck. So i thought I would seek some help here. Here is what im trying to do, i have a ScrollViewer that has a stack panel, in the code behind I browse a media folder and added MediaElements to the stackpanel using a foreach loo...
Hi,
I created WPF as C# dll.And i loaded that dll in one of my VC++ dailog.
The dialog appears half black,then from half of dialog shows my cotrol as half.
Whats my mistake.How can i do that.
...
Hi I am creating Grid view column dynamically like this GridViewColumn idColumn = new GridViewColumn(); grdMain.Columns.Add(idColumn). Now I want to attach columHeader to created column dynamically. I did GridViewColumnHeader idColumnHeader = new GridViewColumnHeader(); Now How will I attach this Header to idColumn.
...
Are there any good sample UI applications which illustrate multi threading best practices in .net?
The scenario I am thinking of is a graphically rich scorecard where the kpi's are being updated from several different sources and threads.
Although I am interested in WPF a Winforms sample application would I believe serve just as well ...
Hi!
I have something like orders table binded to datagrid.
I want to disable editing on rows, where order date is expired (deadline date > current date): show them greyed and ban entering into edit mode.
here what I have
<Style TargetType="{x:Type WPFToolkit:DataGridRow}">
<Style.Triggers>
<MultiTrigger>
<MultiTrigger....
<ListBox.Template>
<ControlTemplate TargetType="{x:Type ListBox}">
<blendables:TimelinePanel IsItemsHost="True"
UnitSize="{StaticResource unitSize}"
UnitTimeSpan="1"
BeginDate="1/1/2009"
EndDate="12/31/2009"
/>
</ControlTemplate>
</ListBox.Template>
What is...
I want the user to select a directory where a file that I will then generate will be saved. I know that in WPF I should use the OpenFileDialog from Win32, but unfortunately the dialog requires file(s) to be selected - it stays open if I simply click OK without choosing one. I could "hack up" the functionality by letting the user pick a f...
I'm rendering a WPF grid with multiple elements (buttons, textbox, ...) to a bitmap which is then used as a texture for a 3D surface in a Direct3D scene. For user interaction I create a 3D ray from the 2D mouse cursor position into the 3D scene finding the intersection point with the gui surface. So I know where the user has clicked on t...
Here's the scenario. We use a large XML configuration file for one of our server products. This file is fairly well layed out and is validated against an XSD file.
It's time now though to build a configuration GUI for maintaining this file and I would like to dive into WPF to do it. I could lay out a seperate form for each config sectio...
I have a scrollviewer wrapping a treeview.
I populate the treeview programmatically (it is not bound), and expand the treeview to a predetermined treeviewitem. That all works fine.
My problem is that when the tree expands I would like the scrollview that parents the treeview to scroll to the treeviewitem that I just expanded. Any...
I've got a StackPanel with a group of expanders in, how do I set it so that only expander is expanded at any one time?
Cheers
AW
...
Hello, I have such a question about WPF. I noticed, that in WPF there is some thing with visualization. In example when i click on the menu ant it expands, Font in menu items looks a little with blur, not clear. But when i see longer, i noticed, that font becomes clear. I thing there is becouse of performace ant hardware accelerating tri...
Hello, Im developing some wpf app. Basically i have two types of windows: search windows and insert/edit windows. When i developed win forms apps, i used a trick, called MdiParent. In that way i had ability to put my caled search type windows in a "stack". In orher words if i called 5 different search windows from meniu, they apeared in ...
I need to support UI language change through the application menu.
The texts are localized using resource files (similar to approach 1 here)
if I set the Thread.CurrentThread.CurrentUICulture before the ctor calls to InitializeComponent(), the UI is changed as it should.
However, if the CurrentUICulture is changed during the normal run...
I am looking for a simple tool that allows the translators to edit .resx files, in order to translate the applications' texts.
Visual Studio's Windows Resource Localization Editor is unable to edit these files, unlike Winforms applications.
Any suggestions?
Edit: I've found a nice free tool at CodeProject that does excatly what I ne...
Hi,
I've got a custom WPF control with a DependencyProperty MyString
I'm using the control within an ItemsControl on my View and want to fish a value out from the ViewModel.
As the DataContext of the control becomes each Item in the ItemsSource of the ItemsControl I thought I'd just be able to use FindAncestor but it dosnt seem to wo...