|
John Simmons / outlaw programmer wrote: fingered out my problem, and will be posting an article about it this weekend.
That is cool.
|
|
|
|
|
Hi, I'm beeginer in WPF...I have a big problem for me
I don't know how to label be biger when text box get focus?
Want to resolve this problem with trigger...
Anybody?
modified on Tuesday, June 22, 2010 10:44 AM
|
|
|
|
|
Use GotFocus event and change the Font in your event handler.
|
|
|
|
|
Ok, thank you... I want to resolve this with trigger, but can so
|
|
|
|
|
You can solve this using Trigger only if the Label and TextBox are part of a ControlTemplate or DataTemplate.
Try Binding the Element's IsFocused property with Converter. The converter should check for the True/False and return the FontStyle.
|
|
|
|
|
While you can do this with triggers, in this case you will have a lot of effort because you are working against two disconnected elements.
"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 all,
I'm learning combine wcf and nhibernate in silverlight, i follow instruction of this link http://www.squarewidget.com/post/2010/02/NHibernate-101-Silverlight-4-with-NHibernate-2n.aspx for creating sample
But i have an error about [Instrument is not mapping], i changed the hbm.xml file and run again. The error message is not changed. It seems the Instrument.hbm.xml is not read. Could you please help me to solve this problem? Or if you have any source code relate to silverlight, wcf and nhibernate, please give me.
Any suggestion will be welcomed
Regards,
Tuan Lam
|
|
|
|
|
How can we draw a line/line_segment with animation (kind of sketch). What I need is something like Telerik line type chart. If three points are there - 10,10 20,20 30,10 - drawing a line between them is pretty simple. But, how to show that line is being drawn? And yes, I want a dynamic solution. Because, these point values are generated on run-time. Which approach should I take?
|
|
|
|
|
I have a WPF chart which is in a Visual Studio 2010 project.
I have installed the WPF toolkit and am using the Chart from it.
For my first test I'm displaying 2 LineSeries graphs. Each has the same x and y axis value ranges and such.
I want to have an axis definition that will display the graphs with the 0 axis in the center of the chart.
I tried using Chart.Axis and that just put the axes on the top and right without any affect to the graphs themselves.
I tried using the LineSeries.DependantValueAxis and IndependantValueAxis but with several LineSeries charts i'm not quite sure about that either.
I'd appreciate any input on best practise for defining the axes when using multiple lineseries graphs ina single chart.
Thanks
|
|
|
|
|
Everyone,
I have a simple grid that binds two a table, and that table fk's out to two other tables. The table being user, the foreign keys relating to usertype and store. For some odd reason, the usertype binding won't populate, while the store binding will. I've ensured that the relationships exist in sql, and in my edmx. I've include the [Include] attribute on both properties in the user partial classes to ensure they're loaded. I've tried specifically binding them columns myself, and having it autobind the columns through autogenerate columns with the same result. It's not a case of bad foreign keys, as I can query for any particular record on the edit user dialog and it brings back the usertype perfectly for each record. Any idea's?
Thanks,
Ryan
|
|
|
|
|
In my project i need to create a graph which works same as an oscilloscope .
which will be the best graph control that i can use here ....
thanks in advance
|
|
|
|
|
"best" is always a subjective value.
Get the WPF toolkit for Visual Studio and use the Chart. Change the internal to a LineSeries. You need to keep your x axis values fixed while changing the y value in the array you use to populate the ItemsSource of the LineSeries. So keep deleting item[0] and add the new point to the end of your List.
|
|
|
|
|
I've added a CheckBox to the LegendItem element (via a custom LegendItem style) so that I can show/hide the series associated with the LegendItem , and I've add a click handler for it (legend item CheckBox clicks for all legend items will be processed with the same click handler).
My problem is that I don't know how to identify which CheckBox was clicked. I figured I would just set the CheckBox.Tag to the series objects as they're created and added to the chart, but I'm not sure how to get to the CheckBox inside the LegendItem element.
Solution ====================
In the XAML, all I had to do was this:
<CheckBox Tag="{Binding RelativeSource={RelativeSource TemplatedParent}}" />
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Friday, June 18, 2010 6:59 PM
|
|
|
|
|
Hello,
I already have used with Google-searching. But the results do not agree.
If a wpf-panel (example) has its property with value "Height=Auto", the value has resulted also Double.NaN in the code. But how the right (offical) value does issue? With source code, please.
|
|
|
|
|
Your question is not very clear - are you talking about setting the auto property in code?
Then, see here.
Quidquid latine dictum sit, altum videtur.
Whatever is said in Latin sounds profound.
|
|
|
|
|
hi all
hope any one to help me with a simple implementation of a web text editor with capabilities of copy, cut, paste as well as saving and opening files to/from server location
hope to help me as i'm a beginner and in real need for help
regards
|
|
|
|
|
First if all, this is the WPF forum (and not the Silverlight forum).
For a silverlight sample on an editor, see here.
Quidquid latine dictum sit, altum videtur.
Whatever is said in Latin sounds profound.
|
|
|
|
|
Hi together,
I use the DataGrid-Control to display the content of the ObservableCollection<Node> CriteriaNodes, where the class "Node" contains some properties such as Title, Description, Value, etc.
When I run the project, the ObservableCollection is filled with 13 Node-Objects and, afterward, the Binding is set with
MyNodeGrid.ItemsSource = CriteriaNodes;
The loaded DataGrid now shows only the column-headers of the Node-Objects. When I create new Nodes at runtime, they are added BELOW 13 lines of free space in the DataGrid! When I order alphabetically, I can see some of my initialized 13 Nodes in those new lines.
I don't understand this strange behavior and would be grateful for help. Below is the constructor of the Code-Behind-class.
Daniel
public partial class RetrievingControl : UserControl
{
BusinessMain MyBusinessMain;
public ObservableCollection<Node> CriteriaNodes { get; set; }
public ObservableCollection<Node> AlternativeNodes { get; set; }
public ObservableCollection<Node> StakeholderNodes { get; set; }
public RetrievingControl(BusinessMain pBusinessMain)
{
MyBusinessMain = pBusinessMain;
CriteriaNodes = MyBusinessMain.CurrentProject.CriteriaNodes;
AlternativeNodes = MyBusinessMain.CurrentProject.AlternativeNodes;
StakeholderNodes = MyBusinessMain.CurrentProject.StakeholderNodes;
InitializeComponent();
MyNodeGrid.ItemsSource = CriteriaNodes;
}
.. and the XAML-Part:
...
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
...
<data:DataGrid x:Name="MyNodeGrid" AutoGenerateColumns="True" </data:DataGrid>
...
|
|
|
|
|
Hi,
How to resolve this error :
A Run time error has occured.
Do you wish to Debug?
Line:782
Error saying :'this._postBackSettings.async' is null or not an object.
Thanks in Advance
With Regards,
Ch Gayatri
|
|
|
|
|
You need to post code here before someone can help you.
My signature "sucks" today
|
|
|
|
|
i got my answer
OnClientClick="this.disabled=true;__doPostBack(this.name,'');"
|
|
|
|
|
I have the following in a WPF window trying to open an RDLC report using a WindowsFormsHost. When the report opens there is a report header with no data. The query has no parameters and I have previewed the data in the data set many times.
I have seen many attempts to explain the meanings of ReportDataSource.Name and ReportDataSource.value but it is not yet clear to me what each is supposed to mean. I have not been able to implement anything but that which is listed below.
Thanks -
string reportPath = "C:\\Dev\\2010\\2010_BoxingAdmin\\BoxingAdmin\\BoxingAdmin\\Report1.rdlc";
string ds = "DEVELOPMENT;Initial Catalog=Boxing;Integrated Security=True";
ReportDataSource rds = new ReportDataSource("DataSet1", ds);
ReportViewer reportViewer = new ReportViewer();
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.LocalReport.ReportPath = reportPath;
reportViewer.LocalReport.DataSources.Add(rds);
windowsFormsHost1.Child = reportViewer;
reportViewer.RefreshReport(); Reply
|
|
|
|
|
When I use XamlWriter with my usercontrol I obtain usercontrol XAML and the xaml tree of my usercontrol
<my:myusercontrol canvas.left="100" canvas.top="100">
<grid>
<textbox text="Ciao Mondo">
<grid>
instead
<my:myusercontrol canvas.left="100" canvas.top="100">
MyUserControl inherits from Usercontrol or ContentControl and is compiled in a external DLL.
Why WPF windows control Button, TextBox, etc... when is Serialized from XamlWriter hide their content?
|
|
|
|
|
I would like develope a WPF application to create Silverlight application, in this application I realize XAML files that guest
my silverlight library.
I have thought to use an equivalent WPF library that is a replica of
silverlight library and I could use these controls in my application, and then with xaml code compile and create xap files.
Expression Blend and Visual Studio 2010 are WPF and desktop application
but they can edit silverlight windows. How do they work?
Thanks,
Fabrizio
|
|
|
|
|
I would like develope a WPF application to create Silverlight application, in this application I realize XAML files that guest
my silverlight library.
I have thought to use an equivalent WPF library that is a replica of
silverlight library and I could use these controls in my application, and then with xaml code compile and create xap files.
Expression Blend and Visual Studio 2010 are WPF and desktop application
but they can edit silverlight windows. How do they works?
Thanks,
Fabrizio
|
|
|
|