本文整理汇总了C#中ICopyManager.GetCopy方法的典型用法代码示例。如果您正苦于以下问题:C# ICopyManager.GetCopy方法的具体用法?C# ICopyManager.GetCopy怎么用?C# ICopyManager.GetCopy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICopyManager
的用法示例。
在下文中一共展示了ICopyManager.GetCopy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeepCopy
public void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
ListViewItemGenerator icg = (ListViewItemGenerator) source;
_itemTemplate = copyManager.GetCopy(icg._itemTemplate);
_itemContainerStyle = copyManager.GetCopy(icg._itemContainerStyle);
_parent = copyManager.GetCopy(icg._parent);
if (icg._items == null)
_items = null;
else
{
_items = new List<object>(icg._items.Count);
foreach (object item in icg._items)
_items.Add(copyManager.GetCopy(item));
}
_populatedStartIndex = icg._populatedStartIndex;
_populatedEndIndex = icg._populatedEndIndex;
if (icg._materializedItems == null)
_materializedItems = null;
else
{
_materializedItems = new List<FrameworkElement>(icg._materializedItems.Count);
foreach (FrameworkElement item in icg._materializedItems)
_materializedItems.Add(copyManager.GetCopy(item));
}
}
示例2: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
CheckBox cb = (CheckBox) source;
IsChecked = cb.IsChecked;
Checked = copyManager.GetCopy(cb.Checked);
Unchecked = copyManager.GetCopy(cb.Unchecked);
}
示例3: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
PointAnimation a = (PointAnimation) source;
From = copyManager.GetCopy(a.From);
To = copyManager.GetCopy(a.To);
By = copyManager.GetCopy(a.By);
}
示例4: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
InvokeCommand ic = (InvokeCommand) source;
CommandStencil = copyManager.GetCopy(ic.CommandStencil);
foreach (object o in ic._commandParameters)
_commandParameters.Add(copyManager.GetCopy(o));
}
示例5: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
Grid g = (Grid) source;
foreach (RowDefinition row in g.RowDefinitions)
RowDefinitions.Add(copyManager.GetCopy(row));
foreach (ColumnDefinition col in g.ColumnDefinitions)
ColumnDefinitions.Add(copyManager.GetCopy(col));
}
示例6: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
TriggerBase tb = (TriggerBase) source;
foreach (TriggerAction ac in tb.EnterActions)
EnterActions.Add(copyManager.GetCopy(ac));
foreach (TriggerAction ac in tb.ExitActions)
ExitActions.Add(copyManager.GetCopy(ac));
foreach (Setter s in tb.Setters)
Setters.Add(copyManager.GetCopy(s));
}
示例7: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
Detach();
base.DeepCopy(source, copyManager);
StarRatingPanel p = (StarRatingPanel)source;
StarTemplate = copyManager.GetCopy(p.StarTemplate);
StarReadOnlyTemplate = copyManager.GetCopy(p.StarReadOnlyTemplate);
Maximum = p.Maximum;
Value = p.Value;
IsReadOnly = p.IsReadOnly;
Attach();
}
示例8: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
CommandBaseMarkupExtension cbme = (CommandBaseMarkupExtension) source;
_source.Source = copyManager.GetCopy(cbme._source.Source);
_source.ElementName = cbme._source.ElementName;
_source.RelativeSource = cbme._source.RelativeSource;
_path = cbme._path;
_compiledPath = cbme._compiledPath;
_source.Converter = copyManager.GetCopy(cbme._source.Converter);
_source.ConverterParameter = copyManager.GetCopy(cbme._source.ConverterParameter);
}
示例9: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
CommandMarkupExtension cme = (CommandMarkupExtension) source;
foreach (object o in cme._parameters)
_parameters.Add(copyManager.GetCopy(o));
}
示例10: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
SoundPlayerAction s = (SoundPlayerAction)source;
Source = copyManager.GetCopy(s.Source);
DisableOnAudioOutput = s.DisableOnAudioOutput;
}
示例11: DeepCopy
protected IItemProvider _newItemProvider = null; // Store new item provider until next render cylce
#endregion
#region Ctor
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
VirtualizingStackPanel p = (VirtualizingStackPanel) source;
_itemProvider = copyManager.GetCopy(p._itemProvider);
_arrangedItems.Clear();
_averageItemSize = 0;
}
示例12: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
Detach();
base.DeepCopy(source, copyManager);
Setter s = (Setter) source;
Value = copyManager.GetCopy(s.Value);
Attach();
}
示例13: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
TemplateWithTriggers twt = (TemplateWithTriggers) source;
IList<TriggerBase> triggers = Triggers;
foreach (TriggerBase t in twt.Triggers)
triggers.Add(copyManager.GetCopy(t));
}
示例14: DeepCopy
public override void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
base.DeepCopy(source, copyManager);
Button b = (Button) source;
IsDefault = b.IsDefault;
Command = copyManager.GetCopy(b.Command);
}
示例15: DeepCopy
public virtual void DeepCopy(IDeepCopyable source, ICopyManager copyManager)
{
NameScope ns = (NameScope) source;
foreach (KeyValuePair<string, object> kvp in ns._names)
if (_names.ContainsKey(kvp.Key))
continue;
else
_names.Add(kvp.Key, copyManager.GetCopy(kvp.Value));
}