In the context of a navigation-style WPF application (NavigationWindow, not XBAP):
Is it possible for a Hyperlink's NavigateUri to contain extra parameters, like path data or a querystring? E.g., is there some way I could set my NavigateUri to /Product.xaml/123 or /Product.xaml?id=123, and have my Product.xaml page be able to see that i...
I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate to specify icons and the others use DisplayMemberBinding to populate themselves. The icons column is 20 wide, the icons 16 but they're getting truncated by margins/padding/something. I can't work out where it's set.
Here's the essentials (I've remov...
I'm trying to do something like this...
<Style
x:Key="MyBorderStyle"
TargetType="Border">
<Setter
Property="BorderBrush"
Value="{StaticResource MyBorderBrush}" />
<Setter
Property="Background"
Value="{StaticResource MyBackgroundBrush}" />
<Setter
Property="Padding"
Valu...
Hi I am creating a listbox containing 2 text boxes each time a user clicks on a button (example controls to demo) and adding them to the stackpanel defined in the XAML.
<StackPanel Name="myStackPanel">
<Button Name="myButton" Click="myButton_Click">Click to add a new button</Button>
</StackPanel>
private void myButton_Click(ob...
I've done a pretty decent amount of looking on the inter-webs, searching for ways to improve the poor performance of my WPF DataGrid control. I came across this little gem from this article, but I can't seem to find anything about it in the documentation. Can someone point me to where in the docs I might find how to manipulate how Virt...
I am working on a prototype project and need to put a new layer of abstraction over my existing NAnt scripts, for which I'd like to use .Net, possibly even WPF.
What I have at present is a NAnt script which I call from a Command window (a DOS box, for the old-skoolers).
As I said, I'd like to wrap this inside a WPF application that I c...
Does anyone know if there is an equilant attribute of SVG's "gradientUnits=userSpaceOnUse" in WPF for a LinearGradientBrush? I can't seem to find this.
If not, does anyone know about how to calculate it in (C# or VB.NET)? For example if I have a StartPoint of 0,0 and EndPoint of 1,1 on a Rectangle that is 100x100, the angle is 45 degree...
Hi,
In my current project (presentation, slide software) i need to be able to make some simple XAML, text images, movies and stuff like that. If it were HTMl i would go with fckeditor or another free editor, but what to do in XAML? Anyone know if its possible to make one yourself (like executecommand to a IE)? or download one from anywhr...
I have a requirement to change the background colour of the active control (to make it easier to identify where the cursor is).
I've tried using a style with a trigger on the IsFocused property but I'm not having any luck at all; it doesn't seem to fire.
A XAML solution is most preferred.
Any ideas?
...
I want to make the Foreground property of a WPF Textbox red as long as its Text property does not match the Text property of another Textbox on the form.
I can accomplish this in the code behind and through a binding with a converter. But is there a way to do it in XAML only? (I was thinking of a Trigger of some kind).
...
Hi,
Does anyone know how to get the control associated with a region in Prism.
For example, if I have the following code to register a region
RegionManager.SetRegionName(Outlook.navigationContainer, "navigationContainer");
How can I get the control Outlook.navigationContainer via the name "navigationContainer"?
Thanks heaps.
...
Hi,
In Drag&Drop if I want to customize the cursors, I can subscribe to GiveFeedback on the drag source and set e.UseDefaultCursors = false, and the render the content I want.
But that only work if the drag source is my application. If I want to do the same when dragging files from explorer, for example, I can not subscribe to that eve...
do wpf forms have a timer control?
...
Background:
I have a ListView/GridView with several columns. In some situations, only some of the columns are shown. Since there is no Visible property for GridViewColumns in WPF, I set the width of the columns I want to hide to zero. Visually, this achieves the desired effect (and I actually modified the ControlTemplate for the GridVie...
It seem that GroupBox can only contain one element, if I place more than one it's won't go inside(or get deleted in blend).
Is this by design or am I doing something wrong?
...
I have a textbox and a button in my view.
Now I am checking a condition upon button click and if the condition turns out to be false, displaying the message to the user, and then I have to set the cursor to the text box control.
if (companyref == null)
{
Lipper.Nelson.AdminClient.Main.Views.ContactPanels.CompanyAssociation cs = new Lip...
Hi!
Enough is enough - I've just spent an hour searching around trying to find out how to read the ListViewSubItem values (if that's correct terminology in XAML) from a ListView. Here's a little ListView:
<ListView x:Name="CreatableAccounts" ItemsSource="{Binding Processable}" Margin="10,0">
<ListView.View>
<GridV...
Hi,
i have to develop a wpf control which shall have the same behaviour as the well known border.
The shape of the control shall be the new part. Every definable closed path shall be used to define the appearence of the control.
I need help to achieve this.
Currently i have no idea how to interchange the rectangle(??) with the closed p...
how to put an expander inside listivew?. I want to show expander as rows in listview.
...
I have been learning about TDD and BDD and using this as much as I can at work but in an environment that really isn't agile.
I want to try it out properly on a pet project at home. So, going with the agile approach, and the principle of having working software, what should I write first? Should I create some forms first (this will be W...