Click here to Skip to main content
15,901,284 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Storing Signature in sql server database Pin
AndyTexas22-Jun-09 6:08
AndyTexas22-Jun-09 6:08 
GeneralRe: Storing Signature in sql server database Pin
Eslam Afifi22-Jun-09 12:24
Eslam Afifi22-Jun-09 12:24 
QuestionWPF Tween Library Pin
emptythetill12-Mar-09 1:56
emptythetill12-Mar-09 1:56 
AnswerRe: WPF Tween Library Pin
Pete O'Hanlon12-Mar-09 2:25
mvePete O'Hanlon12-Mar-09 2:25 
GeneralRe: WPF Tween Library Pin
emptythetill13-Mar-09 2:50
emptythetill13-Mar-09 2:50 
QuestionWorking with 3D models created in Blender Pin
Etienne_12312-Mar-09 0:11
Etienne_12312-Mar-09 0:11 
AnswerRe: Working with 3D models created in Blender Pin
Pete O'Hanlon12-Mar-09 0:27
mvePete O'Hanlon12-Mar-09 0:27 
QuestionWPF: How to make resizing custom datagrid column? [modified] Pin
MichalDawn11-Mar-09 22:58
MichalDawn11-Mar-09 22:58 
I'm using datagrid from WPF Toolkit. And I have my owen style for column header. Here is code:

<Style x:Key="ColumnHeaderStyle" TargetType="{x:Type dg:DataGridColumnHeader}">
<Setter Property="Background" Value="{StaticResource DataGrid_Style0_Header}" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#FFFFCB02" />
<Setter Property="BorderThickness" Value="0,0,1,1" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type dg:DataGridColumnHeader}">
<Border BorderBrush="{TemplateBinding dg:DataGridColumnHeader.BorderBrush}" BorderThickness="{TemplateBinding dg:DataGridColumnHeader.BorderThickness}">
<Grid Name="grContentHeader" Height="20" Background="{TemplateBinding dg:DataGridColumnHeader.Background}">
<ContentPresenter Content="{TemplateBinding dg:DataGridColumnHeader.Content}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" Cursor="Hand" Margin="2,0,2,0"/>
<Path Name="UpArrow" Fill="Black" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,3,0" Visibility="Hidden">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="0,0">
<LineSegment Point="6,0"/>
<LineSegment Point="3,5"/>
<LineSegment Point="0,0"/>
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
<Path Name="DownArrow" Fill="Black" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,3,0" Visibility="Hidden">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="0,5">
<LineSegment Point="6,5"/>
<LineSegment Point="3,0"/>
<LineSegment Point="0,5"/>
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="SortDirection" Value="Ascending">
<Setter TargetName="DownArrow" Property="Visibility" Value="Visible"/>
<Setter TargetName="UpArrow" Property="Visibility" Value="Hidden"/>
<Setter TargetName="grContentHeader" Property="Background" Value="{StaticResource DataGrid_Header_Alt0}"/>
</Trigger>
<Trigger Property="SortDirection" Value="Descending">
<Setter TargetName="DownArrow" Property="Visibility" Value="Hidden"/>
<Setter TargetName="UpArrow" Property="Visibility" Value="Visible"/>
<Setter TargetName="grContentHeader" Property="Background" Value="{StaticResource DataGrid_Header_Alt0}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

Problem is, that i can't resize column.
CanUserResize="True" for column and CanUserResizeColumns="True" for datagrid don't work.
Please help Sigh | :sigh:

<div class="ForumMod">modified on Thursday, March 12, 2009 5:23 AM</div>
AnswerRe: WPF: How to make resizing custom datagrid column? Pin
ABitSmart11-Mar-09 23:40
ABitSmart11-Mar-09 23:40 
GeneralRe: WPF: How to make resizing custom datagrid column? Pin
MichalDawn11-Mar-09 23:51
MichalDawn11-Mar-09 23:51 
GeneralRe: WPF: How to make resizing custom datagrid column? Pin
ABitSmart11-Mar-09 23:53
ABitSmart11-Mar-09 23:53 
GeneralRe: WPF: How to make resizing custom datagrid column? [modified] Pin
MichalDawn12-Mar-09 0:02
MichalDawn12-Mar-09 0:02 
QuestionHow to render pixels of a bitmap correctly? Pin
Andy@11-Mar-09 5:03
Andy@11-Mar-09 5:03 
AnswerRe: How to render pixels of a bitmap correctly? Pin
Insincere Dave11-Mar-09 16:14
Insincere Dave11-Mar-09 16:14 
GeneralRe: How to render pixels of a bitmap correctly? Pin
Andy@12-Mar-09 2:59
Andy@12-Mar-09 2:59 
GeneralRe: How to render pixels of a bitmap correctly? Pin
Insincere Dave12-Mar-09 6:56
Insincere Dave12-Mar-09 6:56 
GeneralRe: How to render pixels of a bitmap correctly? Pin
Andy@17-Mar-09 4:20
Andy@17-Mar-09 4:20 
QuestionBind an attached property Pin
Pauwels Bart11-Mar-09 3:55
Pauwels Bart11-Mar-09 3:55 
AnswerRe: Bind an attached property Pin
ABitSmart11-Mar-09 16:57
ABitSmart11-Mar-09 16:57 
QuestionRe: Bind an attached property Pin
Pauwels Bart11-Mar-09 19:45
Pauwels Bart11-Mar-09 19:45 
AnswerRe: Bind an attached property Pin
ABitSmart11-Mar-09 21:00
ABitSmart11-Mar-09 21:00 
QuestionRe: Bind an attached property Pin
Pauwels Bart11-Mar-09 22:33
Pauwels Bart11-Mar-09 22:33 
AnswerRe: Bind an attached property Pin
ABitSmart11-Mar-09 23:13
ABitSmart11-Mar-09 23:13 
GeneralRe: Bind an attached property Pin
Pauwels Bart12-Mar-09 0:54
Pauwels Bart12-Mar-09 0:54 
QuestionCan a WPF browser app be hosted on a server and accessed multiply by other users Pin
DimitarS10-Mar-09 21:56
DimitarS10-Mar-09 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.