hello,
i noticed that when i create a custom control in visual studio it adds generic.xaml into the Themes folder.
what is the purpose of this folder, what is special about generic.xaml? why when i try to link to my own dictionaries from generic.xaml they do not seem to get picked up by the application?
thanks!
konstantin
...
Hello,
I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4. This library defines a MenuItem class in the System.Windows.Controls namespace.
No problems with SL3 because there is no MenuItem class elsewhere in the Silverlight class library; but now I need to use another control in a Silverlight 4...
I have EmployeeList as a observableCollection of Employee Object.
The Employee object has Salary.
I want to display few values like average Salary of the Employees in XAML, and the UI field should be automatically updated when an item is added to the List or When Salary field is changed in any of the items updated.
This can be achieve...
Hi,
I have an Image declared in some XAML as:
<Image Width="188" Height="56" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="10,0,0,10" Grid.ColumnSpan="2" Grid.Column="0" Source="..\Images\myImage.png" />
This is a static image and does not need to change during program execution.
I also have an image which does need...
Using SL4, I have a DataGrid defined as follow (simplified)
<UserControl.Resources>
<ResourceDictionary>
<DataTemplate x:Key="MyDataTemplate">
<Grid>
<TextBlock Text="{Binding SomeField}">
<ToolTipService.ToolTip>
<ToolTips:ToolTip>
...
I'd like to create a slide-down animation for an Grid element in my WPF (.net 4.0) application. I assumed that I could do the following:
create a visual state (closed, renderTranslate.y=-ActualHeight, solved via Binding with converter)
create a visual state (open, renderTranslate.y=0)
create a container to clip the animation
use the de...
I am creating an application using the MVVM pattern and somewhere I have a view which contains a ComboBox.
<Controls:SettingsComboBox x:Name="Setting"
SelectedIndex="{Binding SteeringIndex, Mode=TwoWay}"
IsEnabled="{Binding SteerAttached, Mode=TwoWay}">
<ComboBoxItem Content="{Binding Path=on, Source={x:Static Localization:C...
Hi,
I have a GridViewColumn which I have bound as so:
<GridViewColumn Header="Validated" DisplayMemberBinding="{Binding Path=Validated, Converter={StaticResource imageConverter}}" />
The Binding Path = Validated returns an Enumerated value, the imageConverter takes that value and returns a System.Windows.Media.Imaging.BitmapImage. I ...
I'm having issues referring to image files and other XAML files when the files are in a higher level directory then the XAML file from which I am referring to them from. Is there a way to refer to the root of the project directory?
For example I have the following files & directories:
Project Root Folder: \root
Icon in root folder: \r...
I have some inputbindings in a Window:
<Window.InputBindings>
<KeyBinding Key="Space" Command="{Binding Path=StepNext}" />
<KeyBinding Key="R" Command="{Binding Path=ResetSong}" />
<KeyBinding Key="Left" Command="{Binding Path=StepPrevious}" />
</Window.InputBindings>
The commands are defined in my viewmodel a...
In my desktop-based WPF-application I want to implement a toolbar with key actions (add, update, delete etc.), something like you can see in any web-interface mail-service.
In order to make it I have a large PNG-image with all possible icons (regular, active, disabled, etc.)
So, my question is how to show not the whole image, but only ...
I'm trying to bind a collection to a ListBox using only XAML. It kind of works, but it's only displaying MyProject.mainItem (which is the object type), instead of the actual values.
In the class that is assigned as the DataContext, I have this:
ItemCatalog.Add(new mainItem { Ref = "555555", ItemName = "First Item" });
In the XAML on ...
hello,
probably a trivial question: i need to fill a rectangle with a checker board pattern where each cell is 1x1 pixel in size. how to create a vector geometry for this pattern in XAML? i am not using Blend I am doing my vector graphics by hand.
thanks
konstantin
...
The text is grayed out when the DatePicker is disabled and I want the content to be easier to read.
What I did on some TextBoxes was:
<Style TargetType="TextBox">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="Black" />
</Trigger>
...
Hi,
I have a GridViewColumn created with the following XAML:
<GridViewColumn Header="Validated" >
<GridViewColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Path=Validated, Converter={StaticResource imageConverter}}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
The images in the .png...
I have the following XAML code, having removed the styling and formatting tags:
<ListBox Name="ManageImageList">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<Image Name="ManageImageThumbnail" Source="{Binding ImageName}" />
<StackPanel Orientation="Vertical" >
...
The MSDN documentation for Silverlight now states in several places:
The entire Triggers syntax is a discouraged technique in Silverlight 4. [1, 2]
Expression Blend seems to happily support and encourage their use, though, and there are plenty of blog posts extolling the use of Triggers and Actions without any caveats.
What is th...
I have a question regarding what XAML to use to achieve my design. I currently have an Image area on the screen, the width can vary. Above the image, I have two toolbars, each with numerous buttons. One of them I want to float/dock to the left edge of the image, and the other one I want to float/dock to the right edge. Of course, as ...
I have a WPF application consuming data using Entity Framework 4 and Self-Tracking Entities. In which I have a window with 2 controls in it, one that shows the "Details" portion of an object using a ContentControl and templates from a merged resource dictionary. Another with a ListBox of Groups the object in question belongs to and a Com...
Hi,
I have a control data template. The viewmodel behind it has a property IsReadyForUse. When this property is false, i want a semi transparent overlay on the control. This overlay must prevent the user from editing any of the items on the control. Once the property goes back to True, the overlay should dissappear.
If someone could p...