hello,
i have a wpf control that i'm developing.
this control contains and encapsulate another control.
i want to expose a property of the inner control to the window that consumes the control.
i also want the inner control to perform logic when this property changed.
any suggestions?
...
I'm converting a WPF app to Silverlight.
The app includes a class which inherits from Shape. It overrides the DefiningGeometry property to return a Path object. However, the Silverlight Shape class doesn't have a DefiningGeometry property.
Reading on the internet I've found others with this same problem. The solution seems to involve i...
I have a ViewModel with a State property and a Datatemplate wich contains a simple rectangle with a background brush. Whenever the State of the ViewModel changes I want to trigger an animation that starts with the color the brush currently has and animates it to the new color representing the new state. I have done this with datatriggers...
As a follow up tho this and this other question, I am now trying to understand (out of curiosity) if WPF totally/mostly relies on Direct3D calls (and not 2D DirectDraw ones) even for standard controls, such as buttons or even the container window itself.
Wikipedia states:
All graphics, including desktop items like windows, are based...
I want a ComboBox which has no dropdown button but can still be opened when I click on the text in the combobox.
Is this possible with a WPF combobox?
...
Adding more than one child to a WPF StatusBar results in poor layout with little option to customize. For example, this code:
<StatusBar>
<StatusBarItem>
<TextBlock>Ready</TextBlock>
</StatusBarItem>
<StatusBarItem>
<TextBlock>Set</TextBlock>
</StatusBarItem>
</StatusBar>
Results in:
This is not the ...
I am trying to resize a ListView in WPF. I want to figure out how to force a ListView to shrink it's width to only fit the width of it's columns. I have a ListView that I bind using the View property and add some GridViewColumns like so:
<ListView ItemsSource="{Binding MyCollection}">
<ListView.View>...
I have two different styles for my window:
Regular - window has title bar and can be moved/resized
Fixed - window has no title bar and is fixed at the center of the screen
The window is too wide for either of the monitors on my development machine, but it's a perfect fit for the target/install machine. So, when debugging, I need to b...
Exactly as the subject, How to create oval button in WPF application?
...
I have a textbox and a button in my form. I enter some text and click on Mouse double it should It should Call the Button Command,CommandParameter. Is this possible?
There is no code behind.
...
When I try to get the eventinfo of a WPF 'rectangle', if the routedEvent is a native event to the object (e.g. 'MouseDown') it works (assignments are for example only).
DependencyObject d = rectangle;
string routedEvent = "MouseDown";
EventInfo eventInfo = d.GetType().GetEvent(routedEvent,
BindingFlags.Public | Binding...
Hi Everyone,
Having a problem trying to get a Scale transform working using dynamically created animations
here is the code
Storyboard story = (Storyboard)Resources["Zoom"];
//Add the slides to the stackpanel
foreach (UIElement element in _slideList)
{
//Apply the zoom story
Fram...
Hai
presently i have grid like this.
<Grid Name="tGrid1" Grid.Row="0" Background="Black" >
</Grid>
<Grid Name="Grid2" Grid.Row="1" Background="LightBlue" >
</Grid>
<Grid Name="Grid3" Grid.Row="2" Backgrou...
How can I automatically run some code when a WPF form is closed?
...
So basically, I have a bunch of TextBoxes that the user gets to fill out. I've got a button that I want to keep disabled until all the TextBoxes have had text entered in them. Here is a sample XAML TextBox that I'm using:
<TextBox Name="DelayedRecallScore" TextInput="CheckTextBoxFilled" Width="24" />
And here is the function that I'm ...
How to set the default style for a type in code-behind e.g. for
<ScaleTransform x:Key="scaler" ScaleX="1.25" ScaleY="1.25" />
<Style TargetType="{x:Type ToolTip}">
<Setter Property="LayoutTransform" Value="{DynamicResource scaler}"/>
</Style>
I need to set the style for the tooltip in code-behind instead of in xaml.
...
I'm using Visifire. I have plotted about 500+ points on a line chart. However, after plotting the points, a horizontal scroll bar is placed on the bottom of my chart. I then have to scroll over to see the entire chart. Is there a "SizeToFit" method I'm missing so I can see my entire dataset? If not, how can I achieve this?
Thanks in adv...
Hello, I am trying to get a selected text in a TextBox embedded in a listView. This seems so easy, but I couldn't really find a elegant solution.
When I click on "Create Rule" menu item, I want to get the TextBox in which the menu item resides.
I appreciate any help! I spent way too long of my time on this...
...
...
I am trying to get Undo/Redo keyboard shortcuts working in my WPF application (I have my own custom functionality implemented using the Command Pattern). It seems, however, that the TextBox control is intercepting my "Undo" RoutedUICommand.
What is the simplest way to disable this so that I can catch Ctrl+Z at the root of my UI tree? I...
I'm writing a simple calendar control for better understanding of WPF. I have a CalendarHeader control that contains two buttons (next,prevoious) and a dependency property CurrentMonth defined as
public static DependencyProperty CurrentMonthProperty = DependencyProperty.Register
("CurrentMonth", typeof(int), typeof(CalendarHead...