I have some buttons in a SketchFlow Screen created by:
cloudButton buttonPin = new cloudButton();
MapCanvas.Children.add(buttonPin);
the XAML code for cloudButton is:
<Button Content="Button" Style="{DynamicResource PinCloudButton}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<pi:NavigateToScreenAction TargetSc...
All,
I am coming from a primarily ASP.NET background, but have experience with Windows forms as well. I am trying to learn how to layout my WPF app. I have the following code:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="*" />
<RowDefinition Height="40" />
</Grid.R...
All I wanted was different bindings on different tabs, so switching tabs would toggle command availability. I thought CommandBindings worked that way.
But I've spent the last while trying to get this simple sample to work. Either I fundamentally misunderstand (and that would not be a first) or something's wrong.
I add a CommandBinding...
I have successfully rendered my scene (simple geometric shapes) using a VisualCollection of DrawingVisuals, and I can successfully hit test them to see when the user clicks on one. I now need to show that element as selected.
sample code I found online changes the opacity of a drawingvisual from 1.0 to 0.4 when clicked, but this is not...
I've been developing with WPF for many months now. It's a great framework and I'm able to do fancy, elegant stuff that would have been a lot more difficult with WinForms.
However, I do have the feeling that for normal "line of business" type of applications without any special UI requirements, it still takes me longer to code the UI in ...
Hi,
I am trying to style an expander control.
But i am unable to style a certian area of the control.
The figure can be seen in this post.(figure 1)
http://stackoverflow.com/questions/2889778/wpf-expander-button-styled-so-it-is-inside-expander-header
I want the circle color to be that of my datagrid.
How can i accomplish that in WPF.
...
I'm trying to validate data in my MVVM application using IDataErrorInfo, but I'm running into some problems.
When I set my TextBox with an invalid value, the validation works fine. But after I set the value of the TextBox to a valid value and I get this exception:
A first chance exception of type 'System.ArgumentOutOfRangeException' oc...
Guys
I'm trying to bind a "second level" property of my class to a combobox.
What am i doing? I'm assigning a ObservableCollection to be the datacontext of the grid that hold all my textboxes and one combobox.
The Hierarchy can be described as
public class ListaLogradouro : ObservableCollection<Logradouro>
{
}
public class Logradou...
I'm using DevPartner to track down memory leaks in a long-running .NET/WPF app. DevPartner tells me what classes are being leaked over time (primarily WeakReference, but also EffectiveValueEntry and WeakDependencySource).
What I need to know is what other object(s) still have references to these in order to prevent them from being garb...
I would like to animate when items are added/removed from an ItemsControl. Does anyone have ideas/links on how to achieve this?
I think fading-in should be doable by attaching an animation to the Loaded event. Fading out seems it would be much harder, though.
As for sliding, when an item disappears, I want the rest of the items to slid...
Hi
I want to gray out text in the WPF text block. how do i make it?
Regards
Raju
...
Is it possible to write this out in a slicker/shorter way? all it is doing is setting 3 properties and taking too much room IMO..
<Style x:Key="CellStyle" TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource BasicFont}">
<Setter Property="Foreground">
<Setter.Value>
<Binding>
...
i am looking for a way to quickly peek into collapsed row details in DataGrid.
when a user mouses over the rows, there should be a quick peek layer next to the cursor that would have a summary of what is in details. Ultra fast is key here.
looking for something equivalent to layered div in DHTML. No transparency effects needed.
From...
Hello,
With the following resource definition
<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="AccountTypeValues">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="domain:Account+AccountType" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
the designer complains t...
I'm trying to create 1 complex composite shape on an InkCanvas, but I must be doing something wrong, as what I was expecting to happen, is not. I've tried several different incarnations of accomplishing this.
So I have this method.
private void InkCanvas_StrokeCollected(object sender, InkCanvasStrokeCollectedEventArgs e)
{
...
is it possible to get snoop to profile WPF Windows launched from WinForms app?
...
Hi,
I've XAML that looks a bit like this:
<UserControl x:Class="MyNamespace.MyClass"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas...
Should I use ApplicationCommands.Close for closing modal dialog boxes or is that command considered reserved for closing the application? If it is the latter, do folks create Close commands for each dialog box or just a single Close command for all their modal dialog boxes?
...
I've created a ToggleButton to show and hide a piece of UI and I've sent its Content to an icon.
I now want to add a shortcut key to the ToggleButton but I'm unsure how to do with without binding a command as well. Since all I am doing is binding to the IsChecked state, I don't need a command to do any other functionality and creating a...
When I first open my window that uses the wpf toolkit datepicker it has today's date highlighted in the calendar but nothing in the associated textbox (expect a water mark of mm/dd/yyy).
I want to reset the datepick to that initial state after a user selects a date and "submits" so when they use it again it not at the date they previous...