I've come across a strange scenario where a frame refuses to refresh its content.
I can kinda understand what's happening but the solution is not coming to me.
I have a page that has a frame (Frame1) and several buttons. When I click on a button a page is loaded into the frame. This works perfectly in most situations.
Private Sub btnI...
I'm trying to bind a TextBlock's Text property in a very dynamic way. I need to get the Path from an underlying object.
Here's the DataTemplate:
<DataTemplate DataType={x:Type local:DummyClass}>
<TextBlock Text={Binding Path=???} />
</DataTemplate>
The DummyClass object has a property named "FieldValuePath" - the path that needs to...
I have some scrolling text animation modified from this post on MSDN. I'm having two issues with it, though.
The first is that I need to be able to update the text within at periodic intervals. However, when OnTick() fires, I get the following error, "The calling thread cannot access this object because a different thread owns it." I'v...
Is there a way in XAML to set a style that will apply to all controls? For example below I would like to put a margin on all my controls. I can add a style for each type by change the TargetType to Button, CheckBox, etc. Instead, I would like to set it up like I have below where I set the style on all types that inherit from Control:
...
I'm searching how to skin an application with a complex resource:
I have a skin file in which I put canvas, with images other canvas something like whis:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
<Style x:Key="MainBackground" TargetType="{x:Type Canvas}">
<Setter Property="Canvas">
<Setter.V...
This is similar to a question I asked a couple of days ago. However, I now have a better understanding of the problem, so I'd like to take another crack at it.
I am creating an MVVM app that (among other things) displays a list box with alerts for the user. These alerts relate to various routine tasks that have to be carried out periodi...
I've been teaching myself WPF through Sells/Griffiths' "Programming WPF", and I've found it a great resource, but I'm trying to take some of the concepts they've introduced me to and go a step further, and I'm running into a conceptual snag on how to put the pieces together to accomplish what I'm trying to do.
In this exercise, I'm tryi...
When using the wpf elements of my application, everything styles to the operating system, but when I use an OpenDialog or a MessageBox, it renders the older Windows 9X way. Is there an easier way I can do an Application.EnableVisualStyles() equivalent call to make the message boxes and dialogs look the same as the rest of the applicatio...
I have a 3D application in WPF which basically is supposed to zoom in and out as the MouseWheel event is fired. I have attempted to subscribe everything possible, but can't find what it is which is handling it.
Is there a way to find out what is? Or is there a way to have the event not handled, or for an encompassing UIElement to get to...
I'm implementing a custom date converter in WPF, the idea to be more clever about date entry, a la Outlook (being able to enter "today", etc.) So I've written my own converter, which is working. It formats the user's entry in the format M/d/yy. So for example, if they enter: 8-2, they'll see 8/2/09. Lovely.
The question is: there ...
Hello,
Does WPF provide a framework to handle undo/redo? If not, what's a common way to do it?
Thanks!
...
Hi,
I have a datatable as
DataTable dt = new DataTable( "Table1" );
dt.Columns.Add( "c1" );
dt.Columns.Add( "c2" );
dt.Columns.Add( "c3" );
DataRow dr = dt.NewRow();
dr["c1"] = "100";
dr["c2"] = "100";
dr["c3"] = "100";
dt.Rows.Add( dr );
dt.AcceptChanges();
printListView.DataContext = dt;
I have also a listvie...
Hey Guys,
How can I make Button to look like LinkButton, and I don't want to use
Hyperlink...!!
Any suggestions
...
Is there a custom UserControl created in WPF that allows for RDP access. I know there's the ActiveX control for RDP 5.1 but I would prefer something that can be embedded within a Silverlight application.
...
I'm just getting started with the MVVM pattern in WPF and I decided that the most elegant way to structure my code was injecting the view-model in to the view's constructor.
This is all well and good, but ReSharper gives a warning in the XAML that my view doesn't have a default constructor. I'm assuming that this is so that I can constr...
I have a TextBox, and a TextBlock within the Border. The TextBlock's Text property is bound to TextBox's value. When I type into the TextBox, the Border changes its width according to the TextBlock's new size.
There is an event handler for TextBox.TextChanged in which I test whether the size of the border exceeds a certain number. If it...
I'm building a WPF order manager app and i've run into a situation i'm not sure how to deal with.
I want to re-bind the list of purchase orders requests for each order but i only want to do it if the the purchase order requests panel is visible in the app (they double click the order to show the list of purchase order requests). The pro...
I need to write a gauge control in WPF for a project at work. By gauge control, I mean something akin to a traditional car speedometer: a circular face with numbers and ticks around the circumference, and a needle pointing to the current value. Although I could get my employer to purchase a third-party control, or even find a free one so...
XAML Code
<ComboBox Height="23" Margin="69,105,111,0" Name="comboBox1" VerticalAlignment="Top" ItemsSource="{Binding StoreTypeTable}" DisplayMemberPath="StoreTypeName" SelectedValuePath="StoreTypeName" IsSynchronizedWithCurrentItem="True" SelectedIndex="0"/>
C# Code:
My Class:
class StoreTypes:nuClass
{
private WSOntsu.ServiceSo...
I'm currently facing huge problem i.e I'm showing Image and some text in a image the problem is when I change content property of button from code, my image disappears and only assigned text is shown, I wan to retain image and just wann change the text, Any suggetions how to handle it
<Button x:Name="btnPrescan" Margin="8" Grid.Column="...