Hi, I have a usercontrol that when I double click on it, I want it to zoom in, if it's not already. If it is, then the double click will zoom out on it. I can get it to work with code behind, but I can't get it to work in xaml.
Here is the code behind that handle's the double click event.
void MyObjectMouseDoubleClick(object sender, M...
I'm just starting with WPF and I'm facing a visual issue after displaying TabControl on the Left and Rotating TabItem text header 90 degrees.
The issue is that the top border of the TabItem header is not showing.
The code is this:
<Window x:Class="WPF_Exemplo1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentatio...
Hi all,
I'm struggeling for quite some time now with binding my ListView to a table. I've read various solutions, but I keep running into trouble.
I have 2 database tables: Customers and Products. For each Customer there is a list of Products.
In my first attempt I bind to the generated Linq-to-SQL code. That means I binding immediate...
Hi, I have this control (see picture). I like when check one option in this control, using styles or with triggers other option enable or disable. This is valid or I have other option for do that?
...
I am creating a pretty standard business application in WPF. I need to use icons for the toolbars and menu items, and in a few other places. I'd like to know the answers to three (likely interrelated) things:
What format should I use for the images? ICO? PNG? JPG? GIF?
How do I store the images in my VS2008 project? As files on disk? I...
I have this simple XAML example:
<Window x:Class="DynTemplateTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Window.Resources>
<DataTemplate x:Key="ItemTemplate">
<ItemsCo...
I'm new to XAML, so please be aware my question may contain some topic misundrestanding.
Is it posible to bind XAML usercontrol global (relative to window) position to check if it's currently visible on screen? Usercontrol is inserted inside ScrollViewer and I think on something like:
<UserControl x:Class="Test.MessageControl"
...
I would like to find a way to see what happens while my XAML is being loaded. What classes are being instantiated, and in what order? Which properties are being set, to what values, and in what order? Which methods are being called (e.g. BeginInit, EndInit, etc.), in what order, and with what parameters? That sort of thing.
(If anyone's...
I'm having some trouble with the output of a DateTime value. My computer's current culture is set to de-AT (Austria).
The following code
string s1 = DateTime.Now.ToString("d");
string s2 = string.Format("{0:d}", DateTime.Now);
results in s1 and s2 both having the correct value of "30.06.2009".
But when using the same format in XAML
...
My point is this. For test i need when user check chk1 the chk2 element changed the property IsEnabled to False, but i can't do reference to chk2 element.
This is Style XAML.
<Style x:Key="styleCheckBox" TargetType="{x:Type CheckBox}">
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
...
Quick Explanation
One Silverlight (3.0) project with several XAML pages.
I want to load the Silverlight control pointing to different XAML pages depending on certain events. I'm considering doing this with Querystrings. Anyone have any luck with this or best practices?
...
I see some people use it, but couldn't find any explanation on the net...
Any other special symbols (other than Binding /) that you know of?
...
I have two ItemsControls, one a ListView, and one a custom control I am developing.
I have set the ItemsControl.ItemsSource property of both controls to the same IEnumerable object, in this case, a List.
I apply a filter to the ItemsControl.Items property of my custom control (this.Items.Filter = myFilter) and my control refreshes as...
When I bind Menu Items with an ObservableCollection, only the "inner" area of the MenuItem is clickable:
In my View I have this menu:
<Menu>
<MenuItem
Header="Options" ItemsSource="{Binding ManageMenuPageItemViewModels}"
ItemTemplate="{StaticResource MainMenuTemplate}"/>
</Menu>
Then I bind it with this D...
I have a few images in EPS format which I would like to use in my WPF application. Is this possible?
If not, is there a way to convert them to XAML so I can use them directly in WPF? I don't have a budget for Expression Design or Adobe Illustrator, and there are only a few images to convert.
...
I've retemplated the DataGridRow in the Microsoft WPF DataGrid to the below, the problem I'm having is if the user clicks on the border elements of the template the Row(s) don't get selected. Is there a way to make the click on the border cause a row selection.
<Grid x:Name="LayoutRoot" Margin="0,0,0,-1">
<Border x:Name="DGR_Bor...
Hi all,
I want to change the behaviour of the editable ComboBox. This is the behaviour I want:
Make the TextBox (PART_EditableTextBox) only visible when IsEditable is true and when the ComboBox is open. I've worked this out in the ControlTemplate.Triggers part:
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsEditabl...
I'm looking for help with a WPF problem I've been wrestling with for a while. I've styled a tab view, moving the tabs onto the left and displaying them vertically. These tabs sit inside a border with rounded corners at the top and bottom left.
I'm running into a problem when the tabs are scrolled. Instead of the rounded corners clippi...
What is the best way to design a memory viewer control (a la Visual Studio's Memory Window)?
The control will be mapped onto a byte array and a value representing the starting address (optionally, the control could be mapped onto an object that interfaces to "memory" directly with read/write methods and events for memory changed).
The ...
I am trying to change the Background Color of the ParentGrid when the child control ( Button ) ChildButton is clicked
I want to achive this using Triggers but not sure if this is even possible
Please Suggest a way to DO this through XAML only
<Grid Name="ParentGrid" Background="Red">
<Button Name="ChildButton" />
</Gri...