Hi,
I have a datagrid where the first column contains a checkbox to let the user selects specific rows. I have added a checkbox in the datagrid column header to check or uncheck all the rows.
Is it possible to add this functionality only with binding in XAML (no checked event).
<sdk:DataGrid AutoGenerateColumns="False" Grid.Row="1" ...
In my project there is a library bar which is created by the Element Menu by a click event. the element menu is located at a grid, which is located at the window. (see XAML data) While moving the tagged element menu/grid i want the library bar to move over the surface as well. I'm not really sure how to do it: do you think i need to use ...
Let's assume I have the following attributes on my assembly:
[assembly: XmlnsDefinitionAttribute("urn:foo", "NS1")]
[assembly: XmlnsDefinitionAttribute("urn:foo", "NS2")]
Then let's assume I have a few classes in that assembly:
namespace NS1
{
public class Class1 {}
}
namespace NS1
{
public class Class2 {}
}
namespace NS2
{...
Quick question, and I hope I'm using the right terminology :)
I'm using Visual Studio 10. Is there a keyboard shorcut for splitting an empty element tag?
For example, I want to turn:
<element />
into:
<element></element>
quickly. This is just a minor nuisance, but editing XAML, for a beginner like me, is very time consuming. I sp...
Hi,
is there a way to declare an array of types in xaml?
maybe something like this?
<x:Array Type="x:Type">
<x:Type se:MyType1/>
<x:Type se:MyType2/>
<x:Type se:MyType3/>
</x:Array>
...
Hello out there,
is there any way to expand just the root node of a WPF tree in XAML?
Thanks!
Dirk
...
My label is displaying '7/27/2010' instead of 'July 27, 2010'. Can someone please tell me why my markup code is apparently ignored?
RibbonLabel Content="{Binding Source={x:Static sys:DateTime.Today}, StringFormat='{}{0:MMMM d, yyyy}'}"
Cheers,
Berryl
...
There are a few issues I notice with the beta version of the WP7 tools:
The ApplicationBar no longer causes a page to resize it contents with the CTP workaround
Using the ApplicationBar from App.xaml and imported as a static resource does not work as expected
In the CTP version of the WP7 tools when using an appbar and navigation fro...
This is my XAML:
ItemsSource="{x:Static app:HealthCheckSystemCategoryLookup.All}
Is there a way to make HealthCheckSystemCategoryLookup.All a function instead of a property?
...
Is there a way to format the XAML that is generated when a FlowDocument is saved? Currently, it is all run together on one line, and I'd like to break it up into its elements, with line breaks and indenting, to make it a little easier to read.
Here is the code I am using to save a FlowDocument from a WPF RichTextBox as a XAML file:
// ...
I have and issue with using the XmlnsDefinition attribute within a silverlight 4 assembly.
Here's the test case:
In AssemblyInfo.cs of the silverlight project I add the following:
[assembly: XmlnsDefinition("urn:foo", "SilverlightApplication1")]
[assembly: XmlnsDefinition("urn:foo", "SilverlightApplication1.SomeNamespace")]
I edit M...
Hi,
I have an image that i want to make it when the user hover with mouse over it, another image next to it will be displayed.
The code below, doesn't work:
<Image Source="volumen.png">
<Image.Style>
<Style>
<Style.Triggers>
<Trigger Pro...
I really need some more ideas as to what's causing this, currently it's driving me up the wall.
I have a Xaml user control which contains another user control like this :
<UserControl x:Class="MyModule.View.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2...
I want to make a simple style for the textbox. I want to retain everything about the
standard textbox look and feel except one item.
OnFocus on want to be able to change the border color of the textbox.
I have written the following and it does work. However, everything is restyled, I have to
declare height, the look and feel of the no...
Hello Stackies
I'm using a DataGrid inside a StackPanel inside a Grid which causes the GridView to be wider than its preferred size. All the columns are displayed correctly but after the last column the end of the ItemsSource data type name is displayed. Apparently its is drawn in the background and hidden by the columns in the normal c...
I have a dll that includes a wpf window that references a local namespace in xaml. That local namespace is used to reference a class in the same project with the same namespace.
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:selectedOption="clr-...
I created a Style template in Blend 4 for a button, but I'm not sure how to link the Label's Content to the Button's Content property.
Here's the style XAML:
<Style x:Key="NavButton" TargetType="Button">
<Setter Property="Background" Value="#FF1F3B53"/>
<Setter Property="Foreground" Value="#FF000000"/>
<Setter Property="Pad...
Hello, I'm working on a Silverlight application and I have a hard time setting the relative path of an image in my application.
This is a brief picture of my project directory:
MyProject
L images
L mountain1.jpg
L SpriteObjects
L MountainFactory.cs
L GameScreen.xaml
Originally, I painted an Rectangle usi...
Remember the Amiga boing demo? I was reading a 25th anniversary of the Amiga article and they mentioned it. Brought back some memories. I remember a WPF (called Avalon at the time) demo put together to mimic it. I did some googling and found it here. However, it seems to be extremely out-of-date as the XAML markup and the code-behin...