Silverlight Out of Browser technology and WPF ClickOnce on the surface have similarities. Easy and simple deployment, the ability to specify the level of trust access to the underlying host, etc.
What are the key issues I need to consider when choosing one over the other?
To put a finer point on it, I'll be deploying LOB apps on a corp...
I have an object that in a simplified form is as follows:
public class MyObject
{
public bool Activate {
get { MessageBox.Show("My Status"); }
set { Do Some Stuff }
}
I have a DataTemplate that maps the "Activate" property to a check box like so:
<DataTemplate x:Key="ComponentResourceKey TypeInTargetAssembly={x:Type ...
Hello,
I was wondering if there was a way to have another binding as a fall back value ?
I'm trying to do something like this:
<Label Content="{Binding SelectedItem.Name, ElementName=groupTreeView, FallbackValue={Binding RootGroup.Name}}" />
If any ones got another trick to pull it off that would be great.
Thanks,
Raul
...
Hello
I am trying to use exception validation on a cell in a DataGrid together with a style on the DataGridTextColumn's EditingElementStyle to set a tooltip with the content of the error. The error occurs but is not being caught or displayed within WPF.
The code and exception are shown below. Can someone tell me what I need to fix this...
I have a style template (below) that does not update when my Tag binding updates. The data itself updates and I receive no binding errors so expect everything is bound correctly it is just that the style doesn't seem to update at all. I have notifypropertychanged events in all the right places afaik so doubt this is the issue.
Thanks
...
I have a couple of views that I display as overlays on the main window by binding the visibility to a boolean property in my ViewModel.
The main window looks something like this:
<Grid>
<vw:MainContentView/>
<!-- Overlays (normally invisible) -->
<vw:NotificationsView/>
</Grid>
...
I am trying to clone a WPF bound object (a listbox) with code like the following
pgeIncidentReport newPage = new pgeIncidentReport();
newPage.SetReportData();
string listXaml = XamlWriter.Save(newPage.lstUsers);
However, when you view the listXaml string, I noticed that my databinding directives, for both the list itself and the Data...
I have a textbox in a listview itemtemplate. I want to change the background color of the textbox to red whenever the length is greater than 75 characters, and I need the background color to update as the user types. What is the best way to achieve this in WPF?
...
I am trying to host a custom Windows Forms control in WPF. My custom control does not have a public constructor, and it has a static Create() method which looks something like this:
public abstract class MyCustomControl : UserControl
{
internal MyCustomControl(...) { }
public static MyCustomControl Create(SomeEnum kind)
{
sw...
The standard WPF TextBox control does not scroll the overflowing text into caret position as one types text into the control. Is it possible to create this behavior in a singeline WPF TextBox control? If so - How?
An example of this behavior is the default way a HTML input type=text acts in most (if not all?) browsers.
...
It is time to write the GUI for my project, and I am wondering what technology to use. I did most of my .NET GUI development in .NET 1 & 2, so I know Windows Forms reasonably well. I am vaguely aware of WPF, but not yet attempted to "get into it".
Are Windows Forms dead or dying? Is WPF a good technology to learn? Is it the future, ...
Given below xaml using .Net3.5 -
<ListView Name="RawData" AlternationCount="2" ItemsSource="{Binding}"
ScrollViewer.VerticalScrollBarVisibility="Visible" Grid.Row="1"
Grid.ColumnSpan="4"
IsSynchronizedWithCurrentItem="True"
sorter...
Hi
I have very wired problem.
I have a WPF application that calls web services.
When I run the application I can see the communication to the services through fiddler.
I wrote some UI automation test for the WPF application, using White framework from thoughtworks.
When I run the tests with NUnit, the tests will start up the applica...
I need a control to call DragMove() for a Window on MouseLeftButton down, but still function when clicked.
If DragMove() is called, Click and MouseLeftButtonUp are not ever fired because DragMove() is a blocking call until they release the mouse button.
Does anyone know a workaround to make this work?
I have tried this hack based on T...
I would like ask about the name of the control that is used in MS Project for scheduling? and if it is possible to give me some idea how programmatically it works?
...
What is the best way to get back the XAML/XML value of a FlowDocument?
I noticed there isn't a .Value, .Text, .Caption, .ToXml(), etc...
UDPATE:
I'd like to be able to get access to it initially to serialize to disk or database. Treat it as its own document format. Later translating it to other formats would be nice.
Also been wonder...
On my viewmodel I've got an int property and I want to expose it for editing with a ComboBox, with a limited set of choices, such as 16, 8, 4 and 2. Is there a way to specify the choices in the XAML, while still binding the value back to the viewmodel? I'd want to do something like this:
<ComboBox SelectedValue="{Binding MyIntProperty}"...
One of the big problems with WPF is anti aliasing.
In fact, that's why UseLayoutRending was introduced in WPF 4.0.
However, it does not work for me in the following sample:
<StackPanel UseLayoutRounding="True" TextOptions.TextFormattingMode="Display" >
<Line X1="0" Y1="0" X2="200" Y2="0" StrokeThickness="1" Stroke="Black" SnapsToDev...
I have a lot of XAML code and would like to stay compatible with WPF 3.0 while taking advantage of the WPF 4.0 features. For example, I'd like to use UseLayoutRounding if it's available. Of course, I could do this in C#:
void SetProperty(..)
{
#if WPF4
set property
#endif
}
Is there an elegant way to accomplish the same thing in XAML...
Hi, I'm pondering taking the plunge to WPF from WinForms for some of my apps, currently I'm working on the combined barcode-reader/text-entry program (healthcare patient forms).
To be able to process the barcode characters, I rely on the Keypreview property in WinForms (because barcodes can be scanned regardless of what control has the ...