<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VBForums - WPF, WCF, WF</title>
		<link>http://www.vbforums.com/</link>
		<description>Discuss Windows Presentation Foundation, Windows Communication Foundation, and Windows Work Flow.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 16:44:42 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.vbforums.com/images/misc/rss.png</url>
			<title>VBForums - WPF, WCF, WF</title>
			<link>http://www.vbforums.com/</link>
		</image>
		<item>
			<title><![CDATA[[RESOLVED] How get the value of a HIDDEN DataGrid cell?]]></title>
			<link>http://www.vbforums.com/showthread.php?724667-RESOLVED-How-get-the-value-of-a-HIDDEN-DataGrid-cell&amp;goto=newpost</link>
			<pubDate>Thu, 13 Jun 2013 14:50:55 GMT</pubDate>
			<description><![CDATA[I'm having trouble getting the value of a cell in a DataGrid if that column is hidden. The following C# code works fine if the column is visible, but fails if it is hidden.


Code:
---------
int id = Convert.ToInt32(((TextBlock)grdData.Columns[0].GetCellContent(grdData.SelectedItem)).Text);
---------
If the column is hidden, I get a null value exception because the visual elements haven't been created... the TextBlock is null. So the question is, how do I get the value from a hidden cell?

For the record, I use VS 2012, .NET 4.5, and program in C#.

I believe the VB version of this code would look like this:


Code:
---------
Dim id As Integer = Convert.ToInt32(DirectCast(grdData.Columns(0).GetCellContent(grdData.SelectedItem), TextBlock).Text)
---------
Thanks in advance for any help on this.]]></description>
			<content:encoded><![CDATA[<div>I'm having trouble getting the value of a cell in a DataGrid if that column is hidden. The following C# code works fine if the column is visible, but fails if it is hidden.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">int id = Convert.ToInt32(((TextBlock)grdData.Columns[0].GetCellContent(grdData.SelectedItem)).Text);</code><hr />
</div>If the column is hidden, I get a null value exception because the visual elements haven't been created... the TextBlock is null. So the question is, how do I get the value from a hidden cell?<br />
<br />
For the record, I use VS 2012, .NET 4.5, and program in C#.<br />
<br />
I believe the VB version of this code would look like this:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Dim id As Integer = Convert.ToInt32(DirectCast(grdData.Columns(0).GetCellContent(grdData.SelectedItem), TextBlock).Text)</code><hr />
</div>Thanks in advance for any help on this.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>HongKongCV</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724667-RESOLVED-How-get-the-value-of-a-HIDDEN-DataGrid-cell</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] Very new to WPF - how could I do this]]></title>
			<link>http://www.vbforums.com/showthread.php?724533-RESOLVED-Very-new-to-WPF-how-could-I-do-this&amp;goto=newpost</link>
			<pubDate>Tue, 11 Jun 2013 23:55:13 GMT</pubDate>
			<description><![CDATA[I've got an area on the screen that needs to show dates/day's and have a "graph-like" height to each tab under the date/day.

Any easy way to accomplish this with WPF?  I read that canvas panels are evil - but I'm thinking that would be the easiest way to accomplish this math-wise.

I'm having a really hard time with the xaml - seems I always need to edit the source of it (and it certainly is not HTML!!) - and not use the properties window in VS2012 (because I am overwhelmed by the options in it - argh).]]></description>
			<content:encoded><![CDATA[<div>I've got an area on the screen that needs to show dates/day's and have a &quot;graph-like&quot; height to each tab under the date/day.<br />
<br />
Any easy way to accomplish this with WPF?  I read that canvas panels are evil - but I'm thinking that would be the easiest way to accomplish this math-wise.<br />
<br />
I'm having a really hard time with the xaml - seems I always need to edit the source of it (and it certainly is not HTML!!) - and not use the properties window in VS2012 (because I am overwhelmed by the options in it - argh).</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=101077&amp;stc=1&amp;d=1370994980" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>szlamany</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724533-RESOLVED-Very-new-to-WPF-how-could-I-do-this</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] Need help with ADO.NET Entity Data Model]]></title>
			<link>http://www.vbforums.com/showthread.php?724503-RESOLVED-Need-help-with-ADO-NET-Entity-Data-Model&amp;goto=newpost</link>
			<pubDate>Tue, 11 Jun 2013 19:24:36 GMT</pubDate>
			<description><![CDATA[I created an  Entity Data Model and got a WCF client-server app up and running. Now we're ready to test deploy, and the server should connect to a different database than it did during testing. I cannot find a way to change the database that the model hits.

I access the database in the following manner:


Code:
---------
List<PolicyBDO> policyBDOs = null;
using (var PolicyEntities = new PolicyEntities())
{
    DateTime now = DateTime.Now;
    var policy = (from p in PolicyEntities.Table1 where p.Num.StartsWith(NumVal) && p.Type == TypeVal orderby p.Num,p.BeginDate select p);
}
---------
If I run it as is, it uses the original database I used when creating the EDM.  I CAN change the database at run time by changing the code as follows:


Code:
---------
List<PolicyBDO> policyBDOs = null;
using (var PolicyEntities = new PolicyEntities())
{
    String conn = PolicyEntities.Database.Connection.ConnectionString;
    PolicyEntities.Database.Connection.ConnectionString = conn.Replace("OldServer", "NewServer");

    DateTime now = DateTime.Now;
    var policy = (from p in PolicyEntities.Table1 where p.Num.StartsWith(NumVal) && p.Type == TypeVal orderby p.Num,p.BeginDate select p);
}
---------
So I have a workaround, but I shouldn't NEED to do it that way. How can I change the database connection within the Entity Data Model itself, so that it automatically connects to the new database?]]></description>
			<content:encoded><![CDATA[<div>I created an  Entity Data Model and got a WCF client-server app up and running. Now we're ready to test deploy, and the server should connect to a different database than it did during testing. I cannot find a way to change the database that the model hits.<br />
<br />
I access the database in the following manner:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">List&lt;PolicyBDO&gt; policyBDOs = null;<br />
using (var PolicyEntities = new PolicyEntities())<br />
{<br />
&nbsp; &nbsp; DateTime now = DateTime.Now;<br />
&nbsp; &nbsp; var policy = (from p in PolicyEntities.Table1 where p.Num.StartsWith(NumVal) &amp;&amp; p.Type == TypeVal orderby p.Num,p.BeginDate select p);<br />
}</code><hr />
</div>If I run it as is, it uses the original database I used when creating the EDM.  I CAN change the database at run time by changing the code as follows:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">List&lt;PolicyBDO&gt; policyBDOs = null;<br />
using (var PolicyEntities = new PolicyEntities())<br />
{<br />
&nbsp; &nbsp; String conn = PolicyEntities.Database.Connection.ConnectionString;<br />
&nbsp; &nbsp; PolicyEntities.Database.Connection.ConnectionString = conn.Replace(&quot;OldServer&quot;, &quot;NewServer&quot;);<br />
<br />
&nbsp; &nbsp; DateTime now = DateTime.Now;<br />
&nbsp; &nbsp; var policy = (from p in PolicyEntities.Table1 where p.Num.StartsWith(NumVal) &amp;&amp; p.Type == TypeVal orderby p.Num,p.BeginDate select p);<br />
}</code><hr />
</div>So I have a workaround, but I shouldn't NEED to do it that way. How can I change the database connection within the Entity Data Model itself, so that it automatically connects to the new database?</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>HongKongCV</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724503-RESOLVED-Need-help-with-ADO-NET-Entity-Data-Model</guid>
		</item>
		<item>
			<title>Copy data from datagrid template column to excel</title>
			<link>http://www.vbforums.com/showthread.php?724473-Copy-data-from-datagrid-template-column-to-excel&amp;goto=newpost</link>
			<pubDate>Tue, 11 Jun 2013 13:54:02 GMT</pubDate>
			<description>Hi!

Im struggling to solve a problem. My customer want to copy grid data from the application into excel. This works out of the box almost for all standard columns. The problem is a template column which has two visual elements, a label and an indicator. The label is bound to a text field and the indicator is bound to an int-field in the model. When pasting into excel these two values should be presented as two separate columns.

How can I solve this? Can I catch some copy event and manually insert a new column or something?

/S</description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
Im struggling to solve a problem. My customer want to copy grid data from the application into excel. This works out of the box almost for all standard columns. The problem is a template column which has two visual elements, a label and an indicator. The label is bound to a text field and the indicator is bound to an int-field in the model. When pasting into excel these two values should be presented as two separate columns.<br />
<br />
How can I solve this? Can I catch some copy event and manually insert a new column or something?<br />
<br />
/S</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>MrNorth</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?724473-Copy-data-from-datagrid-template-column-to-excel</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] Displaying null date in DataGrid]]></title>
			<link>http://www.vbforums.com/showthread.php?723943-RESOLVED-Displaying-null-date-in-DataGrid&amp;goto=newpost</link>
			<pubDate>Wed, 05 Jun 2013 19:20:12 GMT</pubDate>
			<description><![CDATA[Okay, I've got a DataGrid that is displaying data from our database, except when it runs across a NULL datetime value in the database it displays it as "1/1/0001 12:00:00 AM". I'd MUCH rather have it show an empty field in that case... how do I get it to do that?

This is how I've got the control defined in the DataGrid's XAML.


Code:
---------
                <DataGridTemplateColumn Header="Start Date">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding EffDateBegin}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                    <DataGridTemplateColumn.CellEditingTemplate>
                        <DataTemplate>
                            <DatePicker SelectedDate="{Binding EffDateBegin}"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellEditingTemplate>
                </DataGridTemplateColumn>
---------
I'm using .NET 4.5 in a wpf app...]]></description>
			<content:encoded><![CDATA[<div>Okay, I've got a DataGrid that is displaying data from our database, except when it runs across a NULL datetime value in the database it displays it as &quot;1/1/0001 12:00:00 AM&quot;. I'd MUCH rather have it show an empty field in that case... how do I get it to do that?<br />
<br />
This is how I've got the control defined in the DataGrid's XAML.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataGridTemplateColumn Header=&quot;Start Date&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataGridTemplateColumn.CellTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TextBlock Text=&quot;{Binding EffDateBegin}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataGridTemplateColumn.CellTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataGridTemplateColumn.CellEditingTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DatePicker SelectedDate=&quot;{Binding EffDateBegin}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataGridTemplateColumn&gt;</code><hr />
</div>I'm using .NET 4.5 in a wpf app...</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>HongKongCV</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?723943-RESOLVED-Displaying-null-date-in-DataGrid</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] Multiple object movement control array]]></title>
			<link>http://www.vbforums.com/showthread.php?723847-RESOLVED-Multiple-object-movement-control-array&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 23:58:09 GMT</pubDate>
			<description><![CDATA[Hi guys. 

I am trying to make a dock menu with WPF but my question is on VB.NET side. Anyway, basically I want some kind of a control array but I don't know how to write it.

I have objects in dock are called _1, _2, _3, etc... from left to right. In WPF they are images. On solution explorer they appear as "_1 As Image".
Mainly, what I need is:


Code:
---------
Sub ImgCntrl(i As Integer)
    For Each Image in MainWindow
        With Me("_" & i)
            If object control name < i Then 'If the object is at left hadside of the initial object
                Move those objects 100 pixel Left
            End If
            If object control name = i Then 'If the object is the initial object
                Move that object 100 pixel Up
            End If
            If object control name > i Then 'If the object is at right hadside of the initial object
                Move those objects 100 pixel Right
            End If
         End With
     Next
End Sub

Private Sub _1_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter
   ImgCntrl(1)
End Sub

Private Sub _2_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter
   ImgCntrl(2)
End Sub

Private Sub _3_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter
   ImgCntrl(3)
End Sub
---------
Now this will rise the moseovered (there is no MouseHover in WPF thus is MouseEnter) object 100 pixel up while pushing the other objects to left and right. It will bring a dock like menu effect.

Who may help me for the right expression?

Thanks a lot!!!]]></description>
			<content:encoded><![CDATA[<div>Hi guys. <br />
<br />
I am trying to make a dock menu with WPF but my question is on VB.NET side. Anyway, basically I want some kind of a control array but I don't know how to write it.<br />
<br />
I have objects in dock are called _1, _2, _3, etc... from left to right. In WPF they are images. On solution explorer they appear as &quot;_1 As Image&quot;.<br />
Mainly, what I need is:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Sub ImgCntrl(i As Integer)<br />
&nbsp; &nbsp; For Each Image in MainWindow<br />
&nbsp; &nbsp; &nbsp; &nbsp; With Me(&quot;_&quot; &amp; i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If object control name &lt; i Then 'If the object is at left hadside of the initial object<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Move those objects 100 pixel Left<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If object control name = i Then 'If the object is the initial object<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Move that object 100 pixel Up<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If object control name &gt; i Then 'If the object is at right hadside of the initial object<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Move those objects 100 pixel Right<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp;  End With<br />
&nbsp; &nbsp;  Next<br />
End Sub<br />
<br />
Private Sub _1_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter<br />
&nbsp;  ImgCntrl(1)<br />
End Sub<br />
<br />
Private Sub _2_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter<br />
&nbsp;  ImgCntrl(2)<br />
End Sub<br />
<br />
Private Sub _3_MouseEnter(sender As Object, e As MouseEventArgs) Handles _1.MouseEnter<br />
&nbsp;  ImgCntrl(3)<br />
End Sub</code><hr />
</div>Now this will rise the moseovered (there is no MouseHover in WPF thus is MouseEnter) object 100 pixel up while pushing the other objects to left and right. It will bring a dock like menu effect.<br />
<br />
Who may help me for the right expression?<br />
<br />
Thanks a lot!!!</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>Flashbond</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?723847-RESOLVED-Multiple-object-movement-control-array</guid>
		</item>
		<item>
			<title>Help with WPF DataGridTextColumn</title>
			<link>http://www.vbforums.com/showthread.php?723693-Help-with-WPF-DataGridTextColumn&amp;goto=newpost</link>
			<pubDate>Mon, 03 Jun 2013 13:07:30 GMT</pubDate>
			<description><![CDATA[Hi!

Im managing a WPF application that has a very inconsistent UI. Now the customer want to streamline it a bit, and I have stumbled upon a problem with several of the datagrids.

it seems, as for some cells, they use a simple DataGridTextColumn and bind the text value right from the model item. And on some cells they override the template for the cell and add their own kind of textbox, like this:


Code:
---------
  <DataGridTemplateColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <MainViews:SuperStringTextBox 
                                                            Text="{Binding MyRow.Text}"
                                                            AllowWidgetReferences="True"
                                                            IsReadOnly="{Binding Path=IsReadOnly, ElementName=testing}">
                                                        </MainViews:SuperStringTextBox>
                                                    </DataTemplate>
                                                </DataGridTemplateColumn.CellTemplate>
---------
The above ie basically a textbox but also allow drag/drop and will then display a value as a rectangle with an x for close.

Anyway, now the customer say that they want the DEFAULT cell behaviour (edit with double click and F2 etc) for all textboxes, standard or custom. Is there any "simple" way to do this, or do I have to implement these features manually for each and every one of these cell templates (about 5 of them)? So far I have identified 4 things that I need to take care of:

* The textbox is a textblock when not in edit mode, hence the selected row color is the same

* when the cell is selected and press f2, the cell switches to textbox

* when double click the cell switches to textbox

* when cell is selected and typing starts, everything is overwritten.

kind regards
S]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
Im managing a WPF application that has a very inconsistent UI. Now the customer want to streamline it a bit, and I have stumbled upon a problem with several of the datagrids.<br />
<br />
it seems, as for some cells, they use a simple DataGridTextColumn and bind the text value right from the model item. And on some cells they override the template for the cell and add their own kind of textbox, like this:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &lt;DataGridTemplateColumn.CellTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;MainViews:SuperStringTextBox <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Text=&quot;{Binding MyRow.Text}&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllowWidgetReferences=&quot;True&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IsReadOnly=&quot;{Binding Path=IsReadOnly, ElementName=testing}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/MainViews:SuperStringTextBox&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataTemplate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataGridTemplateColumn.CellTemplate&gt;</code><hr />
</div>The above ie basically a textbox but also allow drag/drop and will then display a value as a rectangle with an x for close.<br />
<br />
Anyway, now the customer say that they want the DEFAULT cell behaviour (edit with double click and F2 etc) for all textboxes, standard or custom. Is there any &quot;simple&quot; way to do this, or do I have to implement these features manually for each and every one of these cell templates (about 5 of them)? So far I have identified 4 things that I need to take care of:<br />
<br />
* The textbox is a textblock when not in edit mode, hence the selected row color is the same<br />
<br />
* when the cell is selected and press f2, the cell switches to textbox<br />
<br />
* when double click the cell switches to textbox<br />
<br />
* when cell is selected and typing starts, everything is overwritten.<br />
<br />
kind regards<br />
S</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>MrNorth</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?723693-Help-with-WPF-DataGridTextColumn</guid>
		</item>
		<item>
			<title>WCF service using authentication - membership need certificate?</title>
			<link>http://www.vbforums.com/showthread.php?723243-WCF-service-using-authentication-membership-need-certificate&amp;goto=newpost</link>
			<pubDate>Thu, 30 May 2013 00:45:31 GMT</pubDate>
			<description>Hi. I am able to use WCF services but i have one question. I am looking at securing the WCF using authentication and membership database when data is passed to an asp.net application. My question is, do i need to add a certificate to the server in order for the membership to work? Right now i can pass the username-password combination but no matter what credentials i may give the service will always go through unblocked. So do i have to use a certificate or is there another way?
Thanks.</description>
			<content:encoded><![CDATA[<div>Hi. I am able to use WCF services but i have one question. I am looking at securing the WCF using authentication and membership database when data is passed to an asp.net application. My question is, do i need to add a certificate to the server in order for the membership to work? Right now i can pass the username-password combination but no matter what credentials i may give the service will always go through unblocked. So do i have to use a certificate or is there another way?<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>sapator</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?723243-WCF-service-using-authentication-membership-need-certificate</guid>
		</item>
		<item>
			<title>VB.net 2010 - WPF Datagrid Cell Background Style Issue</title>
			<link>http://www.vbforums.com/showthread.php?722945-VB-net-2010-WPF-Datagrid-Cell-Background-Style-Issue&amp;goto=newpost</link>
			<pubDate>Mon, 27 May 2013 04:30:37 GMT</pubDate>
			<description><![CDATA[So, I am trying to setup a datatrigger for a datagridcell in WPF that shows a red square when the cell contains the word "red". It works but the problem is I am modifying the background and when the row is selected it shows a white box around the square. I want to get rid of the white box and I have been looking for another way of going about what I want but can't figure it out. Below is the code and an example image.


Code:
---------
    <Style x:Key="dgJobsPriority" TargetType="DataGridCell">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Priority}" Value="Red">
                <Setter Property="Background">
                    <Setter.Value>
                        <DrawingBrush Stretch="None">
                            <DrawingBrush.Drawing>
                                <DrawingGroup>
                                    <GeometryDrawing Brush="Red">
                                        <GeometryDrawing.Geometry>
                                            <RectangleGeometry Rect="0,0,16,16" />
                                        </GeometryDrawing.Geometry>
                                    </GeometryDrawing>
                                </DrawingGroup>
                            </DrawingBrush.Drawing>
                        </DrawingBrush>
                    </Setter.Value>
                    </Setter> 
            </DataTrigger>
        </Style.Triggers>
        <Setter Property="Foreground" Value="#00000000"/>
    </Style>
---------
Attachment 100547 (http://www.vbforums.com/attachment.php?attachmentid=100547)]]></description>
			<content:encoded><![CDATA[<div>So, I am trying to setup a datatrigger for a datagridcell in WPF that shows a red square when the cell contains the word &quot;red&quot;. It works but the problem is I am modifying the background and when the row is selected it shows a white box around the square. I want to get rid of the white box and I have been looking for another way of going about what I want but can't figure it out. Below is the code and an example image.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &lt;Style x:Key=&quot;dgJobsPriority&quot; TargetType=&quot;DataGridCell&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Style.Triggers&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataTrigger Binding=&quot;{Binding Priority}&quot; Value=&quot;Red&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property=&quot;Background&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter.Value&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DrawingBrush Stretch=&quot;None&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DrawingBrush.Drawing&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DrawingGroup&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryDrawing Brush=&quot;Red&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryDrawing.Geometry&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;RectangleGeometry Rect=&quot;0,0,16,16&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/GeometryDrawing.Geometry&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/GeometryDrawing&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DrawingGroup&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DrawingBrush.Drawing&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DrawingBrush&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Setter.Value&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/Setter&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataTrigger&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Style.Triggers&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;Setter Property=&quot;Foreground&quot; Value=&quot;#00000000&quot;/&gt;<br />
&nbsp; &nbsp; &lt;/Style&gt;</code><hr />
</div><img src="http://www.vbforums.com/attachment.php?attachmentid=100547&amp;d=1369628957" border="0" alt="Name:  example.jpg
Views: 160
Size:  16.4 KB"  /></div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100547&amp;stc=1&amp;d=1369628957" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>tylerpestell</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722945-VB-net-2010-WPF-Datagrid-Cell-Background-Style-Issue</guid>
		</item>
		<item>
			<title>Criticize my UI design</title>
			<link>http://www.vbforums.com/showthread.php?722579-Criticize-my-UI-design&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 06:59:11 GMT</pubDate>
			<description>Designing the UI is not my strongest skill so I am not sure if my UI looks professional or childish so I wish to get your criticisms on attached screenshot.Attachment 100451 (http://www.vbforums.com/attachment.php?attachmentid=100451)</description>
			<content:encoded><![CDATA[<div>Designing the UI is not my strongest skill so I am not sure if my UI looks professional or childish so I wish to get your criticisms on attached screenshot.<img src="http://www.vbforums.com/attachment.php?attachmentid=100451&amp;d=1369292330" border="0" alt="Name:  WorktextScreen.png
Views: 138
Size:  282.3 KB"  /></div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
				<div style="padding:10px">
				<img class="attach" src="http://www.vbforums.com/attachment.php?attachmentid=100451&amp;stc=1&amp;d=1369292330" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="http://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF">WPF, WCF, WF</category>
			<dc:creator>dee-u</dc:creator>
			<guid isPermaLink="true">http://www.vbforums.com/showthread.php?722579-Criticize-my-UI-design</guid>
		</item>
	</channel>
</rss>
