16,004,924 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Squire Dude (Top 13 by date)
Squire Dude
14-Jul-11 12:07pm
View
Sorry maybe I didn't explain myself very well.
I am building the app for myself to then sell. There are lots of ShareWare products but almost all are using the new Google Earth or Bing mapping for their display.
In the marine (nautical) world we use Raster or Vector charts(maps). All the charts (maps) are readily available for FREE from NOAA and other US agencies. And over the years their have been several good products that do the same thing. Over the last 4-5 years more of them are FREE also.
As for specking the project out. You are correct BUT I did not have this in the original project, I have added it at the end to create a richer experience. But if I can't find an example or sample or ShareWare version I can plug-in then I will go with my original scope.
Thanks
Squire Dude
20-Apr-11 15:39pm
View
Thanks John,
So if I understand this is correctly... it is normal for the Ribbon to become hidden if you set a height/minHeight to the actual height of the Ribbon Menu. Even thought this was exactly what I wanted by design...
Not sure I understand the logic behind this thinking but then this Microsoft we are talking about!
So I will have to abandon the floating ToolBar method and re-think my use of the Ribbon Menu. And it was such a good idea too!
Squire Dude
17-Apr-11 16:49pm
View
I have tied to add my code to this thread but it does not show, as you can see below it only displayes small pieces of code not the whole thing!
Sorry you think I have an attitude...
Okay, lets try it your way...
Here is the code from the MainWindow XAML...
<r:ribbonwindow x:class="WpfRibbonApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" title="MainWindow" x:name="RibbonWindow" width="1024" height="768">
<grid x:name="LayoutRoot">
<grid.rowdefinitions>
<rowdefinition height="Auto">
<rowdefinition height="*">
<r:ribbon x:name="Ribbon" height="137" verticalalignment="Top">
<r:ribbon.applicationmenu>
<r:ribbonapplicationmenu smallimagesource="/WpfRibbonApplication1;component/Images/YachtLog_Icon_Globe2.gif">
<r:ribbonapplicationmenuitem header="Print" x:name="mnuPrint" imagesource="/WpfRibbonApplication1;component/Images/Print-icon.png" click="mnuPrint_Click">
<r:ribbonapplicationmenuitem header="Help" x:name="mnuHelp" imagesource="/WpfRibbonApplication1;component/Images/Help.png" click="mnuHelp_Click">
<r:ribbonapplicationmenuitem header="Exit" x:name="mnuExit" imagesource="/WpfRibbonApplication1;component/Images/exit.png" click="mnuExit_Click">
<r:ribbontab x:name="tabLogs" header="Logs" visibility="Visible">
<r:ribbongroup x:name="grpNShipsLog">
<r:ribbongroup.background>
<radialgradientbrush>
<gradientstop color="Black" offset="0">
<gradientstop color="White" offset="1">
<gradientstop color="#FF38E538" offset="0.006">
<r:ribbonbutton x:name="btnSLSearch" largeimagesource="/WpfRibbonApplication1;component/Images/Ships_Log.gif" label="Ships" click="btnSLSearch_Click">
<r:ribbonbutton x:name="btnSLAdd" smallimagesource="/WpfRibbonApplication1;component/Images/Add-icon.png" label="Add">
<r:ribbonbutton x:name="btnSLEdit" smallimagesource="/WpfRibbonApplication1;component/Images/Edit1.jpg" label="Edit">
<r:ribbongroup x:name="grpNCaptLog">
<r:ribbongroup.background>
<radialgradientbrush>
<gradientstop color="Black" offset="0">
<gradientstop color="White" offset="1">
<gradientstop color="#FF38E538" offset="0.006">
<r:ribbonbutton x:name="btnCLSearch" largeimagesource="/WpfRibbonApplication1;component/Images/Capt_Log.ico" label="Captains" click="btnCLSearch_Click_1">
<r:ribbonbutton x:name="btnCLAdd">
Squire Dude
17-Apr-11 16:43pm
View
Deleted
Sorry that you think I have an attitude...
Okay lets do it your way...
Here is the XAML code from the UserControl...
<usercontrol x:class="WpfRibbonApplication1.Controls.ucVesselDetail"
="" 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.microsoft.com/expression/blend/2008" mc:ignorable="d" d:designheight="516" d:designwidth="557" xmlns:my="clr-namespace:WpfRibbonApplication1.Controls" xmlns:my1="clr-namespace:WpfRibbonApplication1" loaded="UserControl_Loaded">
<usercontrol.resources>
<my1:yachtlogpro_sqldataset x:key="yachtLogPro_SQLDataSet">
<collectionviewsource x:key="vesselDetails_VViewSource" source="{Binding Path=VesselDetails_V, Source={StaticResource yachtLogPro_SQLDataSet}}">
<grid height="508" datacontext="{Binding}">
<grid datacontext="{StaticResource vesselDetails_VViewSource}" margin="120,18,0,0" name="grid1" verticalalignment="Top">
<grid.columndefinitions>
<columndefinition width="Auto">
<columndefinition width="Auto">
<grid.rowdefinitions>
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<rowdefinition height="Auto">
<Label Content="Vessel Name:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
<combobox displaymemberpath="VesselName" grid.column="1" grid.row="0" height="23" horizontalalignment="Left" itemssource="{Binding}" margin="3" name="vesselNameComboBox" verticalalignment="Center" width="120">
<combobox.itemspanel>
<itemspaneltemplate>
<virtualizingstackpanel>
<Label Content="Vessel Type:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
<textbox grid.column="1" grid.row="1" height="23" horizontalalignment="Left" margin="3" name="vesselTypeTextBox" text="{Binding Path=VesselType, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" verticalalignment="Center" width="120">
<Label Content="Power Sail:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
<textbox grid.column="1" grid.row="2" height="23" horizontalalignment="Left" margin="3" name="powerSailTextBox" text="{Binding Path=PowerSail, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" verticalalignment="Center" width="120">
<Label Content="V Registration Number:" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Cent
Squire Dude
17-Apr-11 14:29pm
View
Oh and none of the solutions suggested worked when placed on a UserContorl either! Sorry... extremely frustrating
Squire Dude
17-Apr-11 14:28pm
View
Hi,
I have looked at each of the solutions you suggest and they ALL place a DataGrid or control on a Window NOT a User Control... I have the DataGrid WORKING correctly too (when placed directly on the MainWindow).
My issues still stands... How to display data (datagrid or control) when placed in a UserControl?
I am unable to display data when the Grid Object is set on a UserControl...
Squire Dude
17-Apr-11 13:38pm
View
Sorry if I am not very clear with my question....
I have a New WPF Project with a MainWindow... I have created a DataSource and DataSet which is connected to my SQL DB and can preview the data.
I then place a Grid from the DataSet onto the MainWindow (drag 'n drop) directly and when run the grid is populated.... we have data!
Then I place the Grid from the DataSet onto a UserControl and add the UserControl into the MainWindow and run it... NO DATA????
Hence it is not the DataSet or connection to the DB the issue lies within the UserControl... I am at a loss of where to look next...
Any thoughts?
Squire Dude
17-Apr-11 13:33pm
View
Thanks for the thoughts...
I have checked all the connection items etc...
If I place the DataSet (grid or fields) directly onto the MainWindow the data is there. So I must assume that the DataConnection and DataSet are NOT at fault it has something to do with the UserControl portion.
Squire Dude
2-Dec-10 17:20pm
View
I had all but given up on this and was ready to tell the PM to get someone else to finish the project. Now it works... not sure exactly what I did or didn't do...
So I am unable to tell anyone else who has such a nighmare what to do with the code to make it work!!!.
Sorry about that people.
Squire Dude
2-Dec-10 16:01pm
View
Maybe this is shte issue.... When I check the Connection properties just before the Execute command it is not OPEN but CONNECTING???? Then the Execute FAILS. If I go back and step through the code slowly the Connection is then OPEN. Then I Execute and I get {"Syntax error in INSERT INTO statement."} hmmm....
Squire Dude
2-Dec-10 15:42pm
View
Sorry about my using the wrong area to respond.
Well I have 2 different files that use the same function to insert the data into the DB. I have checked and rewritten it more times than I care to think about. I am now back to the original error that the Connection is getting closed.
I have changed ALL the columns in both tables to type=Text in the DB so there should be no issues with "type".
This time I ran it and got {"Syntax error in INSERT INTO statement."}... I have changed nothing!
I check it immidialy before the Execute and it is open. NOw I ahve a different error... {"You must enter a value in the 'RAW_Transaction_Data.post_tran_cust_id' field."} I checked the file and there are now empty values for this (1st) column.
Squire Dude
23-Jul-10 15:09pm
View
Reason for my vote of 5
Not only a solution but links too... Great stuff thanks
Squire Dude
22-Jul-10 15:01pm
View
Dave,
At first I thought the same that it would depend on Make/Model. Actually most GPS units, especially the older ones, can have their Routes written & read from by everything I have been able to find details on.
All of the GPS's use the NMEA standard and are only just starting to encorporate the newer NMEA 2000 sentance structure.
I do not believe that the Route information is proprity again from what I have read so far. Including Garmin and Lowrance home web sites, but I have not found a tool to read/write to them or sample code to work with.
Show More