|
I don't get the point. Did you mean adding multiple textboxes to that StackPanel?
|
|
|
|
|
<ListBox x:Name="DemoList"> <br />
<ListBox.ItemsPanel> <br />
<ItemsPanelTemplate> <br />
<StackPanel Orientation="Horizontal" /> <br />
</ItemsPanelTemplate> <br />
</ListBox.ItemsPanel> <br />
<DataTemplate> <br />
<Grid><br />
<Grid.ColumnDefinitions><br />
<ColumnDefinition><br />
<ColumnDefinition><br />
</Grid.ColumnDefinitions><br />
</Grid><br />
<TextBox grid.column=0 Text1="{Binding integers}"/><br />
<TextBox grid.column=1 Text1=";"/><br />
</DataTemplate><br />
</ListBox>
You might also want to take a look here[^].
|
|
|
|
|
The original question was how could you wrap the list into one textbox, not how to display the list horizontally."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Good people,
I built an application in WPF. It uses a splash screen.
Sometimes when I (and presumably other people) am starting an application, I click on it and switch to another app that I am working on. However, it seems that the app I built will only load properly if I don't click on anything and let it fully load before switching to another application or otherwise clicking anywhere on the screen. If, at any time between the splash screen and the main window loading I click on another application or send open something else, the computer says that my app has an error and it has to shut down.
Do you have any thoughts about how to make it more robust so that it can load without being so vulnerable to other clicks?
Thanks in advance for any help you can provide.
|
|
|
|
|
Dear friends ... i am new to WPF
i have a rounded shape like these
<Window x:Class="ProtonUI.Logon"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Logon" Height="381" Width="500">
<Grid>
<Path Name="xyz" Data="F1M85.679,25.511C85.679,39.6 74.257,51.024 60.167,51.024 46.077,51.024 34.655,39.6 34.655,25.511 34.655,11.422 46.077,0 60.167,0 74.257,0 85.679,11.422 85.679,25.511z" Margin="149,0,230,63" Name="path1" Height="74.976" VerticalAlignment="Bottom" Grid.ColumnSpan="2">
<Path.Fill>
<LinearGradientBrush EndPoint="141.363,252.324" MappingMode="Absolute" StartPoint="141.363,201.3" Transform="1,0,0,-1,-81.196,252.324">
<GradientStop Color="White" Offset="0" />
<GradientStop Color="#FF020202" Offset="1" />
</LinearGradientBrush>
</Path.Fill>
</Path>
</Grid>
</Window>
now i want mouseover event for this shape ? how to create?
when i see property window for this shape there are lot of events , but when i double click on the event ... i get an message ...
like these...
"To generate an event handler the class 'logon',specified by the x:Class or x:Subclass attribute,must be the first class in the file. move the class code so the it is the first class in the file and try again"
sorry i could not understand what the message says ...
can some one correct me ....
by
joe
|
|
|
|
|
Hi,
Does anyone knows if there is any reporting solution for silverlight(Like Crystal Reports).
|
|
|
|
|
Well, Google[^] returns a fair few hits."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi.
I stoped with the reporting with silverlight because know i'm working on something else.
As soon i have results, i'll send you the results.
Thanks for the tip
|
|
|
|
|
|
hi.
thanks for the tip.
As soon i get results i'll tell you.
Regards.
|
|
|
|
|
Say, if the TreeView control is 200px width and the TreeViewItem's width is more than 200px, I need to show the tooltip. Is there a way to show tooltip on that scenario in WPF?
|
|
|
|
|
Hello
I have created a class inherits frameworkelement which i am using to graphically represent an object in my WPF project. My first attempt overrides the onRender method and draws a rectangle, using property's length and width.
I am doing this to reduce the overhead required for each object as i will have a number of these on the page at one time.
This works fine, now i want to do the same thing but draw a more complicated shape the path. I do not know where to start with this, has anyone attempted this before if so how did you do this??
Here is my working code for simple rectangle.
Protected Overrides Sub OnRender(ByVal drawingContext As System.Windows.Media.DrawingContext)
drawingContext.DrawRectangle(Status, New Pen, New Rect(0, 0, conveyorLength, conveyorWidth))
MyBase.OnRender(drawingContext)
End Sub
Thanks
|
|
|
|
|
You can do something along those line:
protected override void OnRender(DrawingContext dc)
{
dc.PushClip(new RectangleGeometry(new Rect(RenderSize)));
dc.DrawGeometry(Background, new Pen(BorderBrush, BorderWidth), GetHandleGeometry());
dc.Pop();
}
public StreamGeometry GetHandleGeometry()
var result = new StreamGeometry();
result.FillRule = FillRule.EvenOdd;
using (StreamGeometryContext ctx = result.Open())
{
ctx.BeginFigure(new Point(s.Width, 0), true, false);
ctx.ArcTo(new Point(s.Width - r, r), CS, 90, false, SweepDirection.Clockwise, true, true);
ctx.LineTo(new Point(r + w, r), true, true);
ctx.ArcTo(new Point(w, 2 * r), CS, 90, false, SweepDirection.Counterclockwise, true, true);
.............
}
return result;
}
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Hi,
I wanna show an image in WPF that is created by a process,
e.g : we have a method that is named createWPFImage()
Image createWPFImage() { ... }
So, the output of createWPFImage() is an Image.
In the XAML code we have a something like below :
<StackPanel.ToolTip>
<StackPanel Orientation="Horizontal">
<Image Width="64" Height="64" Margin="0 2 4 0" />
<TextBlock Text="{Binding Path=Description}" VerticalAlignment="Center" />
</StackPanel>
</StackPanel.ToolTip>
Now, How can I bind the output of createWPFImage() to the Image in XAML code ?
I would be appreciate if you guide me.
|
|
|
|
|
There are many different ways of accomplishing this. You could give your Image a name, and bind to it directly in code, or you could use a ViewModel, and bind to the image via the VM, or you could use an ObjectDataSource which allows you to call this method, and bind to it from your image.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thanks Pete, I'm gonna use VM.
Do you know any samples ?
|
|
|
|
|
_Mohammad_ wrote: I'm gonna use VM.
Good man. You can find code in my Songbird[^] article that shows how to bind an image from the VM.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
i want to develop WPF application for Window on Mac. is It ok? or i should buy any other Desktop system for Development on Expression Blend. Right now i have Hp(TouchSmart Pc) but it performance is not good.
Right now i want to purchase any other for High performance can any body recommend any PC.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
Hi,
so your question is the recommended hardware requirement for designing WPF with Expression Blend?
The official site says something about the minimum requirements:
http://www.microsoft.com/expression/products/Blend_SysRequirements.aspx[^]
So I guess a fast processor (with two or more cores), 4GB RAM or more and a good graphic card will do the job. I would say that you don't have to buy a MAC, just upgrade your machine or buy a new one.
Regards
Sebastian
|
|
|
|
|
Hello,
For my scientific application, I need a WPF control to display matrices of floating-point numbers. The sizes of matrices differ from 1*1 to approx. 100k*64. Rows may differ by foreground color (2 types), and columns may differ by background color (also 2 types).
An example is here: http://bartoszbien.com/public/MatrixCtrl.png.
Using a ListView , I've been able to display values in cells, and to color the text as needed. However, I'm not able to set background color for the columns, because setting a CellTemplate for a column does not work (by design) when the DisplayMemberBinding is set.
Do I need to write my own control from scratch, or is it possible to reach my goal using the ListView ?
My style for the rows:
<Style x:Key="MatrixRowStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Style.Triggers>
<DataTrigger Binding="{Binding Type}" Value="Type1">
<Setter Property="Foreground" Value="Lime" />
</DataTrigger>
<DataTrigger Binding="{Binding Type}" Value="Type2">
<Setter Property="Foreground" Value="RoyalBlue" />
</DataTrigger>
</Style.Triggers>
</Style>
My DisplayMemberBinding for the columns:
column.DisplayMemberBinding = new Binding(string.Format("Values[{0}]", count));
The Values member comes from:
public class MatrixRow
{
public EType Type { get; set; }
public double[] Values { get; set; }
}
The ListView 's ItemsSource is assigned with an IEnumerator of MatrixRow objects.
|
|
|
|
|
How about writing a custom
GridViewColumn.CellTemplate ?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Issue: How to expose A/D attributes to/with Silverlight
Environment: VS.NET 2008 Pro w/Silverlight 3
What I have done so far:
I currently am able to get the currently logged in user by doing this in my
.aspx file:
<param name="initParams" value="FullName=<%= GetObject("WinNT://" & request.servervariables("AUTH_USER").replace("\", "/")).FullName %>"/>
But this will only allow me to access server variables, not AD attributes as needed.
Anyone know the best path for me to go down?
I'm thinking generally I need to perhaps utilize: ADSI (GetObject), or LDAP/Directory Services
Cheers,
Rich
|
|
|
|
|
Something similar was asked earlier here[^].
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
man, I look forward to when it's more straightforward.
Thanks for the pointer.
|
|
|
|
|