Click here to Skip to main content
15,887,306 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 10:12
Sutton Mehaffey14-Mar-12 10:12 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 10:25
mvePete O'Hanlon14-Mar-12 10:25 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 10:44
Sutton Mehaffey14-Mar-12 10:44 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 10:50
mvePete O'Hanlon14-Mar-12 10:50 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey21-Mar-12 18:52
Sutton Mehaffey21-Mar-12 18:52 
QuestionFlip page animation.Again. Pin
demolexpert13-Mar-12 7:40
demolexpert13-Mar-12 7:40 
Questionunable to access parent property from a Trigger Pin
George Nistor13-Mar-12 7:15
George Nistor13-Mar-12 7:15 
QuestionBinding Fill property to value of node with particular id in XML Pin
Mahesha99912-Mar-12 21:32
Mahesha99912-Mar-12 21:32 
Hi there, I have this XML file:

XML
<?xml version="1.0" encoding="utf-8"?>
<Wpf>
  <wpfctrl id="NavBtnTemplate">#FFCFDEFF</wpfctrl>
</Wpf>


and i want to bind Fill property of My Rectangle to value of wpfctrl node with id="NavBtnTemplate". How I can achieve this? Actually I have this rectangle inside my custom UserControl's Control Template. But hope that will not be the problem since I can bind to the properties of elements inside UserControl:
My UserControl (actually is very simple)

HTML
<UserControl.Resources>
<ControlTemplate x:Key="WpfWebSparkNavTemplate" TargetType="{x:Type Button}">
<Grid x:Name="controlLayout" Height="29.648" Width="84.284">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal"/>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Pressed"/>
<VisualState x:Name="Disabled"/>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Rectangle x:Name="rectangle"Fill="#FFCFDEFF" Margin="0" Height="31" d:LayoutOverrides="VerticalAlignment" >
</Rectangle>

<Label x:Name="buttonCaption" VerticalAlignment = "Center"
HorizontalAlignment = "Center"
FontWeight = "Bold" FontSize = "12" Content="{TemplateBinding Content}"/>
</Grid>
</ControlTemplate>
</UserControl.Resources<UserControl.Resources>
<ControlTemplate x:Key="WpfWebSparkNavTemplate" TargetType="{x:Type Button}">
<Grid x:Name="controlLayout" Height="29.648" Width="84.284">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal"/>
<VisualState x:Name="MouseOver"/>
<VisualState x:Name="Pressed"/>
<VisualState x:Name="Disabled"/>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Rectangle x:Name="rectangle"Fill="#FFCFDEFF" Margin="0" Height="31" d:LayoutOverrides="VerticalAlignment" >
</Rectangle>

<Label x:Name="buttonCaption" VerticalAlignment = "Center"
HorizontalAlignment = "Center"
FontWeight = "Bold" FontSize = "12" Content="{TemplateBinding Content}"/>
</Grid>
</ControlTemplate>
</UserControl.Resources>
>


I did not found Blend wizard to allow me to state such filters on XML

Please help. Thank you.

modified 13-Mar-12 3:41am.

Questioninteraction between Models in PRISM V4 (WPF) Pin
radhwane12-Mar-12 13:09
radhwane12-Mar-12 13:09 
Questiondefining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 3:37
Sutton Mehaffey12-Mar-12 3:37 
AnswerRe: defining a grid row within a grid column, wpf, c# Pin
Pete O'Hanlon12-Mar-12 3:42
mvePete O'Hanlon12-Mar-12 3:42 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 4:50
Sutton Mehaffey12-Mar-12 4:50 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 4:51
Sutton Mehaffey12-Mar-12 4:51 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 4:52
Sutton Mehaffey12-Mar-12 4:52 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Pete O'Hanlon12-Mar-12 4:59
mvePete O'Hanlon12-Mar-12 4:59 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 5:15
Sutton Mehaffey12-Mar-12 5:15 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Pete O'Hanlon12-Mar-12 5:22
mvePete O'Hanlon12-Mar-12 5:22 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 5:32
Sutton Mehaffey12-Mar-12 5:32 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 15:33
Sutton Mehaffey12-Mar-12 15:33 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Pete O'Hanlon12-Mar-12 22:32
mvePete O'Hanlon12-Mar-12 22:32 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey13-Mar-12 2:52
Sutton Mehaffey13-Mar-12 2:52 
GeneralRe: defining a grid row within a grid column, wpf, c# Pin
Pete O'Hanlon13-Mar-12 3:11
mvePete O'Hanlon13-Mar-12 3:11 
QuestionSliver light Pin
mehul_porject11-Mar-12 19:32
mehul_porject11-Mar-12 19:32 
AnswerRe: Sliver light Pin
Abhinav S11-Mar-12 19:56
Abhinav S11-Mar-12 19:56 
QuestionMVVM Master-Details project Pin
Geysser10-Mar-12 23:41
Geysser10-Mar-12 23:41 

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.