Im trying to look into using the WPF WriteableBitmap class to allow my application to apply an opacity mask to an image.
Basically I have a blue rectangle as an image, and another 100% transparent green rectangle image over the top of the blue one.
When the user moves their mouse over the green (transparent) image, I want to apply the ...
I have a WPF User control that binds to a data table and generates checkbox and a masked edit box for each row in a data table. I have several instances of this control on my form. The total number of checkboxes to be generated is over 200. I am seeing some rendering performance issues. The form loads with all of the static controls ( Te...
I'm having weird issues with the LargeImageSource for the Application menu (using Office2007Blue theme)
My image is 48x48 but it appears to be scaling down to 10x10. It's not using SmallImageSource at all.
<r:Ribbon.ApplicationMenu>
<r:RibbonApplicationMenu>
<r:RibbonApplicationMenu.Command>
...
I have the following xaml:
<DockPanel>
<DockPanel>
<CheckBox IsChecked="{Binding Path=Test}" />
<CheckBox IsChecked="{Binding Path=Test}" />
</DockPanel>
<DockPanel DockPanel.Dock="Left" Width="10" Background="Blue">
<DockPanel.Style>
<Style>
<Style.Triggers>
...
I'm currently creating a WPF Exception Window, much in the style of the MessageBox (static show methods). In attempting to style it similarly, I have created a ExceptionWindowOptions enum which contains the value, RightAlign.
When the RightAlign flag is tagged in the MessageBox class, the window title is aligned to the right (next to th...
I have this library with custom Color properties. I wanna be able to use these properties in XAML like this:
<Style TargetType="{x:Type eg:MyWindow}">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="CustomClass.CustomColorProperty"/>
</Setter.Value>
</Sett...
Hello,
I'm trying to overcome a limitation that doesn't allow me to bind to regular clr properties.
The solution I use uses custom dependency properties that in turn changes clr properties.
Here is the code
class BindableTextBox : TextBox
{
public static readonly DependencyProperty BoundSelectionStartProperty = DependencyProperty...
I am currently working within a WPF user control (the root element of my XAML file is "UserControl"), which I know is being hosted inside a Window. How can I access a property of the Window using data binding?
Does anyone know why simply
<Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type Window}}" Path="..." />...
Hi
I'm using the latest version of infragistics DataGrid (9.2).
Unfortunately, Paging is not supported out of the box.
I wish to implement this behavior by myself.
I refer to paging as the ability to give the grid an illusion of many results and fetch for it the necessary items depends on the view as it is needed.
the reason for me ...
I use a componentone datagrid for WPF.
added a unbound column with a bool.
for every checked row, I need to add an ID value to a field, as soon as the checkbox
is checked for this row in the grid.
...
Hello, I'm moving my old app from windows forms to WPF and have encountered an error with underlined lines in this method. Could anyone help with that problems on DoEvents; SuspendLayout; ResumeLayout. My old method:
private void FindDataBases()
{
string tempDBName = comboBoxDataBases.Text;
// ((FrameworkElement) this).Cursor = C...
I have a WinForms ComboBox control at the top of my form. Different ElementHost controls are shown based on what is displayed in the ComboBox.
The problem occurs when I try to tab into the first WPF CheckBox on the ElementHost. The CheckBox gets focus but does not have any focus retangle because WPF doesn't know that the keyboard was th...
I have a xaml file with this code:
<GridViewColumn
x:Name="lvCol3"
Header="Quantità"
Width="120"
>
<GridViewColumn.CellTemplate>
<DataTemplate>
...
Overview
I am using CompositeWPF to create an app using C#. This really should make a difference to the answer as my problem would exist outside of Prism.
I have an ItemsControl which is bound to an ObservableCollection containing my ViewModels. This is working fine. In my DataTemplate I have my required controls bound in XAML. One...
In WPF, how do I use reflection to find all classes in a project? I'm interested in obtaining the ones whos names match a certain regular expression.
...
I'm constructing a formatted FlowDocument from XML. The XML is well formed and consists mainly of 10,000 nodes each with a single node with a 6 character string value.
Parsing the XML to an XElement and constructing the FlowDocument in memory takes about 5 seconds. Assigning the FlowDocument to the Document property of a RichTextBox in ...
I am new to WPF and have a problem with a small project. I am building a tester to simulate a device that is controlled by UDP. I have a couple of classes that implement the UDP as an async implementation. I had the main window code-behind polling the receive buffer for data and updating. It worked, but was very clunky. So I moved all th...
I'd like to bind a list of dates to the BlackoutDates property but it doesn't really seem to possible. Especially in a MVVM scenario. Has anyone accomplished something like this? Are there any good calendar controls that play nice with MVVM?
...
I have a Viewport3D with user controls in it. Each of the user controls are a Viewport2DVisual3D control with the Visual set to the user control. Each control has buttons that, when clicked, will rotate the camera so that it's facing another user control. While the camera rotates to face the other user control, the original user control ...
Does anybody know of a tutorial or sample code on how to create a simple designer control in WPF?
I am trying to write a simple designer in WPF where users can drag and drop data items (charts & lists) on specific points on a page (e.g. Line 3, Coloumn 24).
...