In my app I have toggle buttons that have three possible states; "Unchecked", "Checked", and "Previously Used". When the user comes to this particular screen, some of the toggle buttons will be in the "Previously Used" state to show what work has been done. Clicking on a toggle button (no matter the current state) will place it into the ...
As a C++ stickler, this has really been bugging me. I've always liked the idea of the "language-independant framework" that Microsoft came up with roughly a decade ago. Why have they dropped the ball on this idea? Does anyone know the reasoning behind it?
...
Wondered if this has ever happened to anyone out there. I have a WPF application that I publish using ClickOnce.
When the ClickOnce link is reached I click "Run" and the app is installed on my machine. However, when I click the application from the start menu, it checks for updates, then does nothing.
Am I missing a setting?
...
How do I access an element contained in a DataTemplate that is displayed through a ContentControl. I have a ContentControl which hosts a PresentationModel along the lines of:
<ContentControl x:Name="ContentContainer"
Content="{Binding}"
ContentTemplate="{Binding ContentControlTemplate, ElementName=this}...
Hi
I am kind of lost here, and I don't know what to do
I have a problem that I don't know what the source of it.
We have a large wpf application, that is built similar to prism (composite application)
Actually we are using lots of prism library.
I wrote a module to replace an existing module.
And the application now is loading my modul...
I don't understand the purpose of the WPF browser appliction. Is it simply another way of serving information through a browser, or is it not intended to be used for external deployment?
...
I have a Window instance which I show by calling wInstance.ShowDialog() from a button click and I close the window by pressing Alt+F4. The issue now is that I cant call wInstance.ShowDialog() again. How can I re-use the same window instance again.
Exception :
Cannot set Visibility or call Show or ShowDialog after window has closed.
...
If I had a really large ListView whose Visiblity were set to Collapsed, would it populate during InitializeComponent() or only if the Visiblity were changed to Visible?
Thanks.
EDIT:
I should have mentioned, in my scenario, the ListView would be populated via bindings. I want to know if there will be a performance hit to having a List...
I have an MVVM application with various TextBox controls and a virtual keypad. (This application is to run on a touch screen system, with no keyboard). To change the value of a TextBox, the user has to touch the TextBox and then use the virtual keypad to enter a number. How can my VM know which TextBox to change when it gets the command ...
I have a DataGrid defined as
<wpftoolkit:DataGrid
x:Name="AccountsDataGrid"
AutoGenerateColumns="False"
ItemsSource="{Binding Path=Accounts}"
ColumnReordered="DataGrid_ColumnReordered"
SelectionUnit="FullRow"
RowHeaderWidth="0"
HorizontalAlignment="Stretch"
VerticalAlignmen...
I have a WPf ListView that i am replacing the View with GridView to give me columns etc.
I want to apply a Cell Content Template to the Column and do a binding from the Cell template to the GridViewColumn (I have subclassed the column and it has some extra properties)
any ideas?
...
I have a simple WPF single window application contains Textboxes and Buttons. And I also use NotifyIcon and DateTimePicker of Windows Forms in WPF window. How can I effectively dispose all the controls?
...
Ok, I have an ItemsControl binded to a List, each second the List objects change, so I have to resort them, so each second I call the List.Sort() method. Checking in the Watch panel in VS2008, I can tell the list gets sorted, but the ItemsControl doesn't. How can I make this work?
Thanks!
...
For a WPF project in need to save the width and the column order of a ListView because these are things the user can change. I guess it is no problem getting the current width but the current position seems to be a bit difficult.
In WinForms there was something like index and displayIndex but I don't see it in WPF.
How is it done?
BTW ...
My presenter defines its own view:
public SmartFormPresenter(SmartFormView view)
{
View = view;
View.DataContext = this;
}
In the view I have an element with x:Name="MainTabControl":
<DockPanel LastChildFill="True">
<TabControl x:Name="MainTabControl" DockPanel.Dock="Top" ItemsSource="{Binding SmartFormAreaPresenters}">
...
I was looking at FrameworkElement.MesureOverride on MSDN, trying to understand the mechanism behind the layout engine. I stumbled upon this interesting note :
During this process, child elements might return a larger DesiredSize size than the initial availableSize to indicate that the child element wants more space.
Ok. I had ref...
I think this is a bug in the WPF framework, with out going into depths of my program and why I am doing what I am doing, I wrote a simple test app to prove my theory.
Can someone confirm this issue, and suggest possible work arounds for a series of dialogs to be executed before putting the app into its run loop?
using System;
using Sys...
I'm having problems with the rendering of a WPF app over a remote desktop connection.
The applications chrome is rendering, but none of the content is coming through, as if the window is not drawing. Instead the previous content of the screen is showing in it's place.
This has been a problem with the application running on both Vista ...
I've got a listView displaying a few text records. I need to increase the height of rows (working on a touch screen so I need thicker rows) without increasing the font size.
This is probably pretty trivial but I have no clue and can't find much on google.
Any help appreciated.
...
I am making a Silverlight UserControl where the consumer of the control needs to be able to provide custom attributes and content. I thought this would be as easy as exposing my custom attributes as dependency properties and deriving from ContentControl, but apparently not.
Here are my questions regarding this:
I got the attribute to...